Tools for using the International Phonetic Alphabet (IPA) with phonological features. Supports feature extraction, segment similarity, alignment, and manipulation of Unicode IPA strings. Current version 0.22.2, release cadence irregular.
pip install panphonVerified import paths — ran on the pinned version, not inferred.
Load feature table, get feature vectors, compute segment distances.
Use FeatureTable('path/to/features.yaml') to load custom features.Replace `from panphon.editdistance import dolgo_prime_distance` with `from panphon.distance import Distance; Distance().dolgo_prime_distance(...)`.
Use `for vec in ft.word_fts('hello'):` to process each segment.Use `from panphon.distance import Distance` and call methods like `Distance().dolgo_prime_distance(...)`.
Upgrade to panphon 0.19 or later: `pip install --upgrade panphon`.