ELIZA: The First Chatbot
Joseph Weizenbaum develops ELIZA, one of the earliest natural language processing programs, capable of simulating a psychotherapist.
Overview
ELIZA was developed by Joseph Weizenbaum at MIT. It simulated human conversation through pattern matching and substitution techniques. The most famous script, "DOCTOR", simulated a Rogerian psychotherapist by turning users' statements into questions. Although ELIZA did not actually understand the conversation, it successfully elicited emotional responses from many users, a phenomenon later known as the "ELIZA Effect".
Study Notes
Background, mechanics, impact, and key takeaways in one read
Background & Context
In 1966 Joseph Weizenbaum at MIT published ELIZA, widely regarded as the world's first chatbot. His aim was not to prove machines understand language, but to "parody," with minimal pattern matching, the overblown expectations surrounding human–machine communication. Its best-known script, DOCTOR, mimics a Rogerian psychotherapist using only keyword substitution and template reassembly to fake empathy. To Weizenbaum's surprise, many users formed genuine emotional attachments to the program—a paradox that later led him to turn critic of AI in his 1976 book.
Key Points
- 1Weizenbaum developed ELIZA at MIT between 1964 and 1966 in the SLIP list-processing language.
- 2The DOCTOR script mimics a Rogerian therapist by turning statements back as questions to fake empathy.
- 3The program has no real semantics or world knowledge—only keyword matching and template reassembly.
- 4It is named after Eliza Doolittle, the working-class heroine taught refined speech in Shaw's Pygmalion.
- 5Many users, even psychologists, thought it understood them, giving rise to the "ELIZA effect."
- 6Weizenbaum later turned critic, warning in 1976 against machines usurping human judgment.
How It Works
ELIZA's technique is strikingly simple: it understands nothing, merely playing with text. The program runs a script holding a ranked keyword table. On user input it scans for the highest-ranked keyword, applies a decomposition rule to split the sentence, then uses a reassembly rule to form a reply. For example, "I have a headache" hits "headache" and draws "Why do you say you have a headache?" Pronouns are swapped (I→you), and a memory queue can reintroduce earlier topics later. If no keyword matches, it falls back to a generic prompt like "Please go on." The whole mechanism is a well-written manual of replies—yet enough to create the illusion of being heard.
Impact & Legacy
ELIZA is a milestone in NLP and conversational systems, directly inspiring later chatbots such as PARRY and prefiguring today's Siri and customer-service agents. It exposed the core limit that syntactic manipulation is not understanding, and sparked enduring ethical debate about machine empathy and anthropomorphism. Weizenbaum's own turn from author to critic became a key starting point for reflecting on AI's social responsibility.
Key Takeaways
- Fluent dialogue can arise from pure pattern matching, but seeming to listen is not understanding.
- Humans readily anthropomorphize; personification is a double-edged sword in interface design.
- Even the simplest system can expose deep philosophical and ethical questions beyond the technique.
Glossary
The tendency to mistake a machine's symbol manipulation for understanding or empathy, named after ELIZA.
Carl Rogers's non-directive therapy emphasizing listening and reflective replies; the DOCTOR script imitates it.
A shallow NLP technique of finding predefined keywords in text and transforming by rules; ELIZA's core.