ELIZA

On this page 7

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.

ComponentFunctionExample behavior
Keyword listIdentifies trigger words and their priority“mother” outranks “always”
Decomposition ruleSplits input around the keywordCaptures the phrase after “I feel”
Reassembly ruleInserts captured parts into a templateAsks why the user feels that way
Pronoun transformationSwaps first and second person“my job” becomes “your job”
Memory queueStores earlier phrases for later reuseReturns to a topic mentioned before
Default responsesCovers input with no keywordGeneric prompts to continue
Main components of the ELIZA mechanism

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 choiceEffect on the conversationWhy it worked
Reflective questionsKeeps the user talkingMirrors a familiar therapeutic technique
Reuse of user wordingCreates an impression of listeningPersonal phrases feel acknowledged
Neutral fallbacksMasks failure to parseVague prompts seem patient, not confused
Typed interactionRemoves voice and face cuesUsers project intent onto plain text
Design choices and their effect on users

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.

SystemPeriodCore techniqueNotable feature
ELIZA1966Keyword matching and reassemblySimulated a Rogerian therapist
PARRY1972Rules plus a model of emotional stateSimulated a paranoid patient
SHRDLU1970Parsing and planning in a blocks worldGenuine reasoning in a tiny domain
A.L.I.C.E.1995AIML pattern categoriesWon the Loebner Prize several times
Neural chatbots2010s onwardSequence models and transformersLearned responses from large corpora
ELIZA and later landmark dialogue systems

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.