Synset to Lyrics ( how-to write over 5000 poems in an hour or so)

  1. Download a website or torrent of song lyrics
  2. Parse the result (with BeautifulSoup)
  3. Use NLTK (Natural Language Toolkit) to lookup Wordnet synsets (homonyms, holonyms, hypernyms, antonyms, meronyms, synonyms and lemmas) as replacement candidates.
  4. Replace all the words in the poem (retaining the words-per-line and verse and grammar of prepositions and pronouns)
  5. Sift through ‘the reservoir of words that returned no results from synset search to find dense tweets worthy of a bot.
  6. Or check out the [ for now, terrible] 5,067 poems created in 8898 secs
reservoir of unique words
click on image to see code on github

Have a peek at a few results posted on my twitter feed:

Screen Shot 2014-07-13 at 4.02.05 pm

The poetic problem is that these poems lack insight. Blastocytes have orders of magnitude more experiential insight than these poems.

Continue reading “Synset to Lyrics ( how-to write over 5000 poems in an hour or so)”