Skip to main content

Czech Syllable Splitter

Alogirthm for splitting Czech words into syllables. Inspired by a syllable counting algorithm from David Lukeš counting the vowels.

With Klára Bendová we put together rules to expand the vowels into syllables, empirically finding some common letter groups to stay intact.

This is not a perfect solution, but it is a good start for Czech language processing. Measuring the accuracy of this algorithm is a to-do, as well as adding more rules if needed.

Installation

pip install czech-syllable-splitter

or using Poetry package manager

poetry add czech-syllable-splitter

Usage

from czech_syllable_splitter import count_syllables, split_to_syllables, split_to_characters

print(split_to_syllables("příliš"))
print(split_to_characters("přesný"))
print(count_syllables("přísný"))

Lint & Test

poetry run python3 -m pytest
poetry run mypy czech_syllable_splitter
poetry run pylint czech_syllable_splitter

Metadata

Release files for czech-syllable-splitter 0.1.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 czech-syllable-splitter 0.1.0
File Size Uploaded
czech_syllable_splitter-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for czech-syllable-splitter 0.1.0
File Interpreter ABI Platform
czech_syllable_splitter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / czech_syllable_splitter-0.1.0.tar.gz

Download URL czech_syllable_splitter-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2bf0b0cc55417fa750a5fb51fbde1a98038bf611f9e9efd88ba349ed2bdba509
BLAKE2b-256 checksum
How to use checksums
0bb023bec9b5d9aa36782610a247dc2dfd1eb8f837cd5cb229a24a9dbd9bf4e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Release files / czech_syllable_splitter-0.1.0-py3-none-any.whl

Download URL czech_syllable_splitter-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a787fc2d045c1df6d7b10196ed8d5f9db4dc4a7556fb5bd6305c23471cc793ec
BLAKE2b-256 checksum
How to use checksums
3723b2088e9eef5f94b5cfec8983403fca2b70320b7cb2f018970daf05428888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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