Metadata-Version: 2.4
Name: meranaw-g2p
Version: 0.1.0
Summary: Grapheme-to-Phoneme conversion for the Meranaw language
Author-email: AH Mangorangca <lavahotsnacks@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/lavahotsnacks/meranaw-g2p
Project-URL: Documentation, https://github.com/lavahotsnacks/meranaw-g2p
Project-URL: Source, https://github.com/lavahotsnacks/meranaw-g2p
Keywords: g2p,meranaw,phonology,grapheme-to-phoneme
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pynini>=2.1
Requires-Dist: pyyaml
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: mkdocs-material; extra == "dev"
Requires-Dist: mkdocstrings[python]; extra == "dev"
Dynamic: license-file

# meranaw-g2p

<p align="center">
───────────────────────────────────────────────<br>
 ⊹ ࣪ ˖ ૮( ˶ᵔ ᵕ ᵔ˶ )っ  meranaw-g2p vers. 0.1.0<br>
───────────────────────────────────────────────
</p>

Grapheme-to-Phoneme (G2P) conversion for the Meranaw language using finite-state transducers.

Built on [Pynini](http://pynini.opengrm.org/), a Python library for finite-state grammar compilation.

## Installation

```bash
pip install meranaw-g2p
```

## Usage

```python
from meranaw_g2p import build_pipeline, transcribe

pipeline = build_pipeline("meranaw")

results = transcribe("philian", pipeline)
print(results)  # ["p'iliyan"]

results = transcribe("dî", pipeline)
print(results)  # ["diʔ"]
```

## Development

```bash
git clone https://github.com/lavahotsnacks/meranaw-g2p
cd meranaw-g2p
pip install -e .
pytest
```

## License

MIT

```
                                  |
                                 |||
                                |||||
                  |    |    |   |||||||
                 )_)  )_)  )_)   ~|~
                )___))___))___)\  |
               )____)____)_____)\\|
             _____|____|____|_____\\\__
             \                       /
       ~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~
               ~^~  all aboard!  ~^~
       ~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~~^~^~
```
