[alicebot-style] Badanswer.aiml
Dr. Rich Wallace
alicebot-style@list.alicebot.org
Sat, 5 Mar 2005 13:06:01 -0500 (EST)
This <learn> is different than any previous AIML implementation of <learn>
although it may have some properties in common with some of them.
These <learn> and <eval> tags are specific to Pandorabots AIML only, not
part of the AIML standard nor AFAIK any other AIML interpreter.
The <learn> tag contains a complete AIML category. The <category>
contains the usual <pattern>, <template> and optional <that>. The way the
learn tag is defined, nothing inside the new category has to be quoted, or
marked as CDATA or marked up in any way differently than an ordinary AIML
category.
The exception to the rule is provided by the <eval> tag. If you do want
to process something inside the new category, use the <eval> tag. Notice
in the examples given the botmaster used <eval> to create a new uppercase
AIML pattern from a stored predicate value:
<eval>
<uppercase>
<get name="badanswer-input" />
</uppercase>
</eval>
Otherwise, outside of the <eval> tag, everthing inside the <learn> tag is
not evaluated, and the result is stored as a new AIML category.
> 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
>
> <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>
--
Dr. Rich
W A L L A C E
ALICE A.I. Foundation
drwallace@www.alicebot.org
Winner, Loebner Prize 2000, 2001, 2004