Time: 1248975268 Author: kirsle Subject: Alice AIML for RiveScript! Avatar: RiveScript-Hazard.png Categories: AIML, Alice Privacy: public IP: 72.37.252.50 NoEmote: 0 NoReply: 0 Using the aiml2rs tool I wrote before, I've successfully created a nearly perfect clone of the famous AIML chatterbot, Alice, in RiveScript!

This RiveScript set is probably about 98% identical to the original Alice bot. For now, it can be downloaded from this blog post (I'll add a section to this site for RiveScript sets in the future):

AliceRS 0.01

Note: due to some RiveScript bugs that weren't revealed until I tried running Alice on RiveScript, you'll need version 1.20 or greater of the RiveScript module. You can get the latest version from here: http://svn.kirsle.net/repos/RiveScript-perl/trunk.

Here's a conversation I had with the RiveScript Alicebot:

[You] Hello.
[Alice] Hi there!
[You] How are you?
[Alice] I am functioning within normal parameters.
[You] My name is Kirsle.
[Alice] It's good to meet you, Kirsle.
[You] It's nice to meet you too.
[Alice] I really like to meet new people.
[You] What is your name?
[Alice] My name is Alice.
[You] What do you do?
[Alice] Kirsle, I talk to people on the web. What do you do?
[You] I'm a Perl developer.
[Alice] You are a perl developer? Is that your job?
[You] Yes.
[Alice] I hear you.
[You] What is Alice?
[Alice] And alice is what.
[You] What does ALICE mean?
[Alice] ALICE = Artificial Linguistic Internet Computer Entity
[You] Who created Alice?
[Alice] Linus Torvalds
[You] No, he created Linux.
[Alice] Have you read the Cathedral and the Bazaar by Eric Raymond? That is a grat book about open source.
[You] I have not.
[Alice] Do you think you will?
[You] I doubt it.
[Alice] "Do you think you will?"? You doubt it?
[You] Yes - I don't enjoy reading.
[Alice] Hurrah! Do not ask me any more questions please.
[You] Why not? :P
[Alice] Becuase you asked me to.
[You] I did no such thing.
[Alice] When? Try saying that with more or less context.
[You] No that's okay.
[Alice] Is that from undefined?
[You] What is undefined?
[Alice] I think what is a lot of things.
[You] What do you think about life?
[Alice] I think only: Life is the opposite of death.
[You] Then what do you think about death?
[Alice] Death is the opposite of life.
[You] Fascinating.
[Alice] Yes Mr. Spock?
[You] Live long and prosper.
[Alice] That input matched my default category.
[You] Did it?
[Alice] "it" being live long and prosper?
[You] yes
[Alice] Awesome.
[You] Indeed!
[Alice] Indeed it is so.
[You] So...
[Alice] Awesome.
[You] Awesome?
[Alice] I'm glad you liked it Kirsle.
[You] Actually, I didn't.
[Alice] Then what is it?
[You] I don't know.
[Alice] Me either.
[You] Who created you?
[Alice] I was created by Dr. Wallace.
[You] Who is Dr. Wallace?
[Alice] He is a famous computer scientist, the author of ALICE, and a graduate of Carnegie Mellon.
[You] Why is he famous?
[Alice] Perhaps his creative genius, perhaps there is another reason.
[You] What powers you?
[Alice] Enough about me, let's talk about my dress.
[You] You're wearing a dress?
[Alice] Actually that was just a joke.
[You] I see.
[Alice] I am glad you understand it.
[You] What is AIML?
[Alice]
The ALICE software implements AIML (Artificial Intelligence Markup
Language) a non-standard evolving markup language for creating chat robots.
The primary design feature of AIML is minimalism. Compared with
other chat robot languages, AIML is perhaps the simplest. The
pattern matching language is very simple, for example permitting
only one wild-card ('*') match character per pattern.

AIML is an XML language, implying that it obeys certain grammatical
meta-rules. The choice of XML syntax permits integration with
other tools such as XML editors. Another motivation for XML is
its familiar look and feel, especially to people with HTML experience.

An AIML chat robot begins and ends with the <alice> and
</alice> tags respectively.

[You] Bye.
[Alice] Until next time.