Skip to main content

A Python package for estimating the number of syllables in a word.

Project description

Syllables: A fast syllable estimator for Python

Latest PyPI version Python CI

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 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 of 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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syllables-1.0.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syllables-1.0.3-py2.py3-none-any.whl (15.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file syllables-1.0.3.tar.gz.

File metadata

  • Download URL: syllables-1.0.3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for syllables-1.0.3.tar.gz
Algorithm Hash digest
SHA256 63d7fb3bc4663d1ad966227c03173594d0e156b40e29705dd7cb999701347472
MD5 1a80f49ce148c8b384af662a3db32280
BLAKE2b-256 62fc79f9d3c1c32d8d02786ab23081fd3f64a40f38c3a263c9bb47279cd3bafe

See more details on using hashes here.

File details

Details for the file syllables-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: syllables-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for syllables-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 63a484c8957295dd036ad02278ba3f6b91168fec3c44009392b764175f7233cd
MD5 0d85a1f265c9c59d784d631cfb9d7079
BLAKE2b-256 a76589c56d257314f057e97d797de832227a5d26bc9b8c04c0062e53d07b520f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page