Registry / ai-ml / gruut-ipa

gruut-ipa

JSON →
library0.13.0pypypiunverified

Library for manipulating pronunciations using the International Phonetic Alphabet (IPA). Provides classes and functions for parsing, grouping, and comparing IPA strings, handling suprasegmentals, diacritics, and stress markers. Current version 0.13.0.

pip install gruut-ipa
INSTALL
IMPORT
SIG · GRUUT-IPA
G
gruut-ipa
ai-mlpythonv0.13.0
Install
2.5s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IPA
from gruut_ipa import IPA
from gruut_ipa import IPA

Parse an IPA string and access its components.

from gruut_ipa import IPA ipa = IPA('ˈsɝˌvɛɪ') print(ipa) # 'ˈsɝˌvɛɪ' print(ipa.stripped()) # 'sɝvɛɪ' print(ipa.phonemes) # ['ˈ', 's', 'ɝ', ',', 'v', 'ɛ', 'ɪ']
Debug
Known issues
deprecatedThe `IPA.graphemes` property has been removed in v0.13.0; use `.phonemes` instead.
fix
Replace `.graphemes` with `.phonemes`.
affects: >=0.13.0
gotchaIPA string comparisons may fail due to Unicode normalization (composed vs decomposed characters). Normalize strings with `unicodedata.normalize('NFC', s)` before comparison.
fix
Normalize both strings with `unicodedata.normalize('NFC', ...)` before comparing.
affects: all
Upgrade
Version history
0.13.0latest on PyPI · released Mar 11, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
gruut-ipa — pip install gruut-ipa · libregistry