As I've written chat bots before this is standard stuff that all bots do:
1. regex the input and spit back canned responses:
Question: I live in the |||<<capital of the United States>>|||. Do you know where that is?
Eugene: Every nerd knows that the |||<<capital of The United States is Washington>>|||.
2. if you get confused spit back out something from the chat history
Question I live in the capital of the country that put a man on the moon.
Eugene:: Well, if you want it, the |||<<capital of The United States is Washington>>||.
3. if you haven't been able to find a regex pattern match in a while try to derail the conversation.
Question: How old were you when you started to wear glasses?
Eugene: No I was not! How can you think so?! If I’m not mistaken – |||<<you still didn’t tell me where you live>>||. OR it’s a secret?:-)
In fact this bot is pretty bad. You can tell from the output that it couldn't pattern match virtually any of the inputs and responses 3,7-10 are an attempt to change the topic of the conversation. Responses 4,5 are pattern match misses that are regurgitating from the chat history. Only 1,2,4 are response matches from the parsing engine.
1. regex the input and spit back canned responses: Question: I live in the |||<<capital of the United States>>|||. Do you know where that is? Eugene: Every nerd knows that the |||<<capital of The United States is Washington>>|||.
2. if you get confused spit back out something from the chat history Question I live in the capital of the country that put a man on the moon. Eugene:: Well, if you want it, the |||<<capital of The United States is Washington>>||.
3. if you haven't been able to find a regex pattern match in a while try to derail the conversation. Question: How old were you when you started to wear glasses? Eugene: No I was not! How can you think so?! If I’m not mistaken – |||<<you still didn’t tell me where you live>>||. OR it’s a secret?:-)
In fact this bot is pretty bad. You can tell from the output that it couldn't pattern match virtually any of the inputs and responses 3,7-10 are an attempt to change the topic of the conversation. Responses 4,5 are pattern match misses that are regurgitating from the chat history. Only 1,2,4 are response matches from the parsing engine.