BTW, there is a rather nice Eliza implementation on CPAN which can be used just like any other Perl program. It seems to be a fairly true implementation of the original Eliza by Weizenbaum....
http://search.cpan.org/~jnolan/Chatbot-Eliza-1.04/ In it's simplest form, you can just make a file called eliza.pl and insert the following: use Chatbot::Eliza; $mybot = new Chatbot::Eliza; $mybot->command_interface; Then you just run perl eliza.pl and off it goes! t...@ted-desktop:~/Desktop$ perl eliza.pl Eliza: Hello, I am a computer program. you: Have you been properly tested? Eliza: Oh, I been properly tested? you: I hope so. Eliza: Do you say you hope so for some special reason? you: I don't want you to break. Eliza: We were discussing you -- not me. you: The author does a good job with his perldoc, btw. http://search.cpan.org/~jnolan/Chatbot-Eliza-1.04/Chatbot/Eliza.pm Enjoy, Ted On Tue, Oct 6, 2009 at 10:45 AM, Ted Pedersen <[email protected]> wrote: > Here are a few implementations of Eliza, the famous "NLP" program that > would appear to carry out a conversation with you... > > http://nlp-addiction.com/eliza/ > > http://www-ai.ijs.si/eliza/eliza.html > > http://www.manifestation.com/neurotoys/eliza.php3 > > http://www.chayden.net/eliza/Eliza.html > > Wikipedia has a few interesting links too.. > > http://en.wikipedia.org/wiki/ELIZA > > We'll discuss this more in the coming weeks, so please try these out... > > Thanks! > Ted > > -- > Ted Pedersen > http://www.d.umn.edu/~tpederse > -- Ted Pedersen http://www.d.umn.edu/~tpederse

