Skip to content
Generates rhyming sonnets in (mostly) iambic pentameter from any text corpus
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
LICENSE
README.md
poetron.py
sonnetizer_a.py
sonnetizer_g.py
sonnetizer_m.py
sonnetizer_n.py

README.md

Sonnetizer

Sonnetizer is a program written by Ross Goodwin that generates 14-line rhyming sonnets from any text corpus. It requires Python 2.7, nltk, numpy, and some other standard Python modules to run properly.

Four versions of Sonnetizer currently exist: sonnetizer_a, sonnetizer_g, sonnetizer_m, and poetron.

To run Sonnetizer, download the files along with any text corpus you wish to sonnetize, and enter the following in the command prompt:

$ python [sonnetizer file].py [text corpus].txt
  • sonnetizer_a.py allows for computer-assisted writing.
  • sonnetizer_g.py generates 14-line sonnets with 10-syllable lines and the standard ABABCDCDEFEFGG rhyme scheme.
  • sonnetizer_m.py generates 14-line sonnets, mostly in iambic pentameter, with 10-syllable lines and the standard ABABCDCDEFEFGG rhyme scheme.
  • poetron.py generates 14-line sonnets with 6-word lines and the standard ABABCDCDEFEFGG rhyme scheme.
You can’t perform that action at this time.