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

Refactor chars #163

Closed charlesLoder closed 5 months ago

charlesLoder commented 5 months ago

A bit of a grab bag, but this PR refactors the Char class with properties that can be used for finding vowels, taam, punctuation, etc. It refactors how the regular expressions are written, adds is* properties (isDagesh, isVowel), adds a characterName prop and hasCharacterName method for getting the characters names, which will be used in the Cluster, Syllable, and Word objects