Pylabeador: Automatic Syllabification of Spanish Words
Install
pip install pylabeador
Use
You can use it as a Python library:
>>> import pylabeador
>>> pylabeador.syllabify("silabear")
['si', 'la', 'be', 'ar']
>>> pylabeador.hyphenate("palabra")
'pa-la-bra'
>>> pylabeador.syllabify_with_details("con")
SyllabifiedWord(original='con', syllables=(Syllable(onset='c', nucleus='o', coda='n', accented=False, stressed=True),), stressed=0, accented=None)
And you can use it as a command line tool:
$ pylabeador interesante
in-te-re-san-te
Accuracy
Automatic syllabification without additional lexical or and semantic knowledge of the words can only go so far. This syllabifier does not have such knowledge. Because of this, words such as transatlántico, whose correct hyphenation is trans-a-tlán-ti-co or even trans-at-lán-ti-co, end up being divided here into tran-sa-tlán-ti-co. To hyphenate this correctly, it is necessary to know that the word without the prefix exists in Spanish with similar semantics to the one of the original word. This is better and further explained in this paper: Automatic syllabification for Spanish using lemmatization and derivation to solve the prefix's prominence issue
Inspiration / Original source
This work is inspired by the excellent online tool Silabeador TIP. This tool considers the semantics of the words and correctly separates syllables in the presence of prefixes. They also provide a C++ library that performs the naive syllable separation that pylabeador does. In fact, pyleabeador started as a Python port of that library.
Metadata
Release files for pylabeador 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylabeador-0.9.0.tar.gz | 106.6 kB | Without provenance | Details for pylabeador-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylabeador-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for pylabeador-0.9.0-py3-none-any.whl |
Total release size: 131.6 kB
Release files / pylabeador-0.9.0.tar.gz
| Download URL | pylabeador-0.9.0.tar.gz |
|---|---|
| Size | 106.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ea6ed39dee49b179e445d1d247cf5928d2878992c00a6c9bffa8439ee02524f
|
|
BLAKE2b-256 checksum How to use checksums |
53c7be46b0ce5176eade20929e2e1f812b61b888ed393ff33cba5f3738ace32e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pylabeador-0.9.0-py3-none-any.whl
| Download URL | pylabeador-0.9.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ee07bc2047ab43f79c3e3b9da539ae7b2d4f1942f2cea46c2967c20b164bdea
|
|
BLAKE2b-256 checksum How to use checksums |
2832fbfa425ed410f819e277296affb3c63f455cd1b9ed0b211c7256e7b9a1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pylabeador 0.9.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.