Introduction to Artificial Intelligence
Worksheet #7
Eliza the Psychiatrist

READ A SAMPLE SESSION WITH ELIZA
  1. Modify Eliza
    Or use shrink2000.lsp, a version with newer syntax.
    Modify so that instead of always using a "punt" it alternately uses a punt or a
    reference to a previous item of dialog. You need to have a queue to store some
    matched fragment in at least two of the production rules. The result of this
    enhancement might be:
  2. a. Increase the number of punts (the random "filler" responses) to at least 12.
    b. Change the verb list - add to it
    c. Change the standard responses for LOVE, DREAM, etc.

  3. a. Have a "family-check" or something similar so that you maintain a list of family
    members such as mother, father, sister, sibling, etc, and when this family member
    name comes up anywhere in the input you put it in the queue along with whatever
    question you want to ask.

    Example:

    b. you maintain a list of verbs to check which you put into a queue. You will either
    give a bland or a cheerful response. (These should be alternating among a list of
    several adjectives such as "marvelous", "wonderful", "super", etc.)

    Example:
    Hint: Look at the "you-me map" for ideas on this