rhasspy / gruut-ipa

Python library for manipulating pronunciations using the International Phonetic Alphabet (IPA)
MIT License
78 stars 12 forks source link

Palatalized consonants as separate phone #10

Open valericus opened 2 years ago

valericus commented 2 years ago

I'm trying to use your awesome library for some language investigation, and faced with a problem with palatalized consonants.

Your library thinks about ʲ (\u02B2, IPA number 421) as about separate phone. But as far as I understand it should be thought as diacritic symbol that marks base consonant as palatalized one. So correct output for >>> Pronunciation.from_string('konʲ').phones is not [k, o, n, ʲ] but [k, o, nʲ]

Kindly let me know if my assumption is correct (I'm not a linguist, and probably understand IPA in a wrong way), and I'll make you a pull request to fix that.