[alicebot-archcomm] [discuss] sets and lists in AIML
Dr. Richard S. Wallace
alicebot-archcomm@list.alicebot.org
Sat, 16 Mar 2002 10:40:41 -0800
> <add name="foo">x,y,z</add> (comma deliminated, but I like <li> idea
better)
> <remove name="foo">x,y</remove> (* removes all but it's sloppy)
I know. Ugly as it appears, we may have to use <li>...</li> (or something
like it) as a delimeter in sets and lists. At least, it will be familiar
to folks who know HTML.
Stepping back for a moment, we overlooked one fundamental question. What is
the definition of "equals"? To implement <remove> or <less> you need to
define an equals() function of some kind. One choice would be to say
"equals" means "matches with AIML Pattern mathcing rules." Another choice
would be "equals" means "exactly equal to including case, punctuation,
spaces etc." Thoughts? Strongly held convictions?