(USAGE: PALIN A B B A ...)
START
at the beginning and a MEMORY rule (must have exactly 4 entries) at the end: (MEMORY XYZZY
(0 = A)
(0 = B)
(0 = A A)
(0 = B B)
)
:-)PS: I'm not sure, if the initial welcome message is actually mandatory, but the MEMORY rule definitely is.
And the MEMORY keyword "must be an ordinary keyword as well." So you'd need a (XYZZY ...) rule.
Also, the START symbol appears in the DOCTOR script, but is never mentioned in the body of the paper.
Another thing Weizenbaum doesn't mention in his description is the final empty list in the DOCTOR script. This does seem to be expected by the code.
Other: It has been a while, since I had a closer look at ELIZA, and I have to admit that I forgot most about the intrinsics of the MEMORY rule.
PS: An interesting feature of ELIZA in the context of problem solving may be that, if there is more than a single recomposition rule, ELIZA will cycle through them (e.g., alternating between two expressions.) This may allow for some interesting, even surprising, and still state-dependent behavior, kind of a "Moiré logic". :-)
"Moiré logic" was a joke, meaning, an interference pattern caused by two layers of logical state.
Well, there's actually one thing, I can contribute: The famous photo of Weizenbaum on a terminal (sometimes attributed to the German magazine "Die Zeit") – e.g. here [1] – seems to show Weizenbaum on a Lorenz teletypewriter [2], so there is some probability to the photo actually having been taken in Germany.
[1] https://maeda.pm/2019/02/11/joseph-weizenbaum-humanist-techn...
[2] https://twitter.com/RetroWizzard/status/1419658098210451459 (1st image)
PS: You may find this one (my own doing) amusing: https://masswerk.at/eliza/