Skip to main content

Automatic syllabification for Spanish words

Project description

codecov

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']

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.

Project details


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.8.2.tar.gz (103.0 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.8.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylabeador-0.8.2.tar.gz
  • Upload date:
  • Size: 103.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.15

File hashes

Hashes for pylabeador-0.8.2.tar.gz
Algorithm Hash digest
SHA256 c051065d23e5303e58c71583587f820211d366313166348fc314f5f6ffb12b04
MD5 a4872545cdc0dc949d06cc47e3725a54
BLAKE2b-256 572fae8f584dbca00c52eb6b43a077f737a8f21a621a914974cb5dd405e6a8f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylabeador-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.15

File hashes

Hashes for pylabeador-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4303ac6b0036d8289f6dbac3027adc9c504782d3b6dbd866a91ade1d5dbf83b
MD5 c575c252ddc7cea8739b47cf2c7a8811
BLAKE2b-256 946003c2adf49f4c0b32e42111baae4806adece3dc409c4e5f19b0d788953f26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page