News for hackers. Stuff that matters.
Re:Nantucket: an accidental limerick detector by abecedarius on Wednesday April 04, 2012 @01:50AM (#3796355)
http://wry.me/sonnetron/ computes meter using cmudict. It worked fine there, I think, though the word salad it's running over is easier -- when phrases make actual sense you sometimes get a verb mispronounced as a noun, and so on.

The logic is simple: reject a word if it has both stressed and unstressed syllables, with a stressed one falling on an unstressed beat in the meter. Pass anything else.

Very neat project, BTW. I've been wanting a good solution to the unknown-word problem. Here's a post on my blank-verse detector before: http://darius.livejournal.com/48525.html

There are no comments on this comment yet.