Chatbot, AI, Eliza

De source code van Eliza in meerdere programmeertalen
This is a little version of ELIZA, a famous natural-language AI demo from the 1960s, packaged up as a Python module. It's all smoke and mirrors; the program doesn't have a clue what it is saying and it's not difficult to catch it out. It's amusing, and it means your chatbot always has something to say.
 * In de programmeertaal Python:
 * http://www.jezuk.co.uk/cgi-bin/view/software/eliza (Heb ik op mijn harddisk bewaard in /home/laudaka/Documents/comp/ELIZA.)

import eliza therapist = eliza.eliza while(some_condition) #get input from somewhere reply = therapist.respond(input) #send reply somewhere

LIZA emulates a Rogerian psychotherapist.
 * In de programmeertaal JavaScript/ECMAScript:
 * http://www.manifestation.com/neurotoys/eliza.php3 (Heb ik op mijn harddisk bewaard.)

ELIZA has almost no intelligence whatsoever, only tricks like string substitution and canned responses based on keywords. Yet when the original ELIZA first appeared in the 60's, some people actually mistook her for human. The illusion of intelligence works best, however, if you limit your conversation to talking about yourself and your life.

This javascript version of ELIZA was originally written by Michal Wallace and significantly enhanced by George Dunlop.