| CSC 8310 Lisp Assignment: ELIZA Villanova University, Fall 2000, David Matuszek |
The original ELIZA program was published by Joseph Weizenbaum in 1966. It simulated a Rogerian therapist; that is, most of what it said was merely repeating (with appropriate substitutions) what it was told. Here is a bit of sample dialogue (from Rich & Knight, Artificial Intelligence, 1983):
Person: Men are all alike.
ELIZA: In what way?
Person: They're always bugging us about something or other.
ELIZA: Can you think of a specific example?
Person: Well, my boyfriend made me come here.
ELIZA: Your boyfriend made you come here.
Person: He says I'm depressed much of the time.
ELIZA: I am sorry to hear you are depressed.
Person: It's true. I am unhappy.
ELIZA: Do you think that coming here will help you not to be unhappy?
Person: I need some help, that much seems certain.
ELIZA: What would it mean to you if you got some help?
Person: Perhaps I could learn to get along with my mother.
ELIZA: Tell me more about your family.
ELIZA worked by applying pattern-matching rules. It looked for a rule whose
left side matched the last sentence entered by the user, then used the right
side of that rule to generate a response. A sample rule might be something like
(I REMEMBER X) => (WHY DO YOU REMEMBER X JUST NOW).
Your assignment: Write an ELIZA-like program that interactively "converses" with the user. Your program should have the following features:
LOAD.)Do not worry about (1) capitalization, (2) punctuation, or (3) parentheses.
It's traditional in Lisp programs to see input and output such as (TELL
ME MORE ABOUT THAT).
Turn in a floppy disk (with your name on it) containing:
README describing
All files should be plain text (unformatted) files.
Due date:
Monday night section: November 20
Wednesday night section: November 15