[pronunciation] fix pronunciation of capitalised words

This commit is contained in:
Avris 2020-12-05 20:14:55 +01:00
parent ee02c1df36
commit 1fbf398ce2
1 changed files with 4 additions and 0 deletions

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;
}