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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylabeador-0.9.0.tar.gz (106.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylabeador-0.9.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file pylabeador-0.9.0.tar.gz.

File metadata

  • Download URL: pylabeador-0.9.0.tar.gz
  • Upload date:
  • Size: 106.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pylabeador-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3ea6ed39dee49b179e445d1d247cf5928d2878992c00a6c9bffa8439ee02524f
MD5 382d241d2301cde9bea68a0c2701f1c2
BLAKE2b-256 53c7be46b0ce5176eade20929e2e1f812b61b888ed393ff33cba5f3738ace32e

See more details on using hashes here.

File details

Details for the file pylabeador-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: pylabeador-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pylabeador-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee07bc2047ab43f79c3e3b9da539ae7b2d4f1942f2cea46c2967c20b164bdea
MD5 a88863a5f2fd263e613efcc8fd7bd0f8
BLAKE2b-256 2832fbfa425ed410f819e277296affb3c63f455cd1b9ed0b211c7256e7b9a1b2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 files

0.8.2

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.5

2 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