Skip to main content

codecov

Pylabeador: Automatic Syllabification of Spanish Words

English | Español

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

JavaScript port

Need this in the browser or in Node? jsilabeador is a zero-dependency JavaScript port of this library (jsilabeador on npm). It reproduces pylabeador's behavior exactly: its CI cross-validates the full syllable structure of every word in the shared test corpus against pylabeador.

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.10.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 pylabeador 0.10.0
File Size Uploaded Provenance Actions
pylabeador-0.10.0.tar.gz 107.2 kB With provenance Details for pylabeador-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylabeador 0.10.0
File Interpreter ABI Platform Actions
pylabeador-0.10.0-py3-none-any.whl Python 3 none any Details for pylabeador-0.10.0-py3-none-any.whl

Total release size: 132.4 kB

Release files / pylabeador-0.10.0.tar.gz

Download URL pylabeador-0.10.0.tar.gz
Size 107.2 kB
Tags Source
SHA-256 checksum
How to use checksums
88d2ad9e84ca3a43e60979106a4cd001b28b288bb432cdc13d45193ccba58ecd
BLAKE2b-256 checksum
How to use checksums
32f64652efc13d6b24cdf4887068a18146ef82e2698f28f1f27619a902bcd93f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pylabeador-0.10.0-py3-none-any.whl

Download URL pylabeador-0.10.0-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e10bbe531f85459f17295d8dcadf18bae4f32bdbbe1357864e30fcd482613591
BLAKE2b-256 checksum
How to use checksums
fc27880a68f92f3c1a8ce28ca0eb13b045a2bff04720d7c23f23e3073ac5c8e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for pylabeador 0.10.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylabeador-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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