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.6.0.tar.gz (130.2 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.6.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pylabeador-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c4ed5a4c57ecc3f6ca1fd83b9edcb1be753082cdbdc799d909795abfc6418df0
MD5 b4e0fab3b37b9712e1276b0ac63b6d37
BLAKE2b-256 e3b95b3b0ab766deb6bd9f486ec6c87fac044586da9594ec1bbb19ad7b4ba256

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylabeador-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8acb2687a461ec8efba7aac41f274ff5ab13d5de9b4b45b4420cca9d3fd0243
MD5 31dc6b39695297dbdba6734d74c258f8
BLAKE2b-256 132faa0a40cd1b3f84b211642b5361983037266085e9f5d6fbb03b2ddd7ef7c8

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