havarotjs - v0.22.4

havarot

havarotjs

A Typescript package for getting syllabic data about Hebrew text with niqqud.

The general idea of this package is that a Text is composed of Words which are composed of Syllables which are composed of Clusters which are composed of Characters.

install

Using npm:

npm install havarotjs

To call using TypeScript:

import { Text } from "havarotjs";

Or Node:

const havarot = require("havarotjs");
const Text = havarot.Text;
const heb = new Text("אֱלֹהִים");

example

import { Text } from "havarotjs";
const heb = "אֱלֹהִים";
const text = new Text(heb);
const sylText = text.syllables.map((syl) => syl.text);
sylText;
// [
// "אֱ"
// "לֹ"
// "הִים"
// ]

Contributing

Free to open an issue or pull request.

See the terms list for a list of naming conventions.

Generated using TypeDoc