Published on

In 1966 a program of a few hundred lines made many people feel listened to and understood. It was called ELIZA and Joseph Weizenbaum had written it at MIT. It understood nothing, and yet some people told it their secrets.
On this page you will find out how it worked, who its author was, the stories from the time and why its lesson still matters in the age of large language models. At the end you can try ELIZA rebuilt in 14 languages and see the trick for yourself.
Download the handoutPrintable PDF version of this lesson, with exercise and glossary.
Download the handout as PDFUnderstand how a program with no grasp of language managed to look like an attentive listener, and recognise the same effect in today's chatbots.
After reading, or right now: talk to ELIZA in one of the 14 available languages.
Have you ever felt that a chatbot really understood you? The first time it happened was sixty years ago.
ELIZA is a program written by Joseph Weizenbaum at MIT between 1964 and 1966. It ran on a large IBM 7094 shared by many users, the CTSS system of Project MAC: people typed on a teletype and the answers came back printed, all in capital letters.

The name comes from Eliza Doolittle, the flower girl in George Bernard Shaw's «Pygmalion» who learns to speak like a lady without changing who she is. The program, too, only learns the manners of conversation: there is no understanding behind them.
ELIZA was a general engine that read a script with the rules of conversation. The most famous script was called DOCTOR and imitated a Rogerian psychotherapist, who hands the patient's own words back as a question. Weizenbaum chose this role on purpose: it is the one conversation where the person answering can know nothing about the world without seeming odd.
ELIZA did not understand sentences: it looked for keywords and gave your sentence back to you as a question.
Here is a dialogue with the English version you will find at the end of this page. The replies are the program's real ones.
ELIZA: How do you do. Please tell me your problem.
You: My mother takes care of me.
ELIZA: Who else in your family takes care of you?
You: I can't sleep.
ELIZA: How do you know that you can't sleep?
You: You are like my father.
ELIZA: What makes you think I am like your father?

Weizenbaum's article introducing the program appeared in January 1966 in Communications of the ACM, the journal of the Association for Computing Machinery. He already noted there that some people found it hard to believe there was no human at the other end.
Weizenbaum was born in Berlin in 1923 into a Jewish family. In 1936, fleeing Nazi persecution, the family emigrated to the United States. He studied mathematics at Wayne State University in Detroit, where in the 1950s he was already helping to build a computer.

At General Electric he worked on ERMA, one of the first systems to automate a bank's work. In 1963 he joined MIT, where he created a language for handling lists of data, SLIP, and used it to write ELIZA.
The program's success frightened him. In the following years he became one of computing's sharpest critics: not against computers, but against the idea of handing machines decisions that need human judgement, respect and responsibility. He died in 2008 in Gröben, Germany, where he had returned to live.
The real question is not whether a computer can do something, but whether we should let it.
The mechanism is simple, and that is exactly what makes it instructive. For every sentence you type, ELIZA always follows the same four steps.

| Step | What happens | Example |
|---|---|---|
| Sentence | What you type | «I can't sleep at night» |
| Keyword | «can't» is found, with its pattern | «* I can't *» |
| Captured piece | The part after the pattern | «sleep at night» |
| Reply | Template with the piece inserted | «How do you know that you can't sleep at night?» |
If no keyword appears, ELIZA has two tricks up its sleeve. The first is a set of generic lines: «Please go on», «What does that suggest to you?». The second is a small memory: sentences beginning with «my» are put aside and brought back later, so the program seems to remember you.
ELIZA has no idea what a mother, sleep or a computer is. It only works on letters and words: it is a hall of mirrors, not understanding.
ELIZA's fame is made of episodes. Some were told by Weizenbaum himself, others are documented in the archives of the first computer networks.

The best-known episode comes from Weizenbaum himself. His secretary, who had watched him work on the program for months and knew perfectly well it was only a program, sat down at the teletype. After a few exchanges she asked him to leave the room: she wanted to talk to ELIZA in private. Historians still argue about the details, but Weizenbaum drew a clear conclusion: a very simple program was enough to lead normal people into delusional thinking.
In 1968 Daniel Bobrow, a researcher at the firm BBN, told a story called «A Turing Test Passed». A company vice president found a free teletype and thought it was connected to Bobrow's terminal at home. He started typing to him, but at the other end was a version of DOCTOR. The evasive replies made him furious, and in the end he phoned Bobrow to complain about his rudeness.
In 1966 the psychiatrist Kenneth Colby and colleagues published a study imagining automated therapy programs able to handle hundreds of patients an hour. In 1975 the astronomer Carl Sagan imagined psychotherapy terminals rather like telephone booths. Weizenbaum, who quotes both ideas in his book, was dismayed: he could not believe people wanted to hand the relationship between two human beings to a machine.
Meanwhile Colby had built PARRY, a program simulating a paranoid patient. On 18 September 1972, over ARPANET, the network that would grow into the Internet, PARRY and DOCTOR were made to talk to each other: an artificial patient and an artificial therapist. The transcript, full of suspicions about bookmakers and gambling, was published by Vint Cerf, one of the fathers of the Internet, in the technical document RFC 439 in January 1973.
Shortly after 1966 Bernie Cosell at BBN wrote a version of ELIZA in the Lisp language. That was the one that spread over ARPANET, so for decades many people believed the original was written in Lisp. Weizenbaum's version, in MAD-SLIP, stayed locked in the MIT archives. Even today the Emacs text editor has a command, «doctor», that opens an ELIZA-style therapist.
In 1976 Weizenbaum published Computer Power and Human Reason. It is a reflection on what machines can do and on what we should not ask of them, written by the man who had built the first program able to deceive with words.

Our tendency to credit a program that produces plausible sentences with understanding, intentions and feelings is called the ELIZA effect. The term spread in the 1990s, partly thanks to the writings of the cognitive scientist Douglas Hofstadter.
In 2021 a group of researchers found the printout of the original code in Weizenbaum's archives at MIT. In January 2025 the same group (Rupert Lane, Anthony Hay, Arthur Schwarz, David M. Berry and Jeff Shrager) announced they had brought it back to life on a reconstruction of CTSS running on an emulated IBM 7094. They deliberately kept a bug found in the original code: fixing it would have spoiled the authenticity of the artefact.
In 2025 two researchers at the University of California San Diego, Cameron Jones and Benjamin Bergen, ran a three-party Turing test: a person chats at the same time with a human and with a program, then has to say which is which. GPT-4.5, prompted to play a persona, was picked as the «human» 73% of the time. ELIZA, used as a baseline, 23%: not much, but not zero for a program from 1966.
| ELIZA (1966) | Modern chatbots | |
|---|---|---|
| How it replies | Hand-written rules, keywords | Statistical model trained on huge amounts of text |
| Knowledge of the world | None | A lot, but it can make things up (hallucinations) |
| Memory | A few sentences with «my» | The whole conversation, sometimes more |
| ELIZA effect | Already very strong | Even stronger, because replies are fluent and relevant |
A chatbot that replies with empathy does not feel empathy. Hard times call for people: friends, family, professionals. A program can help you sort your thoughts; it cannot take care of you.
The same goes at work: an answer that sounds confident still needs checking.
I rebuilt ELIZA in 14 languages, following the logic of the DOCTOR script: keywords, decomposition patterns, pronoun reflection and template sentences written specifically for each language. It is not the 1966 code, but it works the same way, and you can see its limits.
Pick a language and open ELIZA:
A few sentences to get started: «My mother takes care of me», «I am tired of my job», «I can't sleep», «You are just a machine». Then try typing something with no keywords and see how it copes.
Fifteen minutes, ELIZA in your language and, if you like, a modern chatbot to compare.
Did you find at least one grammatically wrong reply? Why did it happen?
At what moment did ELIZA seem to really understand you?
It was a language-processing program born in the artificial intelligence community of the 1960s. It did not learn and did not understand: it applied hand-written rules. Today we would call it a rule-based chatbot.
Because it imitates a Rogerian psychotherapist, who hands the patient's words back. It is a trick that hides the program's ignorance: whoever asks questions never has to prove they know anything.
Yes. The printout of the MAD-SLIP code was found in the MIT archives in 2021 and in January 2025 it was brought back to life on an emulated IBM 7094.
No. ELIZA is an educational reconstruction and does not understand what you write. Modern chatbots are no substitute for someone you trust or a professional either: if you are going through a hard time, talk to someone.
Because it works at word level: it swaps pronouns and verbs from a table without analysing the sentence. The English original did it too, and in languages with many verb forms the mistakes are more frequent.
| Term | What it means |
|---|---|
| ARPANET | A computer network funded by the US Department of Defense from 1969, the ancestor of the Internet. |
| Chatbot | A program that talks with people through written or spoken messages. |
| ELIZA effect | The tendency to credit a program that produces plausible sentences with understanding and feelings. |
| Keyword | A word that triggers one of ELIZA's rules; each has a priority. |
| Pronoun reflection | Turning «I» into «you», «my» into «your» and so on, to hand the sentence back to its writer. |
| Rogerian therapy | Carl Rogers' person-centred approach to psychotherapy: the therapist listens and reflects back what the patient says. |
| Script | The set of rules telling ELIZA which words to look for and how to reply. DOCTOR is the best-known script. |
| Time-sharing | A system that lets many users work on the same computer at the same time, each from their own terminal. CTSS at MIT was one of the first. |
| Turing test | A test proposed by Alan Turing in 1950: a machine passes if its interrogator cannot tell it apart from a person. |
Facts and sources checked in December 2026. ELIZA in 14 languages is an educational reconstruction by gianlu.it inspired by the DOCTOR script, not the original code.
Download the handoutPrintable PDF version of this lesson, with exercise and glossary.
Download the handout as PDF