emo-eth / Phyme

python rhyming dictionary for songwriting
MIT License
59 stars 9 forks source link

Vowel-partner consonant family rhymes #11

Open emo-eth opened 6 years ago

emo-eth commented 6 years ago

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

tomekr commented 4 years ago

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)

emo-eth commented 4 years ago

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.

tomekr commented 4 years ago

Ah i see! Nice, thanks!