charlesLoder / havarotjs

A Typescript package for getting syllabic data about Hebrew text with niqqud.
https://www.npmjs.com/package/havarotjs
MIT License
12 stars 6 forks source link

`isClosed` is incorrect with certain quiesced aleph situation #131

Closed charlesLoder closed 1 year ago

charlesLoder commented 1 year ago

When an aleph is quiesced, the isClosed property is correctly set:

console.log(new Text("בָּרָא").syllables.map((s) => s.isClosed));
// [ false, false ]

But when the aleph is quiesced and preceded by a closed consonant, it is incorrect:

console.log(new Text("וַיַּ֧רְא").syllables.map((s) => s.isClosed));
// [ true, false ]

Both should be true