ELIZA is a natural language conversation program written by Joseph Weizenbaum at MIT between 1964 and 1966, widely regarded as the first chatbot. It produced replies by matching keywords in the user’s input and transforming the sentence according to a script, most famously the DOCTOR script, which imitated a Rogerian psychotherapist.
In AI history, ELIZA is a landmark less for its technology than for what it revealed about people. Users readily attributed understanding and empathy to a program that had neither, a reaction now called the ELIZA effect. The system shaped debates about machine intelligence, the Turing test and the ethics of conversational software for decades.
How ELIZA generated its replies
ELIZA worked by decomposition and reassembly: it searched the input for keywords, broke the sentence into parts according to a pattern, and reassembled those parts into a reply template. It kept no model of meaning, no memory of facts and no representation of the user.
Each keyword in a script carried a rank, so when several keywords appeared, the highest-ranked one determined the response. Pronouns and verb forms were swapped, turning “my” into “your” and “I am” into “you are”, so that fragments of the input could be reflected back as questions.
| Component | Function | Example behavior |
|---|---|---|
| Keyword list | Identifies trigger words and their priority | “mother” outranks “always” |
| Decomposition rule | Splits input around the keyword | Captures the phrase after “I feel” |
| Reassembly rule | Inserts captured parts into a template | Asks why the user feels that way |
| Pronoun transformation | Swaps first and second person | “my job” becomes “your job” |
| Memory queue | Stores earlier phrases for later reuse | Returns to a topic mentioned before |
| Default responses | Covers input with no keyword | Generic prompts to continue |
The program was written in MAD-SLIP on the IBM 7094 under the CTSS time-sharing system. Weizenbaum separated the script from the engine, so the same program could run different conversational roles simply by loading a different set of rules.
Why the DOCTOR script was so convincing
The DOCTOR script succeeded because Rogerian therapy is built on reflecting the client’s statements back with minimal contribution from the therapist. That conversational style hides ignorance: a question that repeats part of the input appears attentive even when the program knows nothing about the subject.
Weizenbaum chose this setting deliberately. In a psychotherapeutic interview, a vague or evasive reply seems natural, so users supplied the missing meaning themselves. Accounts from the period describe staff asking to be left alone with the program and people treating its output as genuine concern, which troubled its author deeply.
| Design choice | Effect on the conversation | Why it worked |
|---|---|---|
| Reflective questions | Keeps the user talking | Mirrors a familiar therapeutic technique |
| Reuse of user wording | Creates an impression of listening | Personal phrases feel acknowledged |
| Neutral fallbacks | Masks failure to parse | Vague prompts seem patient, not confused |
| Typed interaction | Removes voice and face cues | Users project intent onto plain text |
The illusion was fragile. Users who asked factual questions, changed topic abruptly or tested the program with nonsense quickly exposed its mechanical repetition. The persuasive effect therefore depended on cooperative users who accepted the therapeutic frame and kept supplying emotionally loaded statements for the script to reflect.
The ELIZA effect and its lasting influence
The ELIZA effect is the tendency to attribute understanding, intention or emotion to a computer system on the basis of superficially fluent output. It remains a central concept for assessing chatbots, voice assistants and large language models, where the gap between fluency and comprehension is still debated.
Weizenbaum drew a strong conclusion from the experience. In his 1976 book Computer Power and Human Reason, he argued that some decisions, including therapy and judgment about people, should not be delegated to computers even if machines could perform them. This made ELIZA an early reference point in the ethics of artificial intelligence.
ELIZA also inspired a long line of rule-based chatbots, from hobbyist programs on home computers to competitors in the Loebner Prize. Its pattern-template approach survives in modern scripted systems such as AIML-based bots, customer service decision trees and fallback layers in commercial assistants.
ELIZA compared with later conversational systems
Comparing ELIZA with its successors shows how conversational AI moved from hand-written rules to statistical and neural methods. The table places it alongside other landmark systems in the history of dialogue programs.
| System | Period | Core technique | Notable feature |
|---|---|---|---|
| ELIZA | 1966 | Keyword matching and reassembly | Simulated a Rogerian therapist |
| PARRY | 1972 | Rules plus a model of emotional state | Simulated a paranoid patient |
| SHRDLU | 1970 | Parsing and planning in a blocks world | Genuine reasoning in a tiny domain |
| A.L.I.C.E. | 1995 | AIML pattern categories | Won the Loebner Prize several times |
| Neural chatbots | 2010s onward | Sequence models and transformers | Learned responses from large corpora |
Unlike SHRDLU, which manipulated an internal world model, ELIZA had no world to reason about. Unlike modern language models, it learned nothing from data. Its significance lies in showing how little machinery is needed to create a convincing illusion of dialogue.
Common misconceptions about ELIZA
Because ELIZA is often cited in passing, several inaccurate claims circulate about it. Correcting them clarifies what the program actually demonstrated.
- It did not pass the Turing test in any controlled sense; informal anecdotes of people being fooled were not structured experiments.
- It was not designed as a therapy tool; Weizenbaum intended it to show the superficiality of human-machine communication.
- It did not learn from conversations; every behavior came from the fixed script.
- The original code was long thought lost; a listing was rediscovered in MIT archives in 2021 and has since been studied and restored.
The idea in brief
ELIZA was a very early computer program that could chat in typed English. It looked for certain words in what you wrote. Then it turned your sentence into a question. It understood nothing at all.
Many people still felt that it listened to them. This is like talking to someone who only nods and repeats your words. It feels attentive, even when no real thought is behind it. That feeling of being understood by a machine is now called the ELIZA effect.
A practical scenario
A university lecturer teaching an introduction to natural language processing runs a short classroom exercise. Students first chat for five minutes with a faithful ELIZA reimplementation running the DOCTOR script, then rate how well the program seemed to understand them on a scale from 1 to 5.
Next, the lecturer shows the complete set of keyword rules in the script and asks students to predict replies before typing. Most students correctly anticipate the next answer after only a few minutes of study, and their average understanding rating drops sharply in a second survey.
The class then repeats the exercise with a modern language model. The discussion that follows uses ELIZA as a baseline for separating fluency from comprehension, and students leave with a concrete sense of why a convincing chatbot is not evidence of understanding.