I’m writing an irc chatbot and currently it will only reply when spoken to. Regardless of the message it receives it will respond with random Markov chain nonsense (for now these chains are based on letters, not words). So the easy work is done.
What I would like to add is some relevance in the response to the message that the bot received. There are a lot of papers to be found on the web about parse trees but I understand none of them in away that I can derive a concrete algorithm from them.
My design goal is to make this unsupervised. So I don’t want to add a hard coded response to “What is your name?” for example. All learning should be derived from whatever book Project Gutenberg has to offer.
Possibly I could extract one or more words from the message sent to the bot and base the response on that but I don’t know how to determine the relevance (subject for example) of the input message.
Are there any cut-and-dry recources that you know of on how to go about this? Or other strategies achieve the same goal?