Score:2

Command line ELIZA chatbot

vn flag

Is there an implementation of the classic ELIZA AI chat program that can be used on Ubuntu? I am looking for an ELIZA that can be used from the command line.

Score:1
zw flag

Package search on Repology went us to libchatbot-eliza-perl Ubuntu package.

You can install it using commands below:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libchatbot-eliza-perl

and then play with it

$ /usr/share/doc/libchatbot-eliza-perl/examples/simple

Welcome to your therapy session.
Your therapist's name is Liz.

Liz:   Please tell me what's been bothering you. 
you:   Cats
Liz:   Does talking about this bother you?
you:   Yes
Liz:   I understand.
you:   They are meawing.
Liz:   Are you positive they are meawing?
you:   Yes
Liz:   Please go on.
you:   

It is Perl module, so you can read its source at /usr/share/perl5/Chatbot/Eliza.pm and man Chatbot::Eliza.3pm locally or online.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.