Brief summary of how it works: I take some source text (the Bible, the novels of Mark Twain, whatever) and have the program go through and observe what word often comes after what three words. So if there's "the quick brown fox," the program will observe that "fox" can come after "the quick brown." It also does this in reverse, which will come in handy later.
For the lines that don't have to rhyme, I just pick a random three words and choose any random word that can come after them, and work my way down the line.
For lines that do, I find the word I have to rhyme with, look it up in the rhyming dictionary, and find a rhyme in my Markov chains. Then I work backwards through the line, making a line that makes sense and has a rhyming word on the end.
Here's a few samples:
Quote
I am the Alpha and the Omega
of love, knowing that I am Yahweh.
Saul struck the Amalekites, from Havilah as
was soulful, with a bit of jazz--
as though she was wearing a THONG.
of love, knowing that I am Yahweh.
Saul struck the Amalekites, from Havilah as
was soulful, with a bit of jazz--
as though she was wearing a THONG.
(I can change the "personality" in the middle of the poem, switching from the Bible to, well, other things...)
Quote
Miscellaneous
supersedes and replaces all prior or contemporaneous
If you are under 18, you may
stare in fascination at the sexy display
supersedes and replaces all prior or contemporaneous
If you are under 18, you may
stare in fascination at the sexy display
(using legalese and a few other things)
Quote
He ambled Dollard, bulky slops,
Carysfort Avenue and those shops
Bloom of Crawford's journal sitting
His unremitting
square hat above large slops
Carysfort Avenue and those shops
Bloom of Crawford's journal sitting
His unremitting
square hat above large slops
(Using Ulysses)
So, here's my question to SFN: How can I improve this monster?
My rhyming dictionary knows how many syllables each word has, so I can conceivably make poems that are restricted to certain numbers of syllables in each line. I can also attempt to make rhyming words have certain numbers of syllables, and so on.
I can input my own rhyme schemes and have the program switch between "personalities" for different lines.
What processing and cleverness would make this beast better? Think of what makes good poetry, then think of how a computer might do it...
Merged post follows:
Also, what source texts would you recommend for good poetry? I have Ulysses, the Kamasutra, the Bible, some Mark Twain, some erotica, some Kafka, some legal documents, the Unabomber manifesto, and one or two others.

Help
Sign In »
Register Now!



MultiQuote















