Eliza
Eliza is the original "psychoanalytical" program.
It was written in 1966 by Joseph Weizenbaum.

This is a 1999 Java version of Eliza based on a BASIC program which is an IBM PC adaptation of a listing which appeared in the magazine Creative Computing around 1981.

I converted this to JavaScript in August 2015.

Source is here and you can use it however you like.

-Jesper Juul

Reading
Joseph Weizenbaum: Computer Power and Human Reason: From Judgement to Calculation. W.H. Freeman & Co., 1976.