Metadata-Version: 2.4
Name: g2p_barranquenho
Version: 0.1.0a1
Summary: Rule-based grapheme-to-phoneme converter for Barranquenho
Author-email: JarbasAi <jarbasai@mailfence.com>
License: Apache-2.0
Project-URL: Homepage, https://github.com/TigreGotico/g2p_barranquenho
Project-URL: Repository, https://github.com/TigreGotico/g2p_barranquenho
Keywords: barranquenho,g2p,grapheme-to-phoneme,phonemizer,ipa,portuguese
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: orthography2ipa>=0.3.0a1
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

## `g2p_barranquenho` - Barranquenho Phonemizer

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

[Barranquenho](https://en.wikipedia.org/wiki/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.

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