Metadata-Version: 2.4
Name: crispy-ipa
Version: 0.1.0
Summary: automatic english-to-IPA text transcriber
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
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 in pure Python with zero external dependencies.

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

## Features

* **Zero external dependencies:** built entirely on the Python standard library.
* **Hybrid engine:** combines a 125,000+ word phonetic dictionary, compound-word splitting, and a non-destructive rule engine.
* **High performance:** sub-millisecond processing without neural networks, heavy parsing, or sentence-level context analysis, backed by LRU caching.
* **Custom vocabulary support:** easily extend or override transcriptions for domain-specific terms and proper nouns.

## 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
```
