Coupleteer is a generator of couplets in iambic pentameter. With a vocabulary and grammar built from Shakespeare's plays and poems, as collected in the WordHoard corpus, and rhythm and rhyme data derived from the CMU Pronouncing Dictionary, the program generates a pair of ten- or eleven-syllable lines, with alternating syllabic stress, and sets their ends in a matching rhyme.
Wholly new couplets are generated on the fly. While Coupleteer does not build the couplets with any understanding of content or meaning, the word-order based on actual English, and poetry's penchant for novel juxtaposition of words, renders onto each couplet a semblance of meaning, if it is ultimately nonsense.
The code for this project is available on GitHub.
Coupleteer's couplets may be recieved as JSON at http://coupleteer.theodinspire.com/api/couplet/