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

1  
[5823 ms] [[If        (X is a cool feature for a camera)
2  
and input (I have a camera)
3  
then say  (Does it have X?)]]
4  
[[If        (X is a cool feature for a camera)
5  
and input (I have a camera)
6  
then say  (Does it have X?)]] -> is -> the camera rule
7  
[[If        (X is a cool feature for a camera)
8  
and input (I have a camera)
9  
then say  (Does it have X?)]] is the camera rule
10  
[[if   "give me all the dichotomies"
11  
then ai_texts_tripelize("$X is a dichotomy")]]
12  
[[if   "give me all the dichotomies"
13  
then ai_texts_tripelize("$X is a dichotomy")]] -> is -> the give-me rule
14  
[[if   "give me all the dichotomies"
15  
then ai_texts_tripelize("$X is a dichotomy")]] is the give-me rule
16  
[[if   "what is the plural of <word>"
17  
then plural("<word>")]]
18  
[[if   "what is the plural of <word>"
19  
then plural("<word>")]] -> is -> the generalized plural rule
20  
[[if   "what is the plural of <word>"
21  
then plural("<word>")]] is the generalized plural rule
22  
[[if   "what is the plural of piece"
23  
then plural("piece")]]
24  
[[if   "what is the plural of piece"
25  
then plural("piece")]] -> is -> the plural rule
26  
[[if   "what is the plural of piece"
27  
then plural("piece")]] is the plural rule
28  
[[if   (#job -> is -> say hello in smart bot
29  
[[if   (#job -> is -> say hello in smart bot's chat)
30  
then postToSmartBotsChat("Hello from rule engine!")]]
31  
[[if   (#job -> is -> say hello in smart bot's chat)
32  
then postToSmartBotsChat("Hello from rule engine!")]] -> is -> a good rule
33  
[[if   (#job -> is -> say hello in smart bot's chat)
34  
then postToSmartBotsChat("Hello from rule engine!")]] is a good rule
35  
[[if   (#Who is a person?)
36  
and  (X is a person)
37  
then (X)]]
38  
[[if   (#Who is a person?)
39  
and  (X is a person)
40  
then (X)]] -> is -> the who is a person rule
41  
[[if   (#Who is a person?)
42  
and  (X is a person)
43  
then (X)]] is the who is a person rule
44  
[[if   (a line beginning with "voulez vous " is in french)
45  
and  swic(#input, "voulez vous ")
46  
then (#guessed language is french)]]
47  
[[if   (a line beginning with "voulez vous " is in french)
48  
and  swic(#input, "voulez vous ")
49  
then (#guessed language is french)]] -> is -> the french rule
50  
[[if   (a line beginning with "voulez vous " is in french)
51  
and  swic(#input, "voulez vous ")
52  
then (#guessed language is french)]] is the french rule
53  
[[if   (a line beginning with "was ist " is in german)
54  
and  swic(#input, "was ist ")
55  
then (#guessed language is german)]]
56  
[[if   (a line beginning with "was ist " is in german)
57  
and  swic(#input, "was ist ")
58  
then (#guessed language is german)]] -> is -> the german rule
59  
[[if   (a line beginning with "was ist " is in german)
60  
and  swic(#input, "was ist ")
61  
then (#guessed language is german)]] is the german rule
62  
[[If   (Rybka is a chess engine)
63  
and  (Zappa is a chess engine)
64  
then (We could let Rybka play against Zappa!)]]
65  
[[If   (Rybka is a chess engine)
66  
and  (Zappa is a chess engine)
67  
then (We could let Rybka play against Zappa!)]] -> is -> a chess engine rule
68  
[[If   (Rybka is a chess engine)
69  
and  (Zappa is a chess engine)
70  
then (We could let Rybka play against Zappa!)]] is a chess engine rule
71  
[[If  (swic(trimFirstLine(#input), "If ")
72  
and  (swic(trimLastLine(#input), "then ")
73  
then (#input is multiline-if-then)]]
74  
[[If  (swic(trimFirstLine(#input), "If ")
75  
and  (swic(trimLastLine(#input), "then ")
76  
then (#input is multiline-if-then)]] -> is -> the multiline-if-then-rule
77  
[[If  (swic(trimFirstLine(#input), "If ")
78  
and  (swic(trimLastLine(#input), "then ")
79  
then (#input is multiline-if-then)]] is the multiline-if-then-rule
80  
[[if  (Unix is the best operating system)
81  
then (Unix is an operating system)]]
82  
[[if  (Unix is the best operating system)
83  
then (Unix is an operating system)]] -> is -> a true rule
84  
[[if  (Unix is the best operating system)
85  
then (Unix is an operating system)]] is a true rule
86  
[[if "bla" then "woot"]]
87  
[[If "We have three key ideas." then "What is the first key idea?"]]
88  
[[If "We have three key ideas." then "What is the first key idea?"]] -> is -> a rule
89  
[[If "We have three key ideas." then "What is the first key idea?"]] is a rule
90  
[[if "what is 2+2" then "4. duh"]]
91  
[[if "what is 2+2" then "4. duh"]] -> is -> a funny rule
92  
[[if "what is 2+2" then "4. duh"]] is a funny rule
93  
[[if ("bla" and "blubb") then "woot and" and "what"]]
94  
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]]
95  
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]] -> is -> a rule
96  
[[if (a comparator is a type of Java object) then (a comparator is a Java object)]] is a rule
97  
[[If (It
98  
[[If (It's rocket science!) then (The science of rockets!)]]
99  
[[If (It's rocket science!) then (The science of rockets!)]] -> is -> a dialog piece
100  
[[If (It's rocket science!) then (The science of rockets!)]] is a dialog piece
101  
[[if (TODO -> is -> $X)
102  
then (#job -> is -> $X)]]
103  
[[if (TODO -> is -> $X)
104  
then (#job -> is -> $X)]] -> is -> the job rule
105  
[[if (TODO -> is -> $X)
106  
then (#job -> is -> $X)]] is the job rule
107  
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]]
108  
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]] -> is -> a rule
109  
[[If (X is a chat line) and (X was sent by human) then (X is in space WhatUserSays)]] is a rule
110  
[[If (X is a smart bot
111  
[[If (X is a smart bot's chat line) and (X was sent by human) then (X is in space WhatUserSays)]]
112  
[[If (X is a smart bot's chat line) and (X was sent by human) then (X is in space WhatUserSays)]] -> is -> a rule
113  
[[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: 295 / 69
Referenced in: [show references]