In the mid-1960s, Joseph Weizenbaum at MIT wrote ELIZA, a ground-breaking program in artificial intelligence that allowed users to converse with it using plain English. ELIZA was meant to sound like a Rogerian therapist: friendly, non-judgmental, and reflective, using questions to get the user to talk further about him or herself. By searching for certain keywords, ELIZA could provide very focused responses, in addition to using a variety of generic statements and questions.
The web has many examples of similar programs now, also known as chatterbots.
Use spiral development (see page 107). Begin with a very simple working program and gradually add features like these:
3.147.58.199