News for hackers. Stuff that matters.
Re:Romance.js – Programmable Valentine's Day Poetry by Kronopath on Friday February 14, 2014 @12:55PM (#7239875)
The E. E. Cummings poem in this article is actually what most caught my eye. At first I thought it was so awkward and stilted that I assumed it was the output of their generator. I quickly realized that it wasn't, and decided to read it closer, but I couldn't quite puzzle out what Cummings was talking about. I read the first stanza over and over again trying to figure it out: "Wait, who does he mean here? Are the second and third lines a question or a statement? Why is the last line such an apparent non-sequitur?"

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.

Re:Romance.js – Programmable Valentine's Day Poetry by fogleman on Friday February 14, 2014 @03:40PM (#7240861)
You should use more context than one previous word. You should use N previous words and you'll get more realistic results.

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.

Re:Romance.js – Programmable Valentine's Day Poetry by ked on Friday February 14, 2014 @12:09PM (#7239558)
wow this might just save the day for me. thanks guys!