Skip to main content

Generate poems cobbled together from the remains of older, better poems, with a particular emphasis on rhyme and meter consistency.

Project description

# Frankenpoem

Lots of poetry generators these days are focused on trying to cobble together “original” “creative” works of algorithmic poetry. To this I say: why reinvent the wheel? A wheel that the old masters surely have already perfected.

This is a poetry generator which cobbles together lines from poems that have already been written while paying attention to meter and rhyme to form something that (while perhaps nonsensical in content) still sounds like a, ahem, real poem.

In order to spread Frankenbot’s genius throughout the world, I made a package with exactly one use case: to run Frankenbot’s write_poem() command. So you, too, can experience the grandeur of Frankenbot’s poetic vision.

## Installation Enter pip3 install frankenpoem in your command line and it should world. Or try pip install frankenpoem. The latest version is 4.0.0 (…because it took me four tries to get the actual package working and I couldn’t be bothered with TestPyPi), so if THAT doesn’t work try pip install frankenpoem==4.0.0 or pip3 of the same command.

Warning: you may need to make sure to have re and pandas installed, I don’t think I got the package dependencies quite right.

## Usage In the terminal, go to your python interpreter (for me I just type python3). Then:

`python import frankenpoem as f f.write_poem() `

Et voila! A poem should generate. There are no arguments because you have no control over Frankenbot’s creative process. He is his own creative entity and should be respected as such.

The repo also contains [a notebook which documents the process of making write_poem()](https://github.com/ruthlee/frankenpoems/blob/master/frankenpoem_demo.ipynb)

## Sources Big shoutout to:

[Allison Parrish’s repo](https://github.com/aparrish/gutenberg-poetry-corpus/blob/master/quick-experiments.ipynb) for providing the data for the project as well as a very useful rhyme-dictionary data structure for Frankenbot to use.

[Laurence Tennant’s poetry-tools](https://github.com/hyperreality/Poetry-Tools) for meter and syllable analysis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

frankenpoem-6.0.0-py3.7.egg (56.3 MB view details)

Uploaded Egg

frankenpoem-6.0.0-py2.py3-none-any.whl (56.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file frankenpoem-6.0.0-py3.7.egg.

File metadata

  • Download URL: frankenpoem-6.0.0-py3.7.egg
  • Upload date:
  • Size: 56.3 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for frankenpoem-6.0.0-py3.7.egg
Algorithm Hash digest
SHA256 0c6540730657b9d72809fd5d21efaef3c2626f99971aada35706bff1c8558ee8
MD5 0b09fce090941e7685dec076672a8c8c
BLAKE2b-256 15429d6cefe4487d3a59d49e7b7f45dfc6c39d5f37a3a9d021407d8a5fc8f250

See more details on using hashes here.

File details

Details for the file frankenpoem-6.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: frankenpoem-6.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 56.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for frankenpoem-6.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a0271be78752af9fdabb462fa748d2cfde44fd0cfe9a4db374dc95c6bf5419d0
MD5 37cd3292fa61b862b31b2495d80f99e4
BLAKE2b-256 e35871c9f0c74c901bf2e13224058f7a646ae7b9017f79f07ba2735f6f0f76d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page