Skip to content

remove

remove(text, options?): string

Defined in: src/remove.ts:611

Removes niqqud from Hebrew text

ParameterTypeDescription
textstringa string of Hebrew characters
optionsRemoveOptions-

string

Hebrew characters with accents and niqqud optionally removed

Default

// by default removes all accents and metheg and rafe
remove("שָׂרַ֣י אִשְׁתְּךָ֔, וַֽיִּמְצְא֗וּ");
// שָׂרַי אִשְׁתְּךָ, וַיִּמְצְאוּ

Remove accents and vowels, but not shin/sin dots

import { accents, vowels } from "hebrew-transliteration/removeOptions";
remove("שָׂרַ֣י אִשְׁתְּךָ֔, וַֽיִּמְצְא֗וּ", { ...accents, ...vowels, METEG: true });
// שׂרי אשׁתך, וימצאו

Remove all

import { all } from "hebrew-transliteration/removeOptions";
remove("שָׂרַ֣י אִשְׁתְּךָ֔, וַֽיִּמְצְא֗וּ", all);
// שרי אשתך, וימצאו