@kragen also, https://github.com/darius/sketchbook/tree/master/mutagen for a bit more text-gen stuff
@abecedarius Ooh, this could be interesting! Also, was the CMU Pronouncing Dictonary what you used for prosody in Trurl's Electronic Bard? The other night I did http://canonical.org/~kragen/sw/dev3/minpairsets.py after discovering that eSpeak is actually pretty reliable these days and made up a quick pronouncing dictionary with it, but a more reliable dictionary would make it work better. Last night I was also trying to figure out how to get internal rhyming to work (cf. Eminem's Without Me)
@kragen Good idea with the minpairsets! Yes, I used the CMU; I'll bet eSpeak or some such is a better start now.
But my rhyme/meter code may be helpful; don't think I've seen better elsewhere, though it's necessarily conservative. It ignores word boundaries, so internal rhymes shouldn't be hard?
@abecedarius I suspect eSpeak is less reliable than the CMU pronouncing dictionary. Ignoring word boundaries is probably a good idea, but reproducing family rhymes like this also needs some kind of fuzzier rhyme matching:
fˈiːl ðə tˈɛnʃən sˈuːn æz sˈʌmwʌn mˈɛnʃənz mˌiː
hˈɪɹz maɪ tˈɛn sˈɛnts
maɪ tˈuː sˈɛnts ɪz fɹˈiː
juː sˈɛnt fɔːɹ mˌiː