Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

113
LINES

< > BotCompany Repo | #3000491 // Smart Bot's answer to: !eval lines(termsStartingWith("[[if "))

New Tinybrain snippet

[5823 ms] [[If        (X is a cool feature for a camera)
and input (I have a camera)
then say  (Does it have X?)]]
[[If        (X is a cool feature for a camera)
and input (I have a camera)
then say  (Does it have X?)]] -> is -> the camera rule
[[If        (X is a cool feature for a camera)
and input (I have a camera)
then say  (Does it have X?)]] is the camera rule
[[if   "give me all the dichotomies"
then ai_texts_tripelize("$X is a dichotomy")]]
[[if   "give me all the dichotomies"
then ai_texts_tripelize("$X is a dichotomy")]] -> is -> the give-me rule
[[if   "give me all the dichotomies"
then ai_texts_tripelize("$X is a dichotomy")]] is the give-me rule
[[if   "what is the plural of <word>"
then plural("<word>")]]
[[if   "what is the plural of <word>"
then plural("<word>")]] -> is -> the generalized plural rule
[[if   "what is the plural of <word>"
then plural("<word>")]] is the generalized plural rule
[[if   "what is the plural of piece"
then plural("piece")]]
[[if   "what is the plural of piece"
then plural("piece")]] -> is -> the plural rule
[[if   "what is the plural of piece"
then plural("piece")]] is the plural rule
[[if   (#job -> is -> say hello in smart bot
[[if   (#job -> is -> say hello in smart bot's chat)
then postToSmartBotsChat("Hello from rule engine!")]]
[[if   (#job -> is -> say hello in smart bot's chat)
then postToSmartBotsChat("Hello from rule engine!")]] -> is -> a good rule
[[if   (#job -> is -> say hello in smart bot's chat)
then postToSmartBotsChat("Hello from rule engine!")]] is a good rule
[[if   (#Who is a person?)
and  (X is a person)
then (X)]]
[[if   (#Who is a person?)
and  (X is a person)
then (X)]] -> is -> the who is a person rule
[[if   (#Who is a person?)
and  (X is a person)
then (X)]] is the who is a person rule
[[if   (a line beginning with "voulez vous " is in french)
and  swic(#input, "voulez vous ")
then (#guessed language is french)]]
[[if   (a line beginning with "voulez vous " is in french)
and  swic(#input, "voulez vous ")
then (#guessed language is french)]] -> is -> the french rule
[[if   (a line beginning with "voulez vous " is in french)
and  swic(#input, "voulez vous ")
then (#guessed language is french)]] is the french rule
[[if   (a line beginning with "was ist " is in german)
and  swic(#input, "was ist ")
then (#guessed language is german)]]
[[if   (a line beginning with "was ist " is in german)
and  swic(#input, "was ist ")
then (#guessed language is german)]] -> is -> the german rule
[[if   (a line beginning with "was ist " is in german)
and  swic(#input, "was ist ")
then (#guessed language is german)]] is the german rule
[[If   (Rybka is a chess engine)
and  (Zappa is a chess engine)
then (We could let Rybka play against Zappa!)]]
[[If   (Rybka is a chess engine)
and  (Zappa is a chess engine)
then (We could let Rybka play against Zappa!)]] -> is -> a chess engine rule
[[If   (Rybka is a chess engine)
and  (Zappa is a chess engine)
then (We could let Rybka play against Zappa!)]] is a chess engine rule
[[If  (swic(trimFirstLine(#input), "If ")
and  (swic(trimLastLine(#input), "then ")
then (#input is multiline-if-then)]]
[[If  (swic(trimFirstLine(#input), "If ")
and  (swic(trimLastLine(#input), "then ")
then (#input is multiline-if-then)]] -> is -> the multiline-if-then-rule
[[If  (swic(trimFirstLine(#input), "If ")
and  (swic(trimLastLine(#input), "then ")
then (#input is multiline-if-then)]] is the multiline-if-then-rule
[[if  (Unix is the best operating system)
then (Unix is an operating system)]]
[[if  (Unix is the best operating system)
then (Unix is an operating system)]] -> is -> a true rule
[[if  (Unix is the best operating system)
then (Unix is an operating system)]] is a true rule
[[if "bla" then "woot"]]
[[If "We have three key ideas." then "What is the first key idea?"]]
[[If "We have three key ideas." then "What is the first key idea?"]] -> is -> a rule
[[If "We have three key ideas." then "What is the first key idea?"]] is a rule
[[if "what is 2+2" then "4. duh"]]
[[if "what is 2+2" then "4. duh"]] -> is -> a funny rule
[[if "what is 2+2" then "4. duh"]] is a funny rule
[[if ("bla" and "blubb") then "woot and" and "what"]]
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]]
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]] -> is -> a rule
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]] is a rule
[[If (It
[[If (It's rocket science!) then (The science of rockets!)]]
[[If (It's rocket science!) then (The science of rockets!)]] -> is -> a dialog piece
[[If (It's rocket science!) then (The science of rockets!)]] is a dialog piece
[[if (TODO -> is -> $X)
then (#job -> is -> $X)]]
[[if (TODO -> is -> $X)
then (#job -> is -> $X)]] -> is -> the job rule
[[if (TODO -> is -> $X)
then (#job -> is -> $X)]] is the job rule
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]]
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]] -> is -> a rule
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]] is a rule
[[If (X is a smart bot
[[If (X is a smart bot's chat line) and (X was sent by human) then (X is in space WhatUserSays)]]
[[If (X is a smart bot's chat line) and (X was sent by human) then (X is in space WhatUserSays)]] -> is -> a rule
[[If (X is a smart bot's chat line) and (X was sent by human) then (X is in space WhatUserSays)]] is a rule

download  show line numbers   

Snippet is not live.

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #3000491
Snippet name: Smart Bot's answer to: !eval lines(termsStartingWith("[[if "))
Eternal ID of this version: #3000491/1
Text MD5: ed2e7ba1fa61a26ff7c195d12eae528a
Author: someone
Category:
Type: New Tinybrain snippet
Gummipassword: smart-bot-for-user
Uploaded from IP: 82.83.65.128
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-27 04:04:18
Source code size: 5501 bytes / 113 lines
Pitched / IR pitched: No / No
Views / Downloads: 292 / 68
Referenced in: [show references]