A Markov chain based text generation library and MegaHAL style chatbot