Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qpwo/python-rhyme
Tools for finding rhymes and making poems
https://github.com/qpwo/python-rhyme
Last synced: about 1 month ago
JSON representation
Tools for finding rhymes and making poems
- Host: GitHub
- URL: https://github.com/qpwo/python-rhyme
- Owner: qpwo
- Created: 2015-06-10T20:20:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T00:23:01.000Z (almost 7 years ago)
- Last Synced: 2024-08-03T01:26:28.584Z (4 months ago)
- Language: Python
- Homepage:
- Size: 901 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rainmana - qpwo/python-rhyme - Tools for finding rhymes and making poems (Python)
README
## Python Rhyme
![screenshot](limericks.png)
This is a simple set of tools for grabbing words with a certain number of syllables or words that rhyme, etc.
Example program `example.py` that uses code:
```python
import rhymeprint(rhyme.makeLimerick().lower())
print("Beware of the devil.")
for word in rhyme.getRhymes("DEVIL"):
print("He will make you " + word.lower() + '.')
```Then of course you can run it with `python3 example.py` in a terminal.
`rhyme.py` is self-documenting.
Phonetic dictionary obtained from [here](http://www.speech.cs.cmu.edu/cgi-bin/cmudict).