The structure method accounts for furtive patach, but misses when there is a sof pasuq at the end.
Basically, "רֽוּחַ׃" may be the most complicated word to syllabify.
Example:
const str = "רֽוּחַ׃";
const text = new Text(str);
text.syllables.forEach((s) => {
const [a, b, c] = [...s.structure()];
console.log({
onset: a,
nucleus: b,
coda: c
});
});
// { onset: 'ר', nucleus: '', coda: 'ֽוּ' } this is incorrect as well, but will be addressed in another issue
// { onset: 'ח', nucleus: 'ַ', coda: '׃' }
The
structure
method accounts for furtive patach, but misses when there is a sof pasuq at the end.Basically, "רֽוּחַ׃" may be the most complicated word to syllabify.
Example:
Should be
This is because the syllabifier does not handled punctuation correctly.