A simple interface for the CMU pronouncing dictionary
Python Makefile
Latest commit fc90f32 Jan 19, 2017 @aparrish committed on GitHub Merge pull request #23 from hugovk/update-python-version
Update Python versions
Permalink
Failed to load latest commit information.
docs
pronouncing version bump Jan 17, 2017
tests ensuring that phones_for_word returns [] Jan 17, 2017
.editorconfig initial commit Jun 13, 2015
.gitignore initial commit Jun 13, 2015
.travis.yml
AUTHORS.rst initial commit Jun 13, 2015
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst Add coverage badge Jan 16, 2017
requirements.txt
setup.cfg
setup.py
tox.ini Update Python versions Jan 17, 2017

README.rst

pronouncing

https://coveralls.io/repos/github/aparrish/pronouncingpy/badge.svg?branch=master

Pronouncing is a simple interface for the CMU Pronouncing Dictionary. It's easy to use and has no external dependencies. For example, here's how to find rhymes for a given word:

>>> import pronouncing
>>> pronouncing.rhymes("climbing")
['diming', 'liming', 'priming', 'rhyming', 'timing']

Read the documentation here: https://pronouncing.readthedocs.org.

I made Pronouncing because I wanted to be able to use the CMU Pronouncing Dictionary in my projects (and teach other people how to use it) without having to install the grand behemoth that is NLTK.

Installation

Install with pip like so:

pip install pronouncing

You can also download the source code and install manually:

python setup.py install

License

The Python code in this module is distributed with a BSD license. A full copy of the CMU Pronouncing Dictionary is included in this distribution. Learn more about the CMU Pronouncing Dictionary here: http://www.speech.cs.cmu.edu/cgi-bin/cmudict

Acknowledgements

This package was originally developed as part of my Spring 2015 research fellowship at ITP. Thank you to the program and its students for their interest and support!