Skip to main content

# Syllables: A fast syllable estimator for Python

[![Latest PyPI version](https://img.shields.io/pypi/v/syllables.svg)](https://pypi.python.org/pypi/syllables) [![Python CI](https://github.com/prosegrinder/python-syllables/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-syllables/actions?query=workflow%3A%22Python+CI%22) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b8f26e0833ae4698b927614e64fd91b4)](https://www.codacy.com/app/ProseGrinder/python-syllables?utm_source=github.com&utm_medium=referral&utm_content=prosegrinder/python-syllables&utm_campaign=Badge_Grade)

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:

Metadata

Release files for syllables 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syllables 1.0.0
File Size Uploaded Provenance Actions
syllables-1.0.0.tar.gz 15.9 kB Without provenance Details for syllables-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syllables 1.0.0
File Interpreter ABI Platform Actions
syllables-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for syllables-1.0.0-py2.py3-none-any.whl

Total release size: 31.3 kB

Release files / syllables-1.0.0.tar.gz

Download URL syllables-1.0.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e9eaf9de5761b7692b139e488d144a16968fbec21208815d150643dc91993f4f
BLAKE2b-256 checksum
How to use checksums
4a298ee5270f457f85d8b466681d7aa40698989f85226d74e2e4c1151ab7ea18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / syllables-1.0.0-py2.py3-none-any.whl

Download URL syllables-1.0.0-py2.py3-none-any.whl
Size 15.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a310ead48b83af12372159767fe23b6676f69fa0afa805904c3ee51df1de6a56
BLAKE2b-256 checksum
How to use checksums
965019e7bb2c6d1e43ab585932160674a01f68f4303403c68e189785efd4b85d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for syllables 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page