Skip to content

Hebrew Number to Words in JavaScript (he-IL, hbo-IL) โ€‹

Use he-IL for Modern Hebrew or hbo-IL for Biblical Hebrew when your application needs Hebrew number words with gender-aware forms and Shekel currency wording.

Locale codes: he-IL, hbo-IL ยท Numbering system: Short scale ยท Currency: ืฉืงืœ (Shekel) / ืื’ื•ืจื” (Agora) ยท Script: Hebrew (RTL)

Install โ€‹

bash
npm install to-words

Basic Conversion โ€‹

js
import { ToWords } from 'to-words';

const tw = new ToWords({ localeCode: 'he-IL' });

tw.convert(100);
tw.convert(1000);
tw.convert(1000000);

Gender โ€‹

Hebrew has grammatical gender. Pass gender in options when the noun context requires it.

js
tw.convert(1, { gender: 'masculine' });
tw.convert(1, { gender: 'feminine' });

Currency - Shekel / Agora โ€‹

js
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });

Ordinal Numbers โ€‹

js
tw.toOrdinal(1);
tw.toOrdinal(10);
tw.toOrdinal(100);

Biblical Hebrew โ€‹

js
const twBiblical = new ToWords({ localeCode: 'hbo-IL' });
twBiblical.convert(1000);

hbo-IL uses Biblical Hebrew wording and is suited for religious texts, academic publishing, or Torah study apps.

Locale Codes โ€‹

Locale codeCountryCurrencyNotes
he-ILIsraelืฉืงืœ / ืื’ื•ืจื”Modern Hebrew; RTL; gender-aware
hbo-ILIsraelืฉืงืœ / ื’ืจื”Biblical/Ancient Hebrew; RTL; gender-aware

FAQ โ€‹

Q: Which locale code should I use for Modern Hebrew number-to-words output? Use he-IL.

Q: Does he-IL support grammatical gender? Yes. Pass gender: 'masculine' or gender: 'feminine' in the options object.

Q: What is hbo-IL for?hbo-IL is Biblical/Ancient Hebrew, suited for religious texts, academic publishing, or Torah study applications.

Released under the MIT License.