Pylabeador
A Python library and CLI tool to do automatic syllabification of Spanish words
Install / Use
/learn @jdevera/PylabeadorREADME
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.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
99.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
344.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
