TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Romance.js – Programmable Valentine's Day Poetry

10 pointsby dyover 11 years ago

3 comments

Kronopathover 11 years ago
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&#x27;t, and decided to read it closer, but I couldn&#x27;t quite puzzle out what Cummings was talking about. I read the first stanza over and over again trying to figure it out: &quot;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?&quot;<p>And then, just for a second, I stopped paying attention to the grammar and started paying attention to the <i>words</i>, and I realized that very stanza was <i>mocking me</i> for what I was doing. It was a masterfully laid trap for the analytical mind.<p>The whole poem fell into place after that.
foglemanover 11 years ago
You should use more context than one previous word. You should use N previous words and you&#x27;ll get more realistic results.<p>I wrote a word game using markov chains to generate fake (but real looking) words.<p><a href="http://www.michaelfogleman.com/wug/" rel="nofollow">http:&#x2F;&#x2F;www.michaelfogleman.com&#x2F;wug&#x2F;</a><p>Read about the algorithm here:<p><a href="http://www.michaelfogleman.com/wug/algorithm" rel="nofollow">http:&#x2F;&#x2F;www.michaelfogleman.com&#x2F;wug&#x2F;algorithm</a><p>Also, you can leave punctuation in - you&#x27;d just need a larger training set, probably.
kedover 11 years ago
wow this might just save the day for me. thanks guys!