Closed charlesLoder closed 1 year ago
@charlesLoder
Hi - hopefully this simple change to syllabifier.ts helps.
if (shevaPresent && cluster.hasLongVowel) {
if (options.longVowels) {
syl = shevaNewSyllable(syl);
result.push(cluster);
shevaPresent = false;
} else {
// If longVowels is false, don't create a new syllable, just add the cluster to the current syllable
syl.unshift(cluster);
shevaPresent = false;
}
continue;
}
@charlesLoder Oh - I see what you are asking. Apologies.
Is this the fix you are looking for?
get hasLongVowel(): boolean {
return /[\u{05B5}\u{05B8}\u{05B9}\u{05BA}\u05B9]/u.test(this.text);
}
This just checks for a holam.
See initial discussion here.
In a word like "הוֹלְכִים" when
longVowels
isfalse
it should be a 2 syllable word.But it should be