Skip to main content

Rule-based grapheme-to-phoneme converter for Barranquenho

Project description

g2p_barranquenho - Barranquenho Phonemizer

This repository provides a simple, rule-based Grapheme-to-Phoneme (G2P) converter for the Barranquenho language.

Barranquenho is an Ibero-Romance language (often classified as a dialect) spoken in the municipality of Barrancos, Portugal, which shares many features with the nearby Spanish dialects of Extremadura and Andalusia.

The rules implemented in the phonemize function are primarily based on the official Barranquenho Orthographic Convention

🚀 Usage

The core functionality is provided by the phonemize function, which takes a word (string) and returns a list of International Phonetic Alphabet (IPA) phonemes.

from g2p_barranquenho import phonemize

for word in [...]:
    phonemes = phonemize(word)
    print(word, phonemes)
    
# paraba ['p', 'ɐ', 'ɾ', 'a', 'b', 'ɐ']
# pássaru ['p', 'a', 's', 'ɐ', 'ɾ', 'u']
# biba ['b', 'j', 'b', 'ɐ']
# cahtelu ['k', 'ɐ', 'h', 't', 'e', 'l', 'u']
# boca ['b', 'o', 'k', 'ɐ']
# ambu ['ɐ͂', 'b', 'u']
# cantá ['k', 'ɐ͂', 't', 'a']
# manhán ['m', 'ɐ', 'ɲ', 'ɐ͂']
# que ['k', 'ɨ']
# aquí ['ɐ', 'k', 'j']

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

g2p_barranquenho-0.1.0a1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

g2p_barranquenho-0.1.0a1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file g2p_barranquenho-0.1.0a1.tar.gz.

File metadata

  • Download URL: g2p_barranquenho-0.1.0a1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for g2p_barranquenho-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 66e21ba07aebbfb69feb1ec6503619b6196798a897ce5fe5c12369c98a29e111
MD5 fe085facbb484820843683bc0f936f5d
BLAKE2b-256 b9381fd79d179d089262eb14613ffd032a7db4fba09bcd2aeaa826e1cf953099

See more details on using hashes here.

File details

Details for the file g2p_barranquenho-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for g2p_barranquenho-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c05944f7795bca6e452afd11bdb3e41032fc74e6fd8a032127b17aefd831950
MD5 d02c7a8cb3fdd9ff1c3eab30ff97bc8e
BLAKE2b-256 732cc7871418220663a92f52ae0e60e158d65781306ffa422cf1c25c004e172f

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