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

Incorrect proper nouns #137

Open charlesLoder opened 1 year ago

charlesLoder commented 1 year ago

Problem

Some proper nouns are being syllabified incorrectly when the first cluster is וַ.

Example

new Text("וַשְׁתִּ֧י").syllables.map((s) => s.text);
// [ 'וַ', 'שְׁ', 'תִּ֧י' ]
// should be
// ['וַשְׁ', 'תִּי']

The issue is here

Without lexical data, a list is probably the best option (per C. Staps suggestion).