pip install ipa_rhyming
import ipa_rhyming
rhyme = ipa_rhyming.Rhymer('ko', 'en')
print(rhyme.get_rhyme_type('mʌtc͈iŋkjʌlmɐlʲetɐkʰʲe', 'haɪweɪhaɪweɪ'))
>>> {'rhyme_type': 'exact_perfect rhyme', 'sylls': ('kʰʲe', 'weɪ'), 'vowels': ('e', 'eɪ')}
The part before "_" determines the type of rhyme depending on vowels in last syllables.
- exact - vowels are the same
- rhyme - vowels are included in the list of combinations compiled by us on the basis of statistics, that is why we consider them rhymyng. Check combinations for each pair of laguages here
- not a rhyme - vowels are not included in the list of combinations compiled by us on the basis of statistics
The part after "_" determines the type of rhyme depending on final consonants in last syllables.
- pefect - consonants are identical (mouse-house)
- family - consonants are different, but belong to the same family (heart-park)
- assonance - consonants are different and do not belong to the same family (light-shine)
- additive - consonants are added or substracted (contrary - married)
For more information on types of rhymes check this document
Alina Lobanova (HSE University)
Ekaterina Neminova (HSE University)
Varvara Vasilyeva (HSE University)
Alyona Zenina (HSE University)