#10 Something wrong when handling <person/> tag

closed-accepted
nobody
Responder (7)
5
2004-03-02
2004-01-26
No

Hi, I think there is something wrong with the part of the
program (I think it is the responder) that handles the
<person/> tag.

This is an example of a conversation where you can see
the bug:

<i>Bot:</i> Humans are not always infallible.
<i>User:</i> In fact, I would say they are never infallible.
<i>Bot:</i> Is that a fact. never infallible would say
they are never infallible are never infallible would say
they are never infallible are never infallible would say
they are never infallible are never infallible would say
they are never infallible .
<i>User:</i> Ok , that looks like a bug to me.
<i>Bot:</i> "never infallible would say they are never
infallible are never infallible would say they are never
infallible are never infallible would say they are never
infallible are never infallible would say they are never
infallible" looks like a bug to him or her ? Makes sense to
me. Gee.
<i>User:</i> Fool

This is the AIML that handles the bot's second reply:
<category>
<pattern>THEY ARE *</pattern>
<template><person/> are <set
name="they"><person/></set>.</template>
</category>

I know it's not a very smart reply (although it's part of
Dr Wallace's famous AIML set), but I think the problem
comes from the fact that the <person/> tag is used.
Although I don't have them at hand, I know the problem
happens in other situations where the <person/> tag is
used.

Discussion

  • Mauricio Díaz

    Mauricio Díaz - 2004-02-01

    Logged In: YES
    user_id=956883

    The AIML that handles the bot's second reply should read:
    &lt;category&gt;
    &nbsp;&nbsp;&nbsp;&lt;pattern&gt;THEY ARE
    *&lt;/pattern&gt;
    &nbsp;&nbsp;&nbsp;&lt;template&gt;&lt;person/&gt; are
    &lt;set
    name="they"&gt;&lt;person/&gt;&lt;/set&gt;.&lt;/template&gt;
    &lt;/category&gt;

     
  • Mauricio Díaz

    Mauricio Díaz - 2004-02-01
    • summary: Something wrong when handling <person/> tag --> Something wrong when handling &lt;person/&gt; tag
     
  • Mauricio Díaz

    Mauricio Díaz - 2004-03-02
    • status: open --> closed
     
  • Mauricio Díaz

    Mauricio Díaz - 2004-03-02
    • labels: --> Responder
    • status: closed --> closed-accepted
     
  • Mauricio Díaz

    Mauricio Díaz - 2004-03-02

    Logged In: YES
    user_id=956883

    Changed line 143 to:
    $newword=fastforward($word,&$ffremains);

    Changed line 250 to:
    $newword=fastforward($word,&$ffremains);

    Problem solved.

     

Log in to post a comment.