Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emdaniels/iambitize

Creates iambic pentameters out of text.
https://github.com/emdaniels/iambitize

Last synced: about 2 months ago
JSON representation

Creates iambic pentameters out of text.

Awesome Lists containing this project

README

        

Iambitize
==========

Iambitize is a program that extracts and creates iambic pentameters out of any
text corpus. It requires Python 2.7, pronouncing, and some other standard Python
modules to run properly.

An iambic pentameter is a type of metrical line often found in traditional
English poetry. The term describes the rhythm of the words in a line, which is
measured in feet, or small groups of syllables. An iambic foot is an
unstressed syllable followed by a stressed syllable. A standard line of iambic
pentameter is five iambic feet in a row:

`da DUM da DUM da DUM da DUM da DUM`

The da-DUM of a human heartbeat is the most common example of this rhythm. An
example from Shakespeare:

>"When I do count the clock that tells the time"

To run, download the files along with any text corpus, and enter the
following in the command prompt:

$ python iambitize.py [text corpus].txt

After running it on Ulysses, these Iambic pentameters were extracted:
>"a stick and an umbrella dangled to"

>"themselves in stylish garters leaping from"

>"addicted runs directly counter to"

>"the daughter of the skies the virgin moon"

References
----------
[Ulysses](https://www.gutenberg.org/ebooks/4300) by James Joyce

This eBook is for the use of anyone anywhere at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it under
the terms of the Project Gutenberg License included with these eBooks or
online at www.gutenberg.org

License
-------

Copyright 2017 E.M. Daniels

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.