As part of a school project, I built a simple Haiku generator using JS. I'm now rebuilding it using a marchov chain. (Also a chance to practice using Python). RESOURCES: Marchov Chains: http://www.cs.princeton.edu/courses/archive/spr05/cos126/assignments/markov.html http://awalsh128.blogspot.com/2013/01/text-generation-using-markov-chains.html https://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/Chapter11.pdf STATE PROBABILITY: https://www.utdallas.edu/~jjue/cs6352/markov/node2.html CALCULATING TRANSITION PROBABILITY: https://www.utdallas.edu/~jjue/cs6352/markov/node3.html REGEX: http://www.python-course.eu/re_advanced.php http://www.nltk.org/