Indie rock/ alternative hip-hop band Why? has always prided itself on befuddling listeners with a distinct blend of unorthodox beats, lyrics that fluctuate between rap and the nonsensical, and a surreal approach to their melodies. “Rubber Traits,” although one of their “poppier” singles, does not disappoint in this respect. The single touches on lead singer Yoni’s frequent bouts with depression, yet the video utilizes kinetic typography to complement Why?’s eccentric musical stylings, which underscores the bands ability to display a valiant sense of humor despite the lyrical content being weighty.
This poetry generator uses the Wordnik library’s recent rhyming functionality as dataset suitable for creating rhyming couplets in the ’80s freestyle rap tradition.
Examining the source code reveals that the generating algorithm method is simple, but it’s nuanced enough to produce grammatical lines in that tradition. Kazemi wrote 57 line templates each of which was missing the last word and organized them into arrays by the part of speech of that missing word. The JavaScript program calls rhyming words from Wordnik, along with their parts of speech, calls up random lines from the arrays, and assembles the battle rap. There are two noteworthy twists on this procedure, the occasional variable within lines between male and female terms (“sistas” and “homies” for example), and the presence of a word filter, aptly named “badwords.txt,” which identifies and filters hateful or derogatory language.
The result has the form and texture of rap without some of its color, which probably for the best, since it lacks the context of a human rapper (warts and all) to deploy such forceful language. The range of vocabulary in the Wordnik library produces results so varied that the result feels like nerdcore hip hop, as in the lines generated above, particularly:
I’m smooth, you’ll never catch me acting Boolean
Way I rock the mic you know I’m born Tennessean
If the raps seem too formulaic, it bears to consider that freestyle rap battles were made possible by formal constraints and were a competitive expression of orality. In Orality and Literacy, Walter J. Ong discusses the tradition of oral performance as distinct from verbatim (word-by-word) memorization, in the context of Parry’s study of The Illiad.
were made up not simply of word-units but of formulas, groups of words for dealing with traditional materials, each formula shaped to fit into a hexameter line. The poet had a massive vocabulary of hexameterized phrases. With his hexameterized vocabulary, he could fabricate correct metrical lines without end, so long as he was dealing with traditional materials (57).
This algorithm simulates this process with 8-9 syllable line templates that produce lines of approximately 11 syllables when the word has been added. The line templates are also focused on the traditional materials of rap battles, including agonistic language and braggadocio. As with a live performance, these raps are intended to be apprehended as a whole rather than carefully scrutinized line by line, paying close attention only to memorable lines.
As with “Metaphor-a-Minute!” Kazemi encodes this social dimension for identifying particularly successful couplets. Users can share couplets they like through Twitter by simply pressing a button, which generates a tweet identified with the #rapbot hashtag and a link back to the generator.
So I recommend reading the generated rap songs, as well as Kazemi’s essay “Making a Rapbot,” and sharing the lines you enjoy the most, proof of Kazemi’s “equation for making a cool textual generator: randomness + formulaic writing = hilarity.”