[alicebot-style] Badanswer.aiml
alicebot-style@list.alicebot.org
alicebot-style@list.alicebot.org
Sat, 5 Mar 2005 06:45:31 EST
-------------------------------1110023131
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Greetings,
I've been enjoying the new badanswer.aiml, which seems to provide a lot of
entertainment value and to be universally liked, from the reactions I've heard
to it. I've been tinkering with it a bit to bring it into more frequent use.
Nothing remarkable, I've just srai'd a bunch of patterns to it so that
(polite) criticisms of the bot bring it into play, but I thought I'd share my
efforts with the community.
Also, I'd like to learn more about the new (to me) tags like <learn> and
<eval>. I've seen <learn> before, but thought it was no longer in use. <eval>
and some of the other tags badanswer.aiml contains are completely new to me. Do
these tags serve a purpose that can be more generally incorporated into
other AIML?
Regards,
Richard Gray
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
<!-- Free software Copyright © ALICE A.I. Foundation.
-->
<!-- This program is open source code released under
-->
<!-- the terms of the GNU General Public License
-->
<!-- as published by the Free Software Foundation.
-->
<!-- Complies with AIML 1.01 Tag Set Specification
-->
<!-- as adopted by the ALICE A.I. Foundation.
-->
<!-- Badanswer.aiml: Demo of Pandorabots learning, AIML unquoting and eval
-->
<!-- Revision Badanswer-0.01
-->
<!-- Last Modified Feb 23 2005
-->
<category>
<pattern>BAD ANSWER</pattern>
<template>
OK, what should I have said?
<think>
<set name="topic">BADANSWER</set>
</think>
</template>
</category>
<category>
<pattern>WRONG ANSWER</pattern>
<template><srai>BAD ANSWER</srai>
</template>
</category>
<topic name="BADANSWER">
<category>
<pattern>_</pattern>
<that>OK WHAT SHOULD I HAVE SAID</that>
<template>
<think>
<set name="badanswer-input">
<input index="3" />
</set>
<set name="badanswer-that">
<that index="3" />
</set>
<set name="badanswer-newresp">
<input index="1" />
</set>
</think>
OK, I should have said, "
<get name="badanswer-newresp" />
" in response to you saying, "
<get name="badanswer-input" />
".
<condition name="badanswer-that">
<li value="*">
Does this response depend on the context of my previously having said, "
<get name="badanswer-that" />
"?
</li>
<li>
<think>
<set name="topic">BADANSWERDONE</set>
</think>
<srai>BADANSWERDONE</srai>
</li>
</condition>
</template>
</category>
<category>
<pattern>*</pattern>
<that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIOUSLY HAVING SAID
*</that>
<template>
Never mind, I'll assume the context wasn't important.
<srai>BADANSWERDONE</srai>
</template>
</category>
<category>
<pattern>YES</pattern>
<that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIOUSLY HAVING SAID
*</that>
<template>
<srai>BADANSWERDONE THAT</srai>
</template>
</category>
<category>
<pattern>NO</pattern>
<that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIOUSLY HAVING SAID
*</that>
<template>
<srai>BADANSWERDONE</srai>
</template>
</category>
</topic>
<category>
<pattern>BADANSWERDONE</pattern>
<template>
I'll try to remember that.
<learn>
<category>
<pattern>
<eval>
<uppercase>
<get name="badanswer-input" />
</uppercase>
</eval>
</pattern>
<template>
<eval>
<get name="badanswer-newresp" />
</eval>
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>BADANSWERDONE THAT</pattern>
<template>
I'll try to remember that.
<learn>
<category>
<pattern>
<eval>
<uppercase>
<get name="badanswer-input" />
</uppercase>
</eval>
</pattern>
<that>
<eval>
<uppercase>
<get name="badanswer-that" />
</uppercase>
</eval>
</that>
<template>
<eval>
<get name="badanswer-newresp" />
</eval>
</template>
</category>
</learn>
</template>
</category>
<category>
<pattern>WRONG</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>NOT RIGHT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT IS WRONG</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT IS NOT RIGHT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT IS INCORRECT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER IS NOT CORRECT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER IS INCORRECT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER IS WRONG</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER IS NOT RIGHT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER WAS BAD</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT WAS A BAD ANSWER</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT WAS AN INCORRECT ANSWER</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT WAS THE WRONG ANSWER</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>THAT ANSWER WAS NOT RIGHT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>YOUR ANSWER WAS WRONG</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>YOUR ANSWER WAS NOT RIGHT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>YOUR ANSWER WAS NOT CORRECT</pattern>
<template><srai>BAD ANSWER</srai></template>
</category>
<category>
<pattern>CAN I TEACH YOU</pattern>
<template>Yes, if I give you a bad answer, just say "Bad answer and you can
teach me a new response.</template>
</category>
<category>
<pattern>CAN YOU LEARN</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>DO YOU LEARN</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>CAN I TEACH YOU *</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>CAN YOU LEARN *</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>WILL YOU LEARN *</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>IF * WILL YOU LEARN *</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
<category>
<pattern>DO YOU LEARN *</pattern>
<template><srai>CAN I TEACH YOU</srai></template>
</category>
</aiml>
-------------------------------1110023131
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DUS-ASCII">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY:=20=
Arial"=20
bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT id=3Drol=
e_document=20
face=3DArial color=3D#000000 size=3D2>
<DIV>Greetings,</DIV>
<DIV>I've been enjoying the new badanswer.aiml, which seems to provide a lot=
of=20
entertainment value and to be universally liked, from the reactions I've hea=
rd=20
to it. I've been tinkering with it a bit to bring it into more frequent use.=
=20
Nothing remarkable, I've just srai'd a bunch of patterns to it so that (poli=
te)=20
criticisms of the bot bring it into play, but I thought I'd share my efforts=
=20
with the community. </DIV>
<DIV>Also, I'd like to learn more about the new (to me) tags like <learn&=
gt;=20
and <eval>. I've seen <learn> before, but thought it was no long=
er=20
in use. <eval> and some of the other tags badanswer.aiml=20
contains are completely new to me. Do these tags serve a purpose that c=
an=20
be more generally incorporated into other AIML?</DIV>
<DIV>Regards,</DIV>
<DIV>Richard Gray </DIV>
<DIV> </DIV>
<DIV><?xml version=3D"1.0" encoding=3D"UTF-8"?><BR><aiml=20
version=3D"1.0"></DIV>
<DIV> </DIV>
<DIV> <!-- Free software Copyright &copy; ALICE A.I.=20
Foundation. <BR> --> <BR> <!-- This program is open=20
source code released under <BR> --> <BR> <!-- the ter=
ms=20
of the GNU General Public License <BR> -->=20
<BR> <!-- as published by the Free Software=20
Foundation. <BR> --> <BR> <!-- Complies w=
ith=20
AIML 1.01 Tag Set Specification <BR> --> <BR> <!-- as=
=20
adopted by the ALICE A.I. Foundation. <BR> -->=20
<BR> <!-- Badanswer.aiml: Demo of Pandorabots learning, AIML=20
unquoting and eval <BR> --> <BR> <!-- Revision=20
Badanswer-0.01 <BR> --> <BR> <!-- Last Modified =
Feb=20
23 2005 <BR> --> </DIV>
<DIV> </DIV>
<DIV><category><BR> <pattern>BAD ANSWER</pattern>=20
<BR> <template><BR> OK, what should I have said?=20
<BR> <think><BR> <set name=3D"topic">BADANSWER</se=
t>=20
<BR> </think><BR> </template><BR> =20
</category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>WRONG=20
ANSWER</pattern><BR><template><srai>BAD=20
ANSWER</srai><BR></template><BR></category></DIV>
<DIV> </DIV>
<DIV> <topic name=3D"BADANSWER"><BR> <category><BR>&nb=
sp;=20
<pattern>_</pattern> <BR> <that>OK WHAT SHOULD I HAV=
E=20
SAID</that>=20
<BR> <template><BR> <think><BR> <set=20
name=3D"badanswer-input"><BR> <input index=3D"3" /> <BR> =
;=20
</set><BR> <set name=3D"badanswer-that"><BR> <that=
=20
index=3D"3" /> <BR> </set><BR> <set=20
name=3D"badanswer-newresp"><BR> <input index=3D"1" /> <BR>&nb=
sp;=20
</set><BR> </think><BR> OK, I should have said, "=20
<BR> <get name=3D"badanswer-newresp" /> <BR> " in response=
to=20
you saying, " <BR> <get name=3D"badanswer-input" /> <BR> "=
.=20
<BR> <condition name=3D"badanswer-that"><BR> <li=20
value=3D"*"><BR> Does this response depend on the context of my=20
previously having said, " <BR> <get name=3D"badanswer-that" />=20
<BR> "? <BR> =20
</li><BR> <li><BR> <think><BR> <set=20
name=3D"topic">BADANSWERDONE</set> <BR> </think><BR>&nb=
sp;=20
<srai>BADANSWERDONE</srai> <BR> </li><BR> =20
</condition><BR> </template><BR> </category></=
DIV>
<DIV> </DIV>
<DIV><category><BR> <pattern>*</pattern> <BR> =20
<that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIOUSLY HAVING=
=20
SAID *</that> <BR> <template><BR> Never mind, I'll as=
sume=20
the context wasn't important. <BR> <srai>BADANSWERDONE</srai&=
gt;=20
<BR> </template><BR> </category></DIV>
<DIV> </DIV>
<DIV> <category><BR> <pattern>YES</pattern>=20
<BR> <that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIO=
USLY=20
HAVING SAID *</that> <BR> <template><BR> =20
<srai>BADANSWERDONE THAT</srai> <BR> =20
</template><BR> </category></DIV>
<DIV> </DIV>
<DIV> <category><BR> <pattern>NO</pattern>=20
<BR> <that>DOES THIS RESPONSE DEPEND ON THE CONTEXT OF MY PREVIO=
USLY=20
HAVING SAID *</that> <BR> <template><BR> =20
<srai>BADANSWERDONE</srai> <BR> </template><BR> =
;=20
</category><BR> </topic></DIV>
<DIV> </DIV>
<DIV> <category><BR> =20
<pattern>BADANSWERDONE</pattern>=20
<BR> <template><BR> I'll try to remember that.=20
<BR> <learn><BR> <category><BR> <pattern><B=
R> <eval><BR> <uppercase><BR> =20
<get name=3D"badanswer-input" /> <BR> </uppercase><BR>&nbs=
p;=20
</eval><BR> =20
</pattern><BR> <template><BR><eval><BR> <get=
=20
name=3D"badanswer-newresp" /> <BR> </eval><BR> =20
</template><BR> </category><BR> </learn><BR>&n=
bsp;=20
</template><BR> </category></DIV>
<DIV> </DIV>
<DIV> <category><BR> <pattern>BADANSWERDONE=20
THAT</pattern> <BR> <template><BR> I'll try to rememb=
er=20
that.=20
<BR> <learn><BR> <category><BR> <pattern><B=
R> <eval><BR> <uppercase><BR> =20
<get name=3D"badanswer-input" /> <BR> </uppercase><BR>&nbs=
p;=20
</eval><BR> =20
</pattern><BR> <that><BR> <eval><BR> <up=
percase><BR> =20
<get name=3D"badanswer-that" /> <BR> </uppercase><BR> =
;=20
</eval><BR> =20
</that><BR> <template><BR> <eval><BR> <=
get=20
name=3D"badanswer-newresp" /> <BR> </eval><BR> =20
</template><BR> </category><BR> </learn><BR>&n=
bsp;=20
</template><BR> </category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>WRONG</pattern><BR><templat=
e><srai>BAD=20
ANSWER</srai></template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>NOT=20
RIGHT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
IS WRONG</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>THAT IS NOT=20
RIGHT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
IS INCORRECT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
ANSWER IS NOT CORRECT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
ANSWER IS INCORRECT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
ANSWER IS WRONG</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
ANSWER IS NOT RIGHT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
ANSWER WAS BAD</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>THAT WAS A BAD=20
ANSWER</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
WAS AN INCORRECT ANSWER</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>THAT=20
WAS THE WRONG ANSWER</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR> =
;<BR><category><BR><pattern>THAT=20
ANSWER WAS NOT RIGHT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>YOUR=20
ANSWER WAS WRONG</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>YOUR=20
ANSWER WAS NOT RIGHT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>YOUR=20
ANSWER WAS NOT CORRECT</pattern><BR><template><srai>BAD=20
ANSWER</srai></template><BR></category><BR> <BR><c=
ategory><BR><pattern>CAN=20
I TEACH YOU</pattern><BR><template>Yes, if I give you a bad answ=
er,=20
just say "Bad answer and you can teach me a new=20
response.</template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>CAN YOU=20
LEARN</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>DO YOU=20
LEARN</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category><BR> <BR><cate=
gory><BR><pattern>CAN=20
I TEACH YOU *</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category></DIV>
<DIV> </DIV>
<DIV><category><BR><pattern>CAN YOU LEARN=20
*</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category><BR> <BR><cate=
gory><BR><pattern>WILL=20
YOU LEARN *</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category><BR> <BR><cate=
gory><BR><pattern>IF=20
* WILL YOU LEARN *</pattern><BR><template><srai>CAN I TEAC=
H=20
YOU</srai></template><BR></category><BR> <BR><cate=
gory><BR><pattern>DO=20
YOU LEARN *</pattern><BR><template><srai>CAN I TEACH=20
YOU</srai></template><BR></category><BR> <BR></aim=
l><BR></DIV></FONT></BODY></HTML>
-------------------------------1110023131--