Joseph Weizenbaum’s 1966 ELIZA recreated in C++ I’ve made in C++ what I think is an accurate simulation of the original ELIZA. It is a console application that takes as input the original format script file, which looks like a series of S-expressions, and then waits for the user to type a line of text before responding with a line of text of its own. ELIZA is a chatbot—the first chatbot—written between 1964-1966 by Joseph Weizenbaum, Professor of Electrical Engineering at MIT, and part-supported by the US Department of Defence Project MAC. It is configured via a "script," the most famous of which is called DOCTOR. The script contains simple pattern matching rules that ELIZA uses to reflect back parts of the text typed in by the user. Weizenbaum's purpose was not to advance our understanding of intelligence, but to create the illusion that ELIZA understood what had been said to it in order to demonstrate how easily people can be fooled. I made this before the ELIZA source code had been found, and wrote about it in part 1. Part 2 describes changes I made after the ELIZA source code was found. Part 3 is about the HASH function, now that too has been found. In a footnote I document trying to recreate the PARRY/DOCTOR conversation from RFC439. My son Max Hay and I recreated ELIZA in JavaScript here. Try it here. I added serial I/O to run ELIZA on an ASR 33 teletype. I helped show that 1966 CACM ELIZA is Turing complete. There are several Turing machine ELIZA scripts here. There is a huge collection of ELIZA-related information at Jeff Shrager's elizagen.org. Along with Jeff and others I am contributing to a book about ELIZA. The website is findingeliza.org. Thanks to Rupert Lane, you can now run the original MAD ELIZA code. (Jeff's ELIZA Reanimated paper.) To build and run ELIZA Note that the whole of ELIZA is in the one file eliza.cpp (unless you wish to also use the serial I/O code mentioned above). POSIX (e.g. macOS) (I used Apple clang version 15.0.0 that came with X...
First seen: 2025-05-17 20:48
Last seen: 2025-05-18 00:49