Romance.js – Programmable Valentine's Day Poetry
blog.fullstackacademy.com
blog.fullstackacademy.com
And then, just for a second, I stopped paying attention to the grammar and started paying attention to the words, and I realized that very stanza was mocking me for what I was doing. It was a masterfully laid trap for the analytical mind.
The whole poem fell into place after that.
I wrote a word game using markov chains to generate fake (but real looking) words.
http://www.michaelfogleman.com/wug/
Read about the algorithm here:
http://www.michaelfogleman.com/wug/algorithm
Also, you can leave punctuation in - you'd just need a larger training set, probably.