aparrish / pronouncingpy

A simple interface for the CMU pronouncing dictionary
BSD 3-Clause "New" or "Revised" License
302 stars 42 forks source link

pronouncing

.. image:: https://img.shields.io/travis/aparrish/pronouncingpy.svg :target: https://travis-ci.org/aparrish/pronouncingpy

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

.. image:: https://img.shields.io/pypi/v/pronouncing.svg :target: https://pypi.python.org/pypi/pronouncing

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.

Acknowledgements

This package was originally developed as part of my Spring 2015 research fellowship at ITP <http://itp.nyu.edu/itp/>_. Thank you to the program and its students for their interest and support!