Skip to content

konsbn/poetry-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poetry-generator

A Python3 based Backus-Naur poetry generator.

This program works on the basis that every word in the English language is either "positive" or "negative." For instance "lovely" is positive and "thorn" is negative. A "poem" is a group of sentences that are structured in a way to have +1, -1 or 0 in terms of the positivity/negativity. A "mushy poem" is strictly positive.

All the syntax and word choices are in the poem.bnf file. The main program is in poem.py and for web applications use the poem.php script to automatically generate a poem onload!

Try the demo here

About

A Python3 based Backus-Naur poetry generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.2%
  • CSS 21.1%
  • PHP 5.7%