/poem_parser

Parses words into stressed and unstressed syllables

Primary LanguagePythonMIT LicenseMIT

poem_parser

Parse words into stressed and unstressed syllables.

Installation

To install:

$ pip install poem_parser

Example usage

To parse a line:

$ python -m poem_parser "Just give me the likes, dont pass or scroll"
just|GIVE|me.the|LIKES|dont|PASS|or|SCROLL

To parse a file:

$ python -m poem_parser -f poem.txt
RO|ses.are|RED
VIOLETS|||are|BLUE

License

MIT