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

Jerusalem — correct number of syllables #83

Closed charlesLoder closed 1 year ago

charlesLoder commented 1 year ago

When spelled "יְרוּשָׁלַיִם", the does not have the correct number of syllables

const str = `יְרוּשָׁלִָֽם`;
const text = new Text(str);
const test = text.syllables.map((s) => s.text);
//  [ 'יְ', 'רוּ', 'שָׁ', 'לִָֽם' ] 

It should be 5 syllables.

Issue #26 fixed the issue of sequencing.