[pronunciation] fix pronunciation of capitalised words

This commit is contained in:
Andrea Vos 2020-12-05 20:14:55 +01:00
parent bb87d1140b
commit 199ecfbd63

View File

@ -352,6 +352,10 @@ export class Pronoun {
}
getPronunciation(morpheme, counter = 0) {
if (morpheme.startsWith("'")) {
morpheme = morpheme.substring(1);
}
if (!this.pronunciations[morpheme]) {
return null;
}