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

`isAccented` incorrect with pashta/qadma #133

Closed charlesLoder closed 1 year ago

charlesLoder commented 1 year ago

When a word has two pashta characters (U+0599), the first is most likely a qadma. It seems most texts use the same character, though they are different semantically.

console.log( new Text("הַמַּ֙יִם֙").syllables.map(s => s.isAccented) );

// current
// [ false, true, true ]

// expected
// [ false, true, false ]