[Home]MoonShadow/Poems

ec2-107-20-7-65.compute-1.amazonaws.com | ToothyWiki | MoonShadow | RecentChanges | Login | Webcomic

somewhat dire poem generator
idea - class lots of nouns by how they rhyme and by how many syllables they have then structure sentences around them

needs lots and lots of noun and verb classes to not produce utter gibberish

BNF: MoonShadow/Poems


(add more types in)
bnf ::= 4-poem


rhyming noun banks
noun-1 ::= noun-1-a | noun-1-b | noun-1-c | noun-1-d
noun-1-a ::= cat | bat | hat | mat | rat
noun-1-b ::= dog | bog | log | fog
noun-1-c ::= car | tar | bar | star
noun-1-d ::= bear | mare | lair | hare

noun-2-a ::= kitten | mitten
noun-2-b ::= aardvark | car park


verb banks
2-syllable-verb-combo ::= sat on | walked through | stared at | went with | slept with | lay on
2-syllable-gerund ::= sitting | walking | reading


pronoun ::= he | she | it | you | I

templated lines
4-syllables ::= pronoun 2-syllable-verb-combo the


4-abab ::= 4-syllables noun-1{a}
4-syllables noun-1{b}
4-syllables a
4-syllables b


4-aabb ::= 4-syllables noun-1{a}
4-syllables a
4-syllables noun-1{b}
4-syllables b


4-poem ::= 4-poem 4-abab | 4-poem 4-aabb | 4-abab | 4-aabb



CategoryGenerator

ec2-107-20-7-65.compute-1.amazonaws.com | ToothyWiki | MoonShadow | RecentChanges | Login | Webcomic
Edit this page | View other revisions | Recently used referrers
Last edited May 16, 2004 2:18 am (viewing revision 8, which is the newest) (diff)
Search: