Metadata-Version: 2.4
Name: crispy-ipa
Version: 0.2.1
Summary: Fast English-to-IPA transcription in pure Python
Author: kodovy-pesets
License-Expression: MIT
Project-URL: Homepage, https://github.com/Isyarname/crispy-ipa
Project-URL: Repository, https://github.com/Isyarname/crispy-ipa
Project-URL: Issues, https://github.com/Isyarname/crispy-ipa/issues
Project-URL: Changelog, https://github.com/Isyarname/crispy-ipa/blob/main/docs/CHANGELOG.md
Keywords: transcription,english,tts,text-to-speech,nlp,text-processing,g2p,ipa
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
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: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Natural Language :: English
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: build>=1.0.0; extra == "dev"
Requires-Dist: twine>=5.0.0; extra == "dev"
Dynamic: license-file

# crispy-ipa

Fast English-to-IPA transcription.

Designed as a fast, deterministic intermediate grapheme-to-phoneme (G2P) stage for practical transcription pipelines.

## Features

* **Simple installation:** pure Python package with zero external dependencies.
* **No skipped unknown words:** covers 125,000+ common English words and falls back to compound splitting and phonetic rules for rare terms or neologisms.
* **Sub-millisecond speed for high-throughput pipelines:** operates without heavy neural models and uses built-in caching to accelerate repeated lookups.
* **Full control over jargon and brand names:** override or add custom pronunciations (like `nginx` or `ChatGPT`) in a single dictionary so your pipeline never mispronounces domain-specific terms.

## Installation

```bash
pip install crispy-ipa
```

## Usage

```python
from crispy_ipa import Transcriber

t = Transcriber(custom_vocabulary={
    "nginx": "ˈɛndʒɪnˈɛks",
    "ChatGPT": "ˈtʃætˈdʒiˈpiˈti",
})
print(t.transcribe("ChatGPT and nginx"))
# ˈtʃætˈdʒiˈpiˈti ˈænd ˈɛndʒɪnˈɛks
```
