NB: This PR builds off #113 so should not be merged until the former is reviewed and/or merged.
This PR adds onset, nucleus, and coda methods to the Syllable class and appropriate tests to syllable.test.ts. These methods are exactly as described in #2 (with the exception that they return "" instead of null).
Note that currently the onset of the first syllable of שְׁתַּיִם is not "שְׁתּ", as it ought to be, since this library syllabifies שְׁתַּיִם as ["שְׁ", "תַּ", "יִם"].
NB: This PR builds off #113 so should not be merged until the former is reviewed and/or merged.
This PR adds
onset
,nucleus
, andcoda
methods to theSyllable
class and appropriate tests tosyllable.test.ts
. These methods are exactly as described in #2 (with the exception that they return""
instead ofnull
).This PR also adds
codaWithGemination
, which includes gemination of the subsequent syllable in the coda. This is inspired by my comment in https://github.com/charlesLoder/hebrew-transliteration/discussions/68.Note that currently the onset of the first syllable of שְׁתַּיִם is not
"שְׁתּ"
, as it ought to be, since this library syllabifies שְׁתַּיִם as["שְׁ", "תַּ", "יִם"]
.Resolves #2