Tweeting a mix of hip-hop (Rapper's Delight, Fight the Power, The Message, etc.) and classic literature from Project Gutenberg.
The brother who rocks so viciously
He gazed at me suspiciously
He said, "Sit down, punk, I wanna talk to you
Each has his lot, and bears the fate he drew.
I guess by now you can take a hunch
"Let us consider," said he, after lunch.
Then you throw your hands high in the air,
"I don't see," said the native Bear.
Algorithm goes a little something like this
- Pick a random line from a file containing a bunch of hip-hop lyrics.
- Take the last word and find its rhymes using the Wordnik API.
- Pick a rhyme at random.
- Find all the sentences from the Project Gutenberg August 2003 CD ("contains 600 of our best Ebooks") that end with that rhyming word (using gutengrep).
- Pick one that's about the same number of syllables as the first line (using Akkana Peck's countsyl).
- If no rhymes or matches found, or a sentence is too long, try another until something's found.
- Tweet 'em!