A Python package for estimating the number of syllables in a word.
Project description
# Syllables: A fast syllable estimator for Python
[![Latest PyPI version](https://img.shields.io/pypi/v/syllables.svg)](https://pypi.python.org/pypi/syllables)
[![Latest Travis CI build status](https://travis-ci.org/prosegrinder/python-syllables.svg?branch=master)](https://travis-ci.org/prosegrinder/python-syllables)
Syllables is a fast, simple syllable estimator for Python. It’s intended for use in places where speed matters. For situations where accuracy matters, please consider the [cmudict](https://github.com/prosegrinder/python-cmudict) Python library instead.
## Installation
syllables is available on PyPI. Simply install it with pip:
$ pip install syllables
You can also install it from source:
$ git clone https://github.com/prosegrinder/python-syllables.git Cloning into ‘python-syllables’… …
$ cd python-syllables $ python setup.py install …
## Usage
Syllables provides a single function, estimate, which estimates the number fo syllables in a single word.
>>> import syllables >>> syllables.estimate('estimate') 4 >>> syllables.estimate('syllables') 3
## Credits
Built on or modeled after the following open source projects:
[One Bloke: Counting Syllables Accurately in Python on Google App Engine](http://www.onebloke.com/2011/06/counting-syllables-accurately-in-python-on-google-app-engine/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for syllables-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66718d775b607e2c73f87ce2f6a652daf7c701c4ca8fd1c807b544d4f6bda28b |
|
MD5 | 34b6c793074d388ac8597e6c25b6c4cc |
|
BLAKE2b-256 | 16d981a31f640ccf405fdfd0eae8eebfc2579b438804dbf34dc03cad3e76169a |