we used something similar to this in my high school computer class. It was called Eliza I think. Eventually though all of our questions and answers got muddled and it started giving us answers to somebody else's questions.
I asked it what was its favorite holiday and it responded with "Yes I fuck" but the kid beside me had actually asked the question about fucking.
Good times.