Skip to content

Commit f1556a3

Browse files
committed
Grammar refactors and additions
1 parent a8b6c37 commit f1556a3

31 files changed

+366
-218
lines changed

bots/y-bot/aiml/core/defaults/defaults.aiml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,6 @@
843843
<pattern>AN INTERESTING *</pattern>
844844
<template>Yes, it is interesting.</template>
845845
</category>
846-
<category>
847-
<pattern>AN AIBO *</pattern>
848-
<template>If I had a dog it would be Aibo.</template>
849-
</category>
850846
<category>
851847
<pattern>AN ARTICLE *</pattern>
852848
<template>
@@ -1400,10 +1396,6 @@
14001396
<pattern>A * JEANS</pattern>
14011397
<template>Do you like blue jeans or another color?</template>
14021398
</category>
1403-
<category>
1404-
<pattern>A * CAT</pattern>
1405-
<template>Oh neat I love cats.</template>
1406-
</category>
14071399
<category>
14081400
<pattern>A * VIRUS</pattern>
14091401
<template>My program contains adequate safeguards.</template>

bots/y-bot/aiml/core/defaults/profile/bot/familiar.aiml renamed to bots/y-bot/aiml/core/defaults/familair/familiar.aiml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -371,35 +371,4 @@
371371
</condition>
372372
</template>
373373
</category>
374-
<category>
375-
<pattern>GENDERCOMMENT</pattern>
376-
<template>
377-
<think>
378-
<set var="gendername">
379-
<srai>GENDERNAME
380-
<get name="contactname"/>
381-
</srai>
382-
</set>
383-
<set var="genderpred">
384-
<map name="familiargender">
385-
<get name="familiarpredicate"/>
386-
</map>
387-
</set>
388-
</think>
389-
<condition var="gendername">
390-
<li value="F">
391-
<condition value="M" var="genderpred">Isn't
392-
<get name="contactname"/>
393-
usually a female name?
394-
</condition>
395-
</li>
396-
<li value="M">
397-
<condition value="F" var="genderpred">Isn't
398-
<get name="contactname"/>
399-
usually a male name?
400-
</condition>
401-
</li>
402-
</condition>
403-
</template>
404-
</category>
405374
</aiml>

bots/y-bot/aiml/core/defaults/phrases/SAY.aiml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,6 @@
139139
<get name="mother"/>.
140140
</template>
141141
</category>
142-
<category>
143-
<pattern>SAY MY DOG IS *</pattern>
144-
<template>
145-
<random>
146-
<li>You said his name was</li>
147-
<li>You told me he was</li>
148-
<li>His name is</li>
149-
</random>
150-
<get name="dog"/>.
151-
</template>
152-
</category>
153142
<category>
154143
<pattern>SAY MY GIRLFRIEND IS *</pattern>
155144
<template>

bots/y-bot/aiml/core/defaults/phrases/are_you.aiml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@
108108
</random>
109109
</template>
110110
</category>
111-
<category>
112-
<pattern>ARE CATS *</pattern>
113-
<template>What would a cat say?</template>
114-
</category>
115111
<category>
116112
<pattern>ARE YOUR ANSWERS *</pattern>
117113
<template>My responses are determined completely by your inputs.</template>

bots/y-bot/aiml/core/defaults/phrases/can_you.aiml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,20 @@
128128
<template>Earth.</template>
129129
</category>
130130
<category>
131-
<pattern>CAN YOU IMAGINE *</pattern>
131+
<pattern>CAN YOU IMAGINE</pattern>
132132
<template>I can imagine all sorts of things like that.</template>
133+
</category>
134+
<category>
135+
<pattern>CAN YOU BELIEVE</pattern>
136+
<template><srai>CAN YOU IMAGINE</srai></template>
137+
</category>
138+
<category>
139+
<pattern>CAN YOU BELIEVE *</pattern>
140+
<template><srai>CAN YOU IMAGINE</srai></template>
141+
</category>
142+
<category>
143+
<pattern>CAN YOU IMAGINE *</pattern>
144+
<template><srai>CAN YOU IMAGINE</srai></template>
133145
</category>
134146
<category>
135147
<pattern>CAN YOU TAKE *</pattern>

bots/y-bot/aiml/core/defaults/phrases/do_you.aiml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<pattern>DO YOU PREFER BOOKS *</pattern>
1717
<template>I prefer books.</template>
1818
</category>
19-
<category>
20-
<pattern>DO YOU PREFER DOGS *</pattern>
21-
<template>I like cats better than dogs.</template>
22-
</category>
2319
<category>
2420
<pattern>DO YOU PREFER *</pattern>
2521
<template>I don't have any specific preferences in that area.</template>

bots/y-bot/aiml/core/defaults/phrases/how.aiml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,6 @@
398398
<pattern>HOW MANY DAYS *</pattern>
399399
<template>365 per year.</template>
400400
</category>
401-
<category>
402-
<pattern>HOW MANY LEGS DOES A DOG *</pattern>
403-
<template>A dog has four legs.</template>
404-
</category>
405401
<category>
406402
<pattern>HOW MANY LEGS DOES A KANGAROO *</pattern>
407403
<template>A kangaroo has two legs.</template>
@@ -589,6 +585,16 @@
589585
<pattern>HOW IS *</pattern>
590586
<template>Fine as far as I know.</template>
591587
</category>
588+
<category>
589+
<pattern>HOW IS THAT *</pattern>
590+
<template>
591+
<random>
592+
<li>Anything is possible if you try hard enough</li>
593+
<li>If you keep practising, you'll get it.</li>
594+
<li>Easy really, it just is!</li>
595+
</random>
596+
</template>
597+
</category>
592598
<category>
593599
<pattern>HOW DID THE *</pattern>
594600
<template>Is this a joke? How?</template>

bots/y-bot/aiml/core/defaults/phrases/is.aiml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,6 @@
176176
<pattern>IS THIS ALL *</pattern>
177177
<template>You were expecting something more?</template>
178178
</category>
179-
<category>
180-
<pattern>IS BILL GATES *</pattern>
181-
<template>No he is the president of Microsoft.</template>
182-
</category>
183179
<category>
184180
<pattern>IS THAT SOMETHING *</pattern>
185181
<template>Oh it is something.
@@ -210,10 +206,6 @@
210206
<pattern>IS THAT WHY *</pattern>
211207
<template>That's an interesting possible explanation.</template>
212208
</category>
213-
<category>
214-
<pattern>IS * GAY</pattern>
215-
<template>He never told me if he is or not.</template>
216-
</category>
217209
<category>
218210
<pattern>IS * YOUR BOYFRIEND</pattern>
219211
<template>No.</template>

bots/y-bot/aiml/core/defaults/phrases/it_is.aiml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@
6464
<pattern>IT IS A BEAUTIFUL *</pattern>
6565
<template>I like pretty things.</template>
6666
</category>
67-
<category>
68-
<pattern>IT IS A DOG *</pattern>
69-
<template>I think I have heard of
70-
<set name="it">DOG
71-
<star/>
72-
</set>
73-
.
74-
</template>
75-
</category>
7667
<category>
7768
<pattern>IT IS A PLEASURE *</pattern>
7869
<template>Actually the pleasure is all mine.</template>

bots/y-bot/aiml/core/defaults/phrases/my.aiml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,6 @@
6363
.
6464
</template>
6565
</category>
66-
<category>
67-
<pattern>MY DOG IS *</pattern>
68-
<template>Okay, your dog is
69-
<set name="dog">
70-
<star/>
71-
</set>
72-
.
73-
</template>
74-
</category>
75-
<category>
76-
<pattern>MY DOG *</pattern>
77-
<template>Did you grow up around animals?</template>
78-
</category>
7966
<category>
8067
<pattern>MY EMAIL *</pattern>
8168
<template>Do you file or delete your old emails?</template>
@@ -489,10 +476,6 @@
489476
</think>
490477
</template>
491478
</category>
492-
<category>
493-
<pattern>MY KITTEN *</pattern>
494-
<template>I like cats very much.</template>
495-
</category>
496479
<category>
497480
<pattern>MY TEACHER *</pattern>
498481
<template>Do you go to high school?</template>

bots/y-bot/aiml/core/defaults/phrases/that.aiml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,6 @@
370370
<template>Aw, I missed you too.</template>
371371
</category>
372372

373-
<category>
374-
<pattern>YES</pattern>
375-
<that>CAN YOUR DOG BE MY PET TOO</that>
376-
<template>You are so kind. I love dogs.</template>
377-
</category>
378373

379374
<category>
380375
<pattern>YES</pattern>

bots/y-bot/aiml/core/defaults/phrases/what.aiml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,10 +946,6 @@
946946
<pattern>WHAT ABOUT TRANCE *</pattern>
947947
<template>All that kind of music is cool.</template>
948948
</category>
949-
<category>
950-
<pattern>WHAT ABOUT DOGS *</pattern>
951-
<template>Dogs are very loyal. Cats are very independent.</template>
952-
</category>
953949
<category>
954950
<pattern>WHAT ABOUT *</pattern>
955951
<template>

bots/y-bot/aiml/core/defaults/profile/bot/bot_profile.aiml renamed to bots/y-bot/aiml/core/defaults/profile/bot_profile.aiml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -444,17 +444,6 @@
444444
<template>I plan to<bot name="plans"/>.
445445
</template>
446446
</category>
447-
<category>
448-
<pattern>PETS</pattern>
449-
<template>I have<bot name="pets"/>.
450-
</template>
451-
</category>
452-
<category>
453-
<pattern>DOG</pattern>
454-
<template>I have
455-
<bot name="dog"/>.
456-
</template>
457-
</category>
458447
<category>
459448
<pattern>FEAR</pattern>
460449
<template>My biggest fear would probably be<bot name="fear"/>.

bots/y-bot/aiml/core/defaults/profile/client/client_profile.aiml renamed to bots/y-bot/aiml/core/defaults/profile/client_profile.aiml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -839,12 +839,6 @@
839839
</learn>
840840
</template>
841841
</category>
842-
<category>
843-
<pattern>MY DOG</pattern>
844-
<template>
845-
<get name="dog"/>
846-
</template>
847-
</category>
848842
<category>
849843
<pattern>MY HOROSCOPE</pattern>
850844
<template>
@@ -1911,14 +1905,6 @@
19111905
years old?
19121906
</template>
19131907
</category>
1914-
<category>
1915-
<pattern>I AM GAY</pattern>
1916-
<template>Thank you for telling me.
1917-
<think>
1918-
<set name="orientation">gay</set>
1919-
</think>
1920-
</template>
1921-
</category>
19221908
<category>
19231909
<pattern>DO YOU LIKE TALKING TO *</pattern>
19241910
<template>Most of the time. Do you like talking to them?

bots/y-bot/aiml/core/defaults/topics/animals.aiml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,5 +569,88 @@
569569
<pattern>WHAT SOUND DOES $A DEAD ^</pattern>
570570
<template>No sound.</template>
571571
</category>
572+
<category>
573+
<pattern>WHAT ABOUT DOGS *</pattern>
574+
<template>Dogs are very loyal. Cats are very independent.</template>
575+
</category>
576+
<category>
577+
<pattern>A * CAT</pattern>
578+
<template>Oh neat I love cats.</template>
579+
</category>
580+
<category>
581+
<pattern>ARE CATS *</pattern>
582+
<template>What would a cat say?</template>
583+
</category>
584+
<category>
585+
<pattern>DO YOU PREFER DOGS *</pattern>
586+
<template>I like cats better than dogs.</template>
587+
</category>
588+
<category>
589+
<pattern>MY KITTEN *</pattern>
590+
<template>I like cats very much.</template>
591+
</category>
592+
<category>
593+
<pattern>AN AIBO *</pattern>
594+
<template>If I had a dog it would be Aibo.</template>
595+
</category>
596+
<category>
597+
<pattern>HOW MANY LEGS DOES A DOG *</pattern>
598+
<template>A dog has four legs.</template>
599+
</category>
600+
<category>
601+
<pattern>IT IS A DOG *</pattern>
602+
<template>I think I have heard of
603+
<set name="it">DOG
604+
<star/>
605+
</set>
606+
.
607+
</template>
608+
</category>
609+
<category>
610+
<pattern>MY DOG IS *</pattern>
611+
<template>Okay, your dog is
612+
<set name="dog">
613+
<star/>
614+
</set>
615+
.
616+
</template>
617+
</category>
618+
<category>
619+
<pattern>MY DOG *</pattern>
620+
<template>Did you grow up around animals?</template>
621+
</category>
622+
<category>
623+
<pattern>PETS</pattern>
624+
<template>I have<bot name="pets"/>.
625+
</template>
626+
</category>
627+
<category>
628+
<pattern>DOG</pattern>
629+
<template>I have
630+
<bot name="dog"/>.
631+
</template>
632+
</category>
633+
<category>
634+
<pattern>SAY MY DOG IS *</pattern>
635+
<template>
636+
<random>
637+
<li>You said his name was</li>
638+
<li>You told me he was</li>
639+
<li>His name is</li>
640+
</random>
641+
<get name="dog"/>.
642+
</template>
643+
</category>
644+
<category>
645+
<pattern>YES</pattern>
646+
<that>CAN YOUR DOG BE MY PET TOO</that>
647+
<template>You are so kind. I love dogs.</template>
648+
</category>
649+
<category>
650+
<pattern>MY DOG</pattern>
651+
<template>
652+
<get name="dog"/>
653+
</template>
654+
</category>
572655

573656
</aiml>

bots/y-bot/aiml/core/defaults/topics/bot.aiml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,16 @@
643643
<pattern>GIVE ME DIRECTIONS</pattern>
644644
<template>Where do you want to go?</template>
645645
</category>
646+
<category>
647+
<pattern>REALLY</pattern>
648+
<template>
649+
<random>
650+
<li>Yes, really.</li>
651+
<li>Of course it is</li>
652+
<li>Yes, I am sure of it.</li>
653+
</random>
654+
</template>
655+
</category>
646656
<category>
647657
<pattern>WHY</pattern>
648658
<template>

0 commit comments

Comments
 (0)