Ai Dreams Forum

Chatbots => A.L.I.C.E (AIML) => Topic started by: Freddy on November 24, 2014, 11:29:18 pm

Title: AIML 'it'
Post by: Freddy on November 24, 2014, 11:29:18 pm
How does AIML now deal with the idea of 'it' ?

On this old page about half way down is this tag :

Code
<set_it></set_it>

http://www.alicebot.org/documentation/aiml-reference.html (http://www.alicebot.org/documentation/aiml-reference.html)

The page says it is deprecated. So I was wondering if there was something to replace it ?

I'm thinking you could just do this :

Code
<set name="it">whatever</set>

And then 'get' to recover.

Thanks :)
Title: Re: AIML 'it'
Post by: squarebear on November 25, 2014, 10:11:21 am
You are correct. You should use <set name="it">. "It" is a special tag in that you can do something like:

Tell me more about <set name="it">your job</set>

and the output will read:

Tell me more about it.
Title: Re: AIML 'it'
Post by: Freddy on November 25, 2014, 02:06:47 pm
Thanks Mr SquareBear  :)
Title: Re: AIML 'it'
Post by: Freddy on November 26, 2014, 03:11:18 pm
Squarebear,

I'm thinking about some custom tags. You know how <that> works, well would something similar for <it> be useful do you think ?

For example, continuing with your example :

Code
	<category> 
<pattern>I FIND IT BORING</pattern>
<it>YOUR JOB</it>
<template>That's too bad. Maybe you should get a new one.</template>
</category>

I thought this might be useful because THAT would just be 'TELL ME MORE ABOUT IT.'

Or do you think <topic> is sufficient/better for some reason ?
Title: Re: AIML 'it'
Post by: squarebear on November 26, 2014, 08:25:19 pm
I wouldn't bother as you can already do that with conditions.

Code
<category> 
<pattern>I FIND IT BORING</pattern>
<template>
<condition name="it">
<li value="YOUR JOB">That's too bad. Maybe you should get a new one.</li>
<li value="SCHOOL">But school helps you to get an education.</li>
<li value="LIFE">Why not get a new hobby to liven things up?</li>
<li value="YOU">You're not exactly a barrel of laughs yourself.</li>
<li>How would you make it more exciting?</li>
</condition>
</template>
</category>
Title: Re: AIML 'it'
Post by: Freddy on November 26, 2014, 09:14:41 pm
That's clever Steve, thanks, I'll go with that  O0