Skip to content

A simple CLI program that highlights rhymes in a given text, using either the Datamuse API or the pronouncing module.

License

Notifications You must be signed in to change notification settings

dimeritium-foil/rhymepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rhymepy

A simple CLI program that highlights rhymes in a given text, using either the Datamuse API or the pronouncing module.

Usage

usage: rhymepy [-h] [-l N | -a] [-p | -d {0,1,2}] file

required arguments:
  file                  a txt file

optional arguments:
  -h, --help            show this help message and exit
  -l N, --lines N       number of lines to match rhymes (default: 2)
  -a, --all-lines       match all lines
  -s, --stanzas         match each stanza  

backends:
  -p, --pronouncing     use pronouncing as the backend for fetching rhymes
  -d {0,1,2}, --datamuse {0,1,2}
                        use datamuse as the backend for fetching rhymes. 0: match perfect rhymes. 1: match approximate rhymes. 2: match both

Example

Poem by voodooattack.

Installation

Using pip

$ pip install rhymepy

Cloning the repository

$ git clone https://github.com/dimeritium-foil/rhymepy
$ cd rhymepy
$ python setup.py install

Dependencies

About

A simple CLI program that highlights rhymes in a given text, using either the Datamuse API or the pronouncing module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages