Phyme icon indicating copy to clipboard operation
Phyme copied to clipboard

Vowel-partner consonant family rhymes

Open emo-eth opened this issue 7 years ago • 3 comments

Get rhymes with similar vowels with end consonants in the same family

emo-eth avatar Feb 13 '18 06:02 emo-eth

Would this feature include the mapping of unvoiced and voiced consonant endings? For example, the 'd' in mud would have an unvoiced partner of 't' resulting in a match between ǓD and ǓT (i.e. ph.get_family_rhymes('mud') containing cut, glut, hut, shut, rut)

tomekr avatar Nov 05 '19 16:11 tomekr

Would this feature include the mapping of unvoiced and voiced consonant endings? For example, the 'd' in mud would have an unvoiced partner of 't' resulting in a match between ǓD and ǓT (i.e. ph.get_family_rhymes('mud') containing cut, glut, hut, shut, rut)

Almost, the naming has been hard to make clear. get_family_rhymes includes rhymes with consonants of the same type (plosives) but the same voicing (voiced or unvoiced).

So ph.get_family_rhymes('mud') would include, eg, rub, plug (assuming the CMU pronunciation dictionary considers those vowels the same, which is something I've been meaning to work on).

The method you're looking for is ph.get_parter_rhymes('mud') which includes both the voiced and unvoiced version of that particular consonant type.

emo-eth avatar Nov 05 '19 17:11 emo-eth

Ah i see! Nice, thanks!

tomekr avatar Nov 05 '19 17:11 tomekr