diff --git a/src/syllable.ts b/src/syllable.ts index 4e43646..ad8fb4e 100644 --- a/src/syllable.ts +++ b/src/syllable.ts @@ -145,8 +145,8 @@ export class Syllable extends Node { return noTaamim; } - // for maters, we have to match the vowel character - const match = noTaamim.match(vowelsCaptureGroupWithSheva); + // for maters or text with mixed scripts (e.g. Hebrew and Latin), we have to extract the vowel character + const match = this.text.match(vowelsCaptureGroupWithSheva); if (match && this.isVowelKeyOfSyllableCharToNameMap(match[0])) { return match[0]; }