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.7.0.tar.gz (133.1 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.7.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pylabeador-0.7.0.tar.gz
Algorithm Hash digest
SHA256 736111b2369a2dbec1fd1f6eb5033ab870ca4c0575aeb4d7c5c18f390b1dca3a
MD5 2e08fd5ad8b3bf921174f073ed7bfcc4
BLAKE2b-256 cf87dc328f56ee37c086da684d8a4cfa4f3ed8be7c414833a6d81f2ce7c0ad26

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylabeador-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 464d8f8a54eba200e9ba02409334aa25bb11cd57c9da4d02fdf126f5c9a919f8
MD5 9aadd6a18386b5e53059dc0c78808029
BLAKE2b-256 6e179c77e61e2e085bd1f2d2125d71e4a848672585d72e7558e013949e0bd8e7

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