ELIZA chatbot: the script, the surviving code and the human response
The ELIZA chatbot turned a statement of unhappiness into a prompt about how long that unhappiness had lasted. Joseph Weizenbaum's 1966 technical description made the operation explicit: recognize part of a sentence, isolate the remaining words, then insert those words into a prepared response. ELIZA's conversational continuity came from text transformations. The program and the script controlling its behavior were distinct components.
Weizenbaum described decomposition rules triggered by keywords and reassembly rules associated with those decompositions. A pattern could retain an arbitrary number of words between recognized terms; another could require a fixed number. Substitution changed personal pronouns when constructing a reply. A response could consequently echo a person's statement from a different grammatical perspective without interpreting the experience being described. The familiar psychotherapist script supplied an especially accommodating setting: a non-directive response could return attention to the person speaking rather than introduce facts about the outside world. The software's apparent attentiveness rested on the suitability of that conversational role.
The ELIZA chatbot could also respond when no keyword appeared. Weizenbaum treated that fallback as a technical problem alongside script editing. Extending the script changed the repertoire of recognizable patterns and replies. A conversation's fluent surface depended on this repertoire.
A later recovery supplied executable evidence alongside the printed description. Rupert Lane, Anthony Hay, Arthur Schwarz, David Berry and Jeff Shrager documented the restoration in 2025. Shrager and MIT archivist Myles Crowley had located source material among Weizenbaum's papers in 2021. It included an early DOCTOR script, nearly complete MAD-SLIP code and supporting routines. Permission from the Weizenbaum estate allowed public release. The team brought the original program back on the Compatible Time-Sharing System, running inside an emulated IBM 7094. Recovering the surrounding computing environment was part of recovering the conversational program itself.
The restorers reported that 96% of the running code matched the recovered material exactly. They documented the repairs needed to run it and retained a defect involving numerical input rather than alter the core program to remove it. Their reconstruction also exposed differences between the surviving implementation and features described in 1966, including script-editing behavior. The ELIZA chatbot preserved through that work was a particular historical implementation. A modern imitation producing similar dialogue could conceal those differences; running the recovered code made its actual behavior, including its awkward edges, available for examination.
MIT's 2008 remembrance of Weizenbaum records a different consequence of the experiment. People took the simulated therapeutic conversation seriously and disclosed personal feelings to it. The institution connects his surprise at that response with his later criticism of delegating human decisions to computers. His 1976 book, Computer Power and Human Reason, argued against assuming that additional processing power and programming would make every human responsibility appropriate for a machine. MIT computer scientist Eric Grimson described the book as a stimulus to debate about computer systems in decision-making. That institutional retrospective concerns the effects of ELIZA and Weizenbaum's subsequent position. It supplies evidence about his intellectual trajectory alongside the surviving technical mechanisms.
Sherry Turkle offered a participant's perspective in A Nascent Robotics Culture. She recalled teaching courses on computers and society with Weizenbaum when his book appeared. Students who knew they were communicating with a program nevertheless wanted to talk with it privately. Turkle initially interpreted those encounters as projection: people could use an interactive diary while recognizing the enormous gap between software and a person. Her recollection separates knowing how a system works from wanting to confide in it. Technical knowledge did not automatically remove the attraction of a responsive exchange.
Turkle later reconsidered her reassurance. She wondered whether she had underestimated the connection people experienced with the ELIZA chatbot. Her argument concerned attachment and expectations of reciprocal care, rather than a newly discovered language-understanding mechanism in the software. The distinction is consequential: her evidence about people's relationships with computational objects does not replace Weizenbaum's specification of pattern transformations. It describes what people could bring to an interaction conducted through those transformations, even when the program's limitations were familiar to them.
Jeff Shrager's 2024 historical study places ELIZA within research on how people interpret communication with machines. He reports an outline, signed by Weizenbaum and recovered from the MIT archives, for a paper on possible ELIZA experiments. It addressed understanding, misunderstanding and correction during exchanges. Shrager treats this document as evidence for a research platform whose intended purpose extended beyond the DOCTOR performance. Weizenbaum's published 1966 paper also proposed concrete experiments. Researchers could vary the script to see how long a person accepted replies as coming from another human, or deliberately weaken performance to examine credibility. Initial instructions could change whether the person thought the partner was a machine. These were proposed ways to investigate human judgments, rather than newly added features in the restored program. The proposals connect the technical description to questions about the person interpreting its output. They also preserve a distinction between the rules that assembled a sentence and the expectations through which a reader gave that sentence meaning.
- Joseph Weizenbaum, ELIZA—A Computer Program for the Study of Natural Language Communication Between Man and Machine, Communications of the ACM 9(1), 1966 (Stanford copy) — web.stanford.edu
- Rupert Lane et al., ELIZA Reanimated: The World’s First Chatbot Restored on the World’s First Time Sharing System (2025) — arxiv.org
- MIT News, Joseph Weizenbaum, Professor Emeritus of Computer Science, 85 (10 March 2008) — news.mit.edu
- Sherry Turkle, A Nascent Robotics Culture: New Complicities for Companionship, MIT-hosted paper — web.mit.edu
- Jeff Shrager, ELIZA Reinterpreted: The World’s First Chatbot Was Not Intended as a Chatbot at All (2024), historical interpretation and research purpose — arxiv.org