hebrew-acronyms · מילון ראשי תיבות בעברית
A dictionary of 414 common Hebrew acronyms with functions that look them up, find them in a text and expand them to full words.
צה״ל → צבא הגנה לישראל · מע״מ → מס ערך מוסף · וכו׳ → וכולי
Hebrew text is full of acronyms written with a gershayim mark. A text-to-speech engine reads מנכ״ל letter by letter, a search index does not connect מע״מ with מס ערך מוסף, and a language model that meets a rare one guesses. This package gives you the words behind the letters.
- Text to speech and voice agents.
expand()replaces the acronyms with their spoken form before the text goes to the engine. - Search. Someone who types מס ערך מוסף also finds documents that say מע״מ.
- Chatbots and NLP. Find the acronyms in a text, see what each one means and which field it belongs to.
The functions accept the Hebrew gershayim (״) and a plain quote ("), ignore nikud, and recognise prefix letters attached to an acronym (ובצה״ל, למנכ״ל, שהרמטכ״ל).
Install
pip install hebrew-acronyms
No dependencies. Python 3.10 or newer. Type hints included.
Use
from hebrew_acronyms import expand, find_acronyms, lookup, search
expand("המנכ״ל אישר את הדו״ח של רו״ח")
# 'מנהל כללי אישר את דין וחשבון של רואה חשבון'
lookup('ובצה"ל')
# LookupResult(acronym='צה״ל', normalized='צהל',
# meanings=(Meaning(text='צבא הגנה לישראל', category='army'),), prefix='וב')
[entry.acronym for entry in search("מס ערך")]
# ['מע״מ']
[(hit.match, hit.index) for hit in find_acronyms("חברה בע״מ, כולל מע״מ")]
# [('בע״מ', 5), ('מע״מ', 16)]
Acronyms with several meanings
ב״ב can be בני ברק and also בבא בתרא. By default expand() leaves such an acronym as it is, so that it never puts the wrong words into a sentence. To take the first meaning:
expand("נסענו לב״ב", ambiguous="first")
API
| Function | What it does |
|---|---|
lookup(word) |
The entry for one acronym, with the prefix letters it carried, or None |
search(query, *, category=None, limit=20) |
Entries whose letters start with the query or whose meaning contains it |
expand(text, *, ambiguous="keep") |
The text with every known acronym replaced by its spoken form |
find_acronyms(text) |
Every known acronym in the text with its position |
normalize(value) |
The letters without quote marks, nikud, dots, hyphens and spaces |
category_label(category) |
The Hebrew name of a field |
ACRONYMS, CATEGORIES |
The dictionary itself and the nine fields |
Fields: army, torah, law, state, business, general, edu, health, units.
[entry.acronym for entry in search("ר", category="army", limit=3)]
Limits
- The list covers common acronyms, not all of them. Hebrew has thousands, and new ones appear all the time.
expand()only touches a word that carries a gershayim or geresh mark, so an ordinary word that happens to match the letters of an acronym stays as it is.- Choosing between several meanings needs the context. The package does not guess.
The same dictionary elsewhere
- JavaScript: hebrew-acronyms on npm. The tests of this package compare every function with the answers of the JavaScript version.
- Table: aiterra/hebrew-acronyms on Hugging Face.
- In the browser: the free acronym lookup on aiterra.co.il.
בעברית
מילון של 414 ראשי תיבות נפוצים בעברית לפייתון, עם פונקציות לחיפוש, לזיהוי בטקסט ולפריסה למילים מלאות.
- סוכנים קוליים ו-TTS. מנועי הקראה מקריאים את ״מנכ״ל״ כאותיות.
expand()פורס את ראשי התיבות לפני שהטקסט נשלח להקראה. - חיפוש. מי שמחפש ״מס ערך מוסף״ ימצא גם מסמכים שכתוב בהם מע״מ.
- צ׳אטבוטים ו-NLP. מזהים ראשי תיבות בטקסט, יודעים מה הם אומרים ולאיזה תחום הם שייכים.
הפונקציות עובדות עם גרשיים עבריים (״) ועם מירכאות רגילות ("), מתעלמות מניקוד ומזהות אותיות שימוש בתחילת המילה (ובצה״ל, למנכ״ל, שהרמטכ״ל). ראשי תיבות עם כמה פירושים, כמו ב״ב, נשארים כמו שהם, אלא אם מבקשים ambiguous="first".
המילון נבנה ב-Aiterra בשביל כלי ראשי התיבות החינמי באתר.
Licence
MIT. Built by Aiterra, a software studio in Israel that builds AI agents, voice agents and websites.
Metadata
Release files for hebrew-acronyms 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hebrew_acronyms-1.0.0.tar.gz | 16.3 kB | With provenance | Details for hebrew_acronyms-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hebrew_acronyms-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for hebrew_acronyms-1.0.0-py3-none-any.whl |
Total release size: 29.8 kB
Release files / hebrew_acronyms-1.0.0.tar.gz
| Download URL | hebrew_acronyms-1.0.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddafb85fd9134f77040c385da8230cbc1cc22dbc901ced94bacda114cba342e6
|
|
BLAKE2b-256 checksum How to use checksums |
36650cf962c88f2f5f5b9f1942782196a7e06f5dbd45841f076637fd01041997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / hebrew_acronyms-1.0.0-py3-none-any.whl
| Download URL | hebrew_acronyms-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97d56174f4d6587e0a04141368da216bd60a1a3aef37b350a6bff40bc42e9eca
|
|
BLAKE2b-256 checksum How to use checksums |
bb76e48f7b670802a85e7ca85a097fb6582dc51e7282c7c26d1d54009f39f586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for hebrew-acronyms 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hebrew_acronyms-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.