A Python package for estimating the number of syllables in words, based on the CMU Pronouncing Dictionary. Current version 1.1.5 (2026-01-11), released on PyPI about every 1-6 months with dependency fixes.
pip install syllablesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Estimate syllable count for given words.
Change imports to 'from syllables import estimate'.
Test with non-English words; consider preprocessing.
Check if the output is -1 for unknown words (actually estimate returns a count for anything; use try-except? No exception, just fallback). Ensure inputs are English words.
Replace 'from syllables import get_syllable_count' with 'from syllables import estimate' and call 'estimate(word)'.
Run 'pip install syllables'.
Upgrade: 'pip install --upgrade syllables'. Use 'from syllables import estimate'.