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

Parent object #135

Closed charlesLoder closed 1 year ago

charlesLoder commented 1 year ago

What this does

This branch adds access to the "parent" object from the child.

The only exception is that there is no Text parent on the Word class. Because

Example

new Text("דָּבָר").clusters[1].syllable.isClosed;
 // true

Now the Cluster has access to knowledge about the Syllable

Why

Primarily to feed into the transliteration package so when using a callback the user can access the parent.