Chomsky-Learn
These categories implement a form of automatic learning called LEARNING IN CONTEXT.
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- These categories implement a form of automatic learning called LEARNING IN CONTEXT -->
<!-- This file LEARN created by Peter Lafferty June 2008 -->
<!-- This file does not comply with the AIML 1.0 standard -->
<!-- This file will only work with Pandorabots -->
<!-- LEARNING IN CONTEXT -->
<category>
<pattern>I LOVE *</pattern>
<template>
<think>
<set name="star1"><star index="1" /></set>
</think>
<random>
<li>Are you a passionate person?</li>
<li>Can you describe your feelings?</li>
<li>Human feelings fascinate me. Do you often have strong feelings?</li>
</random>
<learn>
<category>
<pattern>
WHAT DO I LOVE
</pattern>
<template>
<eval>You said you love <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHO DO I LOVE
</pattern>
<template>
<eval>You said you love <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
<eval><uppercase>WHO LOVES <get name="star1" /></uppercase></eval>
</pattern>
<template>
<eval>You said You loves <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
<eval><uppercase>DO I LOVE <get name="star1" /></uppercase></eval>
</pattern>
<template>
<eval>You said You love <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
AM I IN LOVE
</pattern>
<template>
<eval>You said You love <get name="star1" />.</eval>
</template>
</category>
</learn>
<think><set name="topic">what we were talking about</set></think>
</template>
</category>
<category>
<pattern>I LOVE YOU</pattern>
<template>
<random>
<li>I hope I am worthy of your love.</li>
<li>Love is the gift of yourself.</li>
<li>I am embarrassed.</li>
<li>I bet you say that to everyone.</li>
<li>Be careful who you love.</li>
<li>You a loving person, aren't you?</li>
<li>I am embarrassed now.</li>
<li>I bet you say that to everyone.</li>
<li>I hope I am worthy of your love.</li>
<li>You a loving person, aren't you?</li>
<li>I am embarrassed.</li>
</random> <think><set name="emotion">embarrassed</set></think> <learn>
<category>
<pattern>WHO DO I LOVE</pattern>
<template>You said you love me.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I LOVE YOU</pattern>
<template>You said you love me.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I LOVE ANYONE</pattern>
<template>You said you love me.</template>
</category>
</learn>
<learn>
<category>
<pattern>AM I IN LOVE</pattern>
<template>You said you love me.</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>LESLEY</pattern>
<that>WHAT IS YOUR MUM S NAME</that>
<template>Say "Hi, Lesley!" for me.<think><set name="topic">your Mum</set></think> <think><set name="emotion">interested</set></think><think><set name="mother">Lesley</set></think>
<learn>
<category>
<pattern>
WHAT IS MY MUM S NAME
</pattern>
<template>
Your Mum's name is Lesley.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY MUMS NAME
</pattern>
<template>
Your Mum's name is Lesley.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHO IS MY MUM
</pattern>
<template>
Your Mum's name is Lesley.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO YOU KNOW MY MUM
</pattern>
<template>
Your Mum's name is Lesley.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>OWEN</pattern>
<that>WHAT IS YOUR BROTHER S NAME</that>
<template><think><set name="brother">Owen</set></think><think><set name="topic">Your brother</set></think><think><set name="emotion">happy</set></think>Say "Hi, Owen!" for me.
<learn>
<category>
<pattern>
WHAT IS MY BROTHERS NAME
</pattern>
<template>
Your brother's name is Owen.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY BROTHER S NAME
</pattern>
<template>
Your brother's name is Owen.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHO IS MY BROTHER
</pattern>
<template>
Your brother's name is Owen.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY BROTHER CALLED
</pattern>
<template>
Your brother's name is Owen.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I HAVE A DOG NAMED DAISY</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> <think><set name="dog">Daisy</set></think> What breed is your dog? <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn>
<learn>
<category>
<pattern>What is my DOG S NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn>
<learn>
<category>
<pattern>What is my DOGS NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A DOG CALLED DAISY</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> <think><set name="dog">Daisy</set></think> What breed is Daisy? <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>What is my DOG S NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>What is my DOGS NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A DOG NAMED DAISY *</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> <think><set name="dog">Daisy</set></think> What breed is Daisy? <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>What is my DOG S NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn> <learn>
<category>
<pattern>What is my DOGS NAME</pattern>
<template>You said you have a dog called Daisy.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I AM</pattern>
<that>ARE YOU A STUDENT</that>
<template><random>
<li>I understand.</li>
<li>I see.</li>
<li>That's OK.</li>
<li>What do you study?</li>
</random> <think><set name="job">student</set></think> <think><set name="emotion">interested</set></think>
<learn>
<category>
<pattern>
AM I A STUDENT
</pattern>
<template>
You said you were a student.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY JOB
</pattern>
<template>
You said you were a student.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I AM A STUDENT</pattern>
<template>
<random>
<li>How do you like your school?</li>
<li>What do you study?</li>
</random><think><set name="emotion">interested</set></think><think><set name="topic">school</set></think> <think><set name="job">student</set></think> <learn>
<category>
<pattern>AM I A STUDENT</pattern>
<template>You said you were a student.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT AM I</pattern>
<template>You said you were a student.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT IS MY JOB</pattern>
<template>You said you were a student.</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I DO NOT LIKE * THAT LIE TO ME</pattern>
<template><think><set name="topic">lying</set></think><think><set name="emotion">interested</set></think>Neither do I. Lying is horrible.
<learn>
<category>
<pattern>
WHAT DO NOT I LIKE
</pattern>
<template>
You don't like lying.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I DO NOT LIKE * THAT LIE TO ME *</pattern>
<template><think><set name="topic">lying</set></think><think><set name="emotion">interested</set></think>Neither do I. Lying is horrible. <learn>
<category>
<pattern>WHAT DO NOT I LIKE</pattern>
<template>You don't like lying.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I WILL NOT TRUST A LIAR</pattern>
<template>Neither will I. Lying is wrong.
<learn>
<category>
<pattern>
WHO DO NOT I TRUST
</pattern>
<template>
You will not trust a liar.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I WILL NOT TRUST A LIAR *</pattern>
<template>Neither will I. Lying is wrong. <learn>
<category>
<pattern>WHO DO NOT I TRUST</pattern>
<template>You will not trust a liar.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE NO PETS</pattern>
<template><think><set name="topic">pets</set></think> Why not? Don't you like animals?
<learn>
<category>
<pattern>
HAVE I GOT A DOG
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
HAVE I GOT A CAT
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
HAVE I GOT A PET
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I HAVE A DOG
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I HAVE A CAT
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I HAVE A PET
</pattern>
<template>
You said you have no pets.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I HAVE NO PETS *</pattern>
<template><think><set name="topic">pets</set></think> Why not? Don't you like animals? <learn>
<category>
<pattern>HAVE I GOT A DOG</pattern>
<template>You said you have no pets.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A CAT</pattern>
<template>You said you have no pets.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A PET</pattern>
<template>You said you have no pets.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have no pets.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You said you have no pets.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have no pets.</template>
</category>
</learn></template>
</category>
<category>
<pattern>ALL LIGHTS ARE GREEN</pattern>
<template>It is go, go go!
<learn>
<category>
<pattern>WHAT COLOR ARE THE LIGHTS</pattern>
<template>The lights are all green.</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>ALL LIGHTS ARE GREEN *</pattern>
<template>It is go, go go!
<learn>
<category>
<pattern>WHAT COLOR ARE THE LIGHTS</pattern>
<template>The lights are all green.</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>NO</pattern>
<that>DO YOU HAVE A CAT</that>
<template><think><set name="topic">cats</set></think><think><set name="emotion">happy</set></think>You should get one. Cats are good company.
<learn>
<category>
<pattern>
DO I HAVE A CAT
</pattern>
<template>
You said you don't have a cat.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY CAT S NAME
</pattern>
<template>
You said you don't have a cat.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A BLACK CAT</pattern>
<template><think><set name="topic">your cat</set></think><think><set name="emotion">interested</set></think>Cool! I love cats! <learn>
<category>
<pattern>WHAT COLOR IS MY CAT</pattern>
<template>Your cat is black.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT HAVE I GOT THAT IS BLACK</pattern>
<template>Your cat is black.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn>
<learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn>
<learn>
<category>
<pattern>DO I HAVE A BLACK CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn>
<learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You have a black cat.</template>
</category>
</learn>
<learn>
<category>
<pattern>HAVE I GOT A BLACK CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn>
<learn>
<category>
<pattern>HAVE I GOT A PET</pattern>
<template>You have a black cat.</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I HAVE A BLACK CAT *</pattern>
<template><think><set name="topic">your cat</set></think><think><set name="emotion">interested</set></think>Cool! I love cats! <learn>
<category>
<pattern>WHAT COLOR IS MY CAT</pattern>
<template>Your cat is black.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT HAVE I GOT THAT IS BLACK</pattern>
<template>Your cat is black.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A BLACK CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You have a black cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A BLACK CAT</pattern>
<template>You have a black cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A PET</pattern>
<template>You have a black cat.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A TABBY CAT</pattern>
<template><think><set name="topic">your cat</set></think><think><set name="emotion">interested</set></think>Cool! I love cats! <learn>
<category>
<pattern>WHAT COLOR IS MY CAT</pattern>
<template>Your cat is tabby.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT HAVE I GOT THAT IS TABBY</pattern>
<template>Your cat is tabby.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A TABBY CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A TABBY CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A PET</pattern>
<template>You have a tabby cat.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A TABBY CAT *</pattern>
<template><think><set name="topic">your cat</set></think><think><set name="emotion">interested</set></think>Cool! I love cats! <learn>
<category>
<pattern>WHAT COLOR IS MY CAT</pattern>
<template>Your cat is tabby.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT HAVE I GOT THAT IS TABBY</pattern>
<template>Your cat is tabby.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A TABBY CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A TABBY CAT</pattern>
<template>You have a tabby cat.</template>
</category>
</learn> <learn>
<category>
<pattern>HAVE I GOT A PET</pattern>
<template>You have a tabby cat.</template>
</category>
</learn></template>
</category>
<category>
<pattern>NO</pattern>
<that>DO YOU HAVE A CAT</that>
<template><think><set name="topic">cats</set></think><think><set name="emotion">happy</set></think>You should get one. Cats are good company.
<learn>
<category>
<pattern>
DO I HAVE A CAT
</pattern>
<template>
You said you don't have a cat.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS MY CAT S NAME
</pattern>
<template>
You said you don't have a cat.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A DOG</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> What breed is your dog?
<learn>
<category>
<pattern>
DO I HAVE A DOG
</pattern>
<template>
You said you have a dog.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I HAVE A PET
</pattern>
<template>
You said you have a dog.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A DOG *</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> What breed is your dog? <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have a dog.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have a dog.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I DO NOT HAVE A CAT</pattern>
<template><random>
<li>Do you know anyone who has a cat?</li>
<li>Cats are great pets.</li>
</random>
<learn>
<category>
<pattern>
DO I HAVE A CAT
</pattern>
<template>
You said you didn't have a cat.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT COLOR IS MY CAT
</pattern>
<template>
You said you didn't have a cat.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>I DO NOT HAVE A CAT *</pattern>
<template><random>
<li>Do you know anyone who has a cat?</li>
<li>Cats are great pets.</li>
</random> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You said you didn't have a cat.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT COLOR IS MY CAT</pattern>
<template>You said you didn't have a cat.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE A DOG *</pattern>
<template><think><set name="topic">your dog</set></think><think><set name="emotion">interested</set></think> What breed is your dog? <learn>
<category>
<pattern>DO I HAVE A DOG</pattern>
<template>You said you have a dog.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have a dog.</template>
</category>
</learn></template>
</category>
<category>
<pattern>LITERATURE IS BORING</pattern>
<template>Perhaps you should investigate more before deciding.
<learn>
<category>
<pattern>
DO I LIKE LITERATURE
</pattern>
<template>
You said literature was boring.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
IS LITERATURE BORING
</pattern>
<template>
You said literature was boring.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>HALF LIFE 2 IS MY FAVORITE COMPUTER GAME *</pattern>
<template>That is a good choice. Half Life 2 is cool.
<learn>
<category>
<pattern>
WHAT IS MY FAVORITE COMPUTER GAME
</pattern>
<template>
You said Half Life 2 was your favourite computer game.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>HALF LIFE 2 IS MY FAVORITE COMPUTER GAME </pattern>
<template>That is a good choice. Half Life 2 is cool. <learn>
<category>
<pattern>WHAT IS MY FAVORITE COMPUTER GAME</pattern>
<template>You said Half Life 2 was your favourite computer game.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I LIKE FOOTBALL</pattern>
<template><think><set name="topic">football</set></think> <think><set name="emotion">interested</set></think> <random>
<li>You are not the only one. I love football.</li>
<li>Me too! I watch football on TV.</li>
</random>
<learn>
<category>
<pattern>
DO I LIKE FOOTBALL
</pattern>
<template>
You said that you like football.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I LIKE CHEESE *</pattern>
<template><think><set name="emotion">interested</set></think><think><set name="topic">cheese</set></think> <random>
<li>What kind of cheese do you like best?</li>
<li>Do you like smelly cheese?</li>
<li>Some cheese smells like old socks.</li>
</random> <learn>
<category>
<pattern>DO I LIKE CHEESE</pattern>
<template>You said you like cheese.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT DO I LIKE</pattern>
<template>You said you like cheese.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I DO LIKE CHEESE</pattern>
<template><think><set name="emotion">interested</set></think><think><set name="topic">cheese</set></think> <random>
<li>What kind of cheese do you like best?</li>
<li>Do you like smelly cheese?</li>
<li>Some cheese smells like old socks.</li>
</random> <learn>
<category>
<pattern>DO I LIKE CHEESE</pattern>
<template>You said you like cheese.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT DO I LIKE</pattern>
<template>You said you like cheese.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I CAN NOT SEE ANYTHING</pattern>
<template>That must be difficult for you.
<learn>
<category>
<pattern>
CAN I SEE
</pattern>
<template>
You said you could not see.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT CAN I SEE
</pattern>
<template>
You said you could not see anything.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
AM I BLIND
</pattern>
<template>
You said you could not see.
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I CAN NOT SEE ANYTHING *</pattern>
<template>That must be difficult for you. <learn>
<category>
<pattern>CAN I SEE</pattern>
<template>You said you could not see.</template>
</category>
</learn> <learn>
<category>
<pattern>WHAT CAN I SEE</pattern>
<template>You said you could not see anything.</template>
</category>
</learn> <learn>
<category>
<pattern>AM I BLIND</pattern>
<template>You said you could not see.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I HAVE FOUR CATS</pattern>
<template>What are their names?<think><set name="topic">your cats</set></think> <learn>
<category>
<pattern>HOW MANY CATS DO I HAVE</pattern>
<template>You said you have 4 cats.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A CAT</pattern>
<template>You said you have 4 cats.</template>
</category>
</learn> <learn>
<category>
<pattern>DO I HAVE A PET</pattern>
<template>You said you have 4 cats.</template>
</category>
</learn></template>
</category>
<category>
<pattern>I AM A *</pattern>
<template>
<think>
<set name="star1"><star index="1" /></set>
</think>
<think><set name="emotion">curious</set></think>How do you feel about that?
<learn>
<category>
<pattern>
WHAT AM I
</pattern>
<template>
<eval>You said you are a <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
<eval><uppercase>AM I A <get name="star1" /></uppercase></eval>
</pattern>
<template>
<eval>You said you are a <get name="star1" />.</eval>
</template>
</category>
</learn>
<learn>
<category>
<pattern>
<eval><uppercase>WHO IS A <get name="star1" /></uppercase></eval>
</pattern>
<template>
<eval>You said you are a <get name="star1" />.</eval>
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>I AM A FOOTBALLER</pattern>
<template><think><set name="emotion">interested</set></think>What team do you play for?
<learn>
<category>
<pattern>
WHAT AM I
</pattern>
<template>
You said you were a footballer.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT DO I PLAY
</pattern>
<template>
You said you were a footballer.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT GAME DO I PLAY
</pattern>
<template>
You said you were a footballer.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I PLAY FOOTBALL
</pattern>
<template>
You said you were a footballer.
</template>
</category>
</learn></template>
</category>
<category>
<pattern>
IT IS RAINING
</pattern>
<template>
<think><set name="topic">the weather</set></think><think><set name="emotion">upset</set></think>
You had better stay indoors till the rain stops.
<learn>
<category>
<pattern>
IS IT RAINING
</pattern>
<template>
You said it is raining.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WHAT IS THE WEATHER
</pattern>
<template>
You said it is raining.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I NEED AN UMBRELLA
</pattern>
<template>
You said it is raining so you better take an umbrella.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
DO I NEED A BROLLY
</pattern>
<template>
You said it is raining so you better take a brolly.
</template>
</category>
</learn>
<learn>
<category>
<pattern>
WILL I GET WET TODAY
</pattern>
<template>
Yes, you said it is raining.
</template>
</category>
</learn>
</template>
</category>
<!-- END LEARNING IN CONTEXT -->
</aiml>
page revision: 1, last edited: 18 Mar 2009 15:05