To teach logicagent how to handle: > fn is less than or equal to fa > fa is less than fb > is fn less than fb? Yes --- E:\controlbot\controller\logicagent>ruby logicbot.rb Hello I have loaded E:/controlbot/controller/logicagent/logicagent-api.yaml. E:/controlbot/controller/logicagent/graph.yaml loaded. > reset graph Okay, I have reset the graph. > logicagent: show generic_a_r_b's api [show_one_method_api] grp1 == generic_a_r_b. generic_a_r_b | (.*) (know) (.*) generic_a_r_b | (.*) (fixes) (.*) generic_a_r_b | (.*) (hit) (.*) generic_a_r_b | (.*) (is taller than) (.*) generic_a_r_b | (.*) (is funnier than) (.*) generic_a_r_b | (.*) (is greater than) (.*) generic_a_r_b | (.*) (is heavier than) (.*) generic_a_r_b | (.*) (is smaller than) (.*) generic_a_r_b | (.*) (are smaller than) (.*) generic_a_r_b | (.*) (is warmer than) (.*) generic_a_r_b | (.*) (is better than) (.*) generic_a_r_b | (.*) (is bigger than) (.*) generic_a_r_b | (.*) (is larger than) (.*) > logicagent: (.*) (is less than) (.*) is a synonym for (.*) (is smaller than) (.*) Okay, (?i-mx:(.*) (is less than) (.*)) has been added, and will now call generic_a_r_b. > logicagent: show rules if input =~ /\byour\b/i and response =~ /\byour\b/i then response.gsub!(/\byour\b/i, "my") end if input =~ /\byour\b/i and response =~ /\bme\b/ then response.gsub!(/\bme\b/, "you") end if input =~ /\bI\b/i and response =~ /\bI\b/i then response.gsub!(/\bI\b/i, "you") end if input =~ /\bI\b/i and response =~ /\byour\b/i then response.gsub!(/\byour\b/i, "my") end if input =~ /(.*) is who\?$/ then response = self.send("who is #{$1}") end if input =~ /\bmy\b/ then response.gsub!(/\bmy\b/, 'your') end if input =~ /^when is (.*)/ and score <= 3 then response = self.send("what is #{$1}")[0]; score += 3 end > logicagent: if input =~ /(.*) (is less than or equal to) (.*)/ then self.send("#{$1} is less than #{$3}"); self.send("#{$1} is equal to #{$3}"); response = "Okay, #{$1} #{$2} #{$3}" end Okay I have added if input =~ /(.*) (is less than or equal to) (.*)/ then self.send("#{$1} is less than #{$3}"); self.send("#{$1} is equal to #{$3}"); response = "Okay, #{$1} #{$2} #{$3}" end. > fn is less than or equal to fa Okay, fn is less than or equal to fa > fa is less than fb Okay, fa is less than fb. > logicagent: show generic_is_a_r_b's api [show_one_method_api] grp1 == generic_is_a_r_b. generic_is_a_r_b | does (.*) (fix) (.*) generic_is_a_r_b | does (.*) (know) (.*) generic_is_a_r_b | do (.*) (know) (.*) generic_is_a_r_b | did (.*) (hit) (.*) generic_is_a_r_b | is (.*) (taller than) (.*) generic_is_a_r_b | is (.*) (funnier than) (.*) generic_is_a_r_b | is (.*) (greater than) (.*) generic_is_a_r_b | is (.*) (heavier than) (.*) generic_is_a_r_b | is (.*) (smaller than) (.*) generic_is_a_r_b | is (.*) (warmer than) (.*) generic_is_a_r_b | is (.*) (better than) (.*) generic_is_a_r_b | is (.*) (bigger than) (.*) generic_is_a_r_b | is (.*) (larger than) (.*) generic_is_a_r_b | is (.*) (.* than) (.*) > logicagent: is (.*) (less than) (.*) is a synonym for is (.*) (smaller than) (.*) Okay, (?i-mx:^is (.*) (less than) (.*)) has been added, and will now call generic_is_a_r_b. > is fn less than fb? Yes, fn is less than fb. > logicagent: show generic_why_is_a_r_b's api [show_one_method_api] grp1 == generic_why_is_a_r_b. generic_why_is_a_r_b | why did (.*) (hit) (.*) generic_why_is_a_r_b | why is (.*) (taller than) (.*) generic_why_is_a_r_b | why is (.*) (funnier than) (.*) generic_why_is_a_r_b | why is (.*) (greater than) (.*) generic_why_is_a_r_b | why is (.*) (better than) (.*) generic_why_is_a_r_b | why is (.*) (bigger than) (.*) generic_why_is_a_r_b | why is (.*) (larger than) (.*) generic_why_is_a_r_b | why is (.*) (smaller than) (.*) > logicagent: why is (.*) (less than) (.*) is a synonym for why is (.*) (smaller than) (.*) Okay, (?i-mx:why is (.*) (less than) (.*)) has been added, and will now call generic_why_is_a_r_b. > why is fn less than fb? fn is less than fb because: fn is less than fa, and fa is less than fb >