charlesLoder / havarotjs

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

Segolate nouns with sof pasuq not accented correctly #108

Closed charlesLoder closed 1 year ago

charlesLoder commented 1 year ago
const str = `הָאָֽרֶץ׃`;
const text = new Text(str);
console.table(text.syllables.map((s) => [s.text, s.isAccented,  s.isClosed]));

┌─────────┬───────┬───────┬───────┐
│ (index) │   0   │   1   │   2   │
├─────────┼───────┼───────┼───────┤
│    0    │  'הָ'  │ false │ false │
│    1    │  'אָֽ'  │ false │ false │
│    2    │ 'רֶץ׃' │ true  │ true  │
└─────────┴───────┴───────┴───────┘

The second syllable should be accented