string_to_ipa
string_to_ipa copied to clipboard
fixed incorrect db entries for multi-word words
Multi-word words ended up having the second word as part of the phonetic, making it incorrect.
There are two cases: when the second word started with a non-consonant sound, it looked like MOUNT, _EVEREST<phonetic>
but if it started with a consonant sound it looked like AIR, fORCE<phonetic>
I fixed all cases found with the following SQL queries:
SELECT * FROM phonetics WHERE phonetic LIKE '\_%' ESCAPE '\';
SELECT * FROM phonetics WHERE phonetic REGEXP '^[a-z][A-Z].*';
Hello! My apologies for not responding sooner - I'm finally catching up on my open-source projects. Thanks for catching this; would you mind adding some tests for this change to test/test_string_to_ipa.rb
?