Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Screenshots Panic Mandelbr Planets Comanche Calc7 Savehd7 Compiler Dnafight Sudoku Wator Tar7 Sydir7 Ftp7 Castle Tetris Make7 Ftpserv Basic Pairs Shisen Eliza Toutf8 Lander Wiz Startrek Mahjong
Eliza Source Code
 previous   up   next 

The Computer Psychiatrist

This is the Seed7 version of the famous computer program by Joseph Weizenbaum. Intended to be a parody of a therapist, it was so convincing that some psychiatrists believed, that an automated form of psychotherapy would be possible. The form of a psychiatric interview was chosen to avoid a database of real-world knowledge. The program uses a keyword search and a table of response templates. Using the templates it rephrases many of the patient's statements as questions and poses them to the patient. This simple mechanism works so good that some people did not believe that they talked to a program, even after the facts where shown to them. To exit the program just write shut.

Eliza example 1

Eliza example 2

 previous   up   next