[alicebot-style] Regarding Substitutions.xml

Dr. Rich Wallace alicebot-style@list.alicebot.org
Thu, 21 Apr 2005 02:31:49 -0400 (EDT)


You could also achieve the same result in AIML

e.g.

<category>
<pattern>
<pattern>_ CAUSE *</pattern>
<template><srai><star/> GENERATE <star index="2"/></srai></template>
</category>

> Hi All,
>
> Can anyone help me with AIML...
>
> I am using ProgramD, it has a file "Substitutions.xml" in
> "conf" folder.
>
> I have a sentence comming from user like: "Do earthquakes
> cause tsunami?"
>
> In my categories I have defined a category which has the
> pattern "earthquake generate tsunami", now in the
> substitution file I have kept replacements like:
>
> <substitute find=" earthquakes " replace=" earthquake "/>
> <substitute find=" cause " replace=" generate "/>
>
> But what I have observed is: Substitutions.xml  never
> substitutes two words in the same sentence.
>
> Please help me solve this problem.
>
> Thanks and Regards,
> Deepti