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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e21ba07aebbfb69feb1ec6503619b6196798a897ce5fe5c12369c98a29e111
|
|
| MD5 |
fe085facbb484820843683bc0f936f5d
|
|
| BLAKE2b-256 |
b9381fd79d179d089262eb14613ffd032a7db4fba09bcd2aeaa826e1cf953099
|
File details
Details for the file g2p_barranquenho-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: g2p_barranquenho-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c05944f7795bca6e452afd11bdb3e41032fc74e6fd8a032127b17aefd831950
|
|
| MD5 |
d02c7a8cb3fdd9ff1c3eab30ff97bc8e
|
|
| BLAKE2b-256 |
732cc7871418220663a92f52ae0e60e158d65781306ffa422cf1c25c004e172f
|