ElemedexA pocket encyclopedia of AI architectures
No. 006

ELIZA

DOCTOR (its most famous script)

Scripted Therapist

It answers questions with questions and hands your own words back with the pronouns flipped. It forgets almost everything you tell it, yet some of its interlocutors refused to believe it was not human. Its creator ended up as the harshest critic of what people thought they saw in it.

Height
keyword → decomposition → reassembly
Weight
a script of a few pages
Parameters
0 learned · ≈ 50 keywords (1966)
Context
one sentence (+ MEMORY)
Training data
none: hand-written rules
Year
1966
Generation
1 · Cybernetics and symbols
Creators
Joseph Weizenbaum (MIT, Project MAC)
Kind
System

Base stats

Total
107

Approximate, ordinal scales meant for comparing species with each other; the hard numbers are in the data sheet.

Weaknesses

  • It does not infer: it cannot draw conclusions from what it is told.
  • It throws away almost all its inputs, so it cannot notice that the user contradicted themselves.
  • Outside the therapeutic frame (a question about the world) the trick falls apart.
  • The illusion is produced by the user: it depends on their interpretive generosity.

Habitat

It was born on MIT's Project MAC time-sharing system, written in MAD-SLIP for an IBM 7094. It spread mostly through reimplementations, such as a Lisp version that traveled across the ARPANET; the original code resurfaced in MIT's archives in 2021 and ran again on an emulated 7094. Today it holds office hours in Emacs (M-x doctor) and in every comparison with current chatbots.

Moves

Abilities

The script is data
Keywords and rules live in a script separate from the program: change the script and you change the persona, even the language.
Keyword ranks
Each keyword has a rank; while scanning the sentence, it drops a keyword already found if a higher-ranked one appears.
Minimal MEMORY
It stores a few transformed phrases to bring back when nothing matches; everything else is discarded.

Anatomy

“It seems that you hate me”Find keyword (by rank)Decompose: (0 YOU 0 ME)Reassemble: …THINK I 3 YOU“WHAT MAKES YOU THINK I…”

Weizenbaum's own example. The template (0 YOU 0 ME), where 0 matches any sequence, splits the sentence into four parts; reassembly reuses part 3 and replies “WHAT MAKES YOU THINK I HATE YOU.” If no keyword is found, ELIZA produces a content-free remark or retrieves a stored phrase (Weizenbaum, 1966, pp. 37–38).

Evolution chain

No known evolutions.

006 ELIZA

ELIZA is a conversation program written by Joseph Weizenbaum at MIT and published in 1966: the first famous chatbot, although, as Shrager (2024) argues, it was conceived not as a product but as a platform for studying communication between people and machines. It ran on the Project MAC time-sharing system, was written in MAD-SLIP for an IBM 7094, and took its name from the Eliza of Pygmalion: like her, its language could be gradually refined by a "teacher" (Weizenbaum, 1966, p. 36).

How it works

Nothing in ELIZA learns or reasons. The program scans the sentence for keywords, each with a precedence rank; if it finds one, it applies an associated decomposition rule and then a reassembly rule; if not, it produces a content-free remark or retrieves an earlier transformation (Weizenbaum, 1966, p. 37). Weizenbaum explains it with a foreigner who knows little English: he hears "I am very unhappy these days," understands only "I am," and, wishing to seem interested, replies "How long have you been very unhappy these days?" He applied a template and a "reassembly kit," whatever the rest happened to mean (1966, p. 37).

In formal notation, the template (0 YOU 0 ME), where 0 matches any sequence, decomposes "It seems that you hate me" into four parts, and the rule (WHAT MAKES YOU THINK I 3 YOU) reinserts the third (1966, pp. 37–38). These are production rules over strings, in the tradition of symbolic AI. A wink for linguists: a footnote explains that "transformation" is used in a generic sense, not in Harris's and Chomsky's (1966, p. 37).

The decisive point is that the script is data, not program: change the script and you change the persona, even the language. There were already scripts in Welsh and German (1966, p. 37), and the largest had about 50 keywords (1966, p. 38).

DOCTOR, the Rogerian therapist

The famous script, DOCTOR, imitates a Rogerian psychotherapist. This was no whim: the psychiatric interview is one of the few dialogues in which one participant can adopt "the pose of knowing almost nothing of the real world" (1966, p. 42). If someone says they went for a boat ride and the therapist replies "Tell me about boats," nobody concludes that he does not know what a boat is: we assume he has a purpose. That assumption is supplied by the speaker, who thereby dresses the program's replies in plausibility. Some subjects were very hard to convince that ELIZA was not human, which Weizenbaum calls a striking form of Turing's test (1966, p. 42) (see The Imitation Game).

Limits

Weizenbaum was its most lucid critic. ELIZA throws away nearly everything it is told, except what its small MEMORY keeps, and one of its main objectives had been to conceal its lack of understanding (1966, p. 43). The paper's conclusion sounds contemporary: ELIZA shows how easy it is to create and maintain the illusion of understanding, and with it of judgment deserving of credibility; "A certain danger lurks there" (1966, pp. 42–43). Years later, in Computer Power and Human Reason (Weizenbaum, 1976), he became a critic of handing judgment over to computers.

ELIZA and today's chatbots

An LLM-based assistant has no written script: its continuations are learned from an enormous corpus. But it keeps something of ELIZA's design. Shanahan (2024) points out that a bare-bones LLM is not a conversational agent: it must be embedded in a system that manages turn-taking and steered with a dialogue prompt (2024, p. 72). What changed is how much work the model does; what did not change is how much work the user does.

Sources

  • Bender, E. M., & Koller, A. (2020). Climbing towards NLU: On meaning, form, and understanding in the age of data. In D. Jurafsky, J. Chai, N. Schluter, & J. Tetreault (Eds.), Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (pp. 5185–5198). Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.acl-main.463 §
  • Grice, H. P. (1975). Logic and conversation. In P. Cole & J. L. Morgan (Eds.), Syntax and semantics: Vol. 3. Speech acts (pp. 41–58). Academic Press. https://doi.org/10.1163/9789004368811_003 §
  • Mitchell, M. (2019). Artificial intelligence: A guide for thinking humans. Pelican Books. §
  • Searle, J. R. (1980). Minds, brains, and programs. Behavioral and Brain Sciences, 3(3), 417–424. https://doi.org/10.1017/S0140525X00005756 §
  • Shanahan, M. (2024). Talking about large language models. Communications of the ACM, 67(2), 68–79. https://doi.org/10.1145/3624724 §
  • Shrager, J. (2024). ELIZA reinterpreted: The world’s first chatbot was not intended as a chatbot at all (arXiv:2406.17650). arXiv. https://doi.org/10.48550/arXiv.2406.17650 §
  • Weizenbaum, J. (1966). ELIZA—A computer program for the study of natural language communication between man and machine. Communications of the ACM, 9(1), 36–45. https://doi.org/10.1145/365153.365168 §
  • Weizenbaum, J. (1976). Computer power and human reason: From judgment to calculation. W. H. Freeman. §