[Home]MoonShadow/Poems

ec2-44-211-239-181.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 | 6-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 | vat
noun-1-b ::= dog | bog | log | fog | mog
noun-1-c ::= car | tar | bar | star | spar
noun-1-d ::= bear | mare | lair | hare

noun-2-a ::= kitten | mitten | smitten | written
noun-2-b ::= aardvark | car park | great shark | dark lark


verb banks
2-syllable-verb-combo ::= sat on | walked through | stared at | went with | slept with | lay on | wore out | danced with | span round | swam for | ran to | ran from | climbed up | stifled | suffered
2-syllable-gerund ::= sitting | walking | reading

adjectives
2-syllable-adjective ::= sun-kissed | enclosed | darkened | moody | vernal | wintry | spellbound | glist'ning | drunken | clever | silly | profound | groovy | splendrous | dreamy | shallow

pronoun ::= he | she | it | you | I | Jack | Jill | Bob | Fred | Clive | Ann | Don | Cher | Dawn

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

6-abab ::= 4-syllables 2-syllable-adjective noun-1{a}
4-syllables 2-syllable-adjective noun-1{b}
4-syllables 2-syllable-adjective a
4-syllables 2-syllable-adjective b

6-poem ::= 6-poem 6-abab | 6-abab


CategoryGenerator

ec2-44-211-239-181.compute-1.amazonaws.com | ToothyWiki | MoonShadow | RecentChanges | Login | Webcomic
Edit this page | View other revisions | Recently used referrers
Last edited April 4, 2016 11:31 am (viewing revision 21, which is the newest) (diff)
Search: