Skip to main content

yiddish

A Python library for processing Yiddish text

by Isaac L. Bleaman (bleaman@berkeley.edu)

See the commit history for additional contributors.

What is this for?

This library includes functions to carry out common tasks when dealing with Yiddish text. For example, you might wish to replace precomposed Unicode characters (such as אַ, U+FB2E) with their decomposed versions (אַ, which is U+05D0 followed by U+05B7). Or you might wish to transliterate YIVO Yiddish text (איבער to iber) or render it in the orthography used more commonly in the Hasidic community (שנײיִק to שנייאיג).

See Functions below for the full list.

How to install

pip install yiddish

The package requires Python 3.9 or later and has no dependencies.

Note: The wordlists the package relies on are bundled into the releases on PyPI, but they are not stored in this repository. If you wish to install from the source, clone the repository, run bash fetch_data.sh to download the wordlists, and then run pip install .. (Installing directly with pip install git+https://github.com/ibleaman/yiddish will not include them, and the package will fail to import.)

License and data

The library is released under the MIT License (see LICENSE.md).

The wordlists come from two separate repositories, loshn-koydesh-pronunciation and hasidify_lexicon, and are bundled into each release. The loshn-koydesh lexicon was inspired by the work of lexicographer Yitskhok Niborski and expanded and adapted from a wordlist put together by Eliezer Niborski; see its repository for the sources. The hasidify list was initially created by me for personal use during my doctoral research, based on my own intuitions about common spelling correspondences.

How to cite

If you'd like to cite yiddish in a publication, please include a link to https://github.com/ibleaman/yiddish or https://pypi.org/project/yiddish/

Example

import yiddish

output = ''

string = 'אונדזער גאַנצע משפּחה װױנט אין די פֿאַראײניקטע שטאַטן.'

output += yiddish.replace_with_precomposed(string) + '\n'
output += yiddish.respell_loshn_koydesh(string) + '\n'
output += yiddish.strip_diacritics(string) +  '\n'
output += yiddish.transliterate(string) +  '\n'
output += yiddish.transliterate(string, loshn_koydesh=True) +  '\n'
output += yiddish.hasidify(string)

output += '\n\n'

string_two = 'shloymele hot khasene gehat mit rokhls tokhter leye.'

output += yiddish.detransliterate(string_two) + '\n'
output += yiddish.detransliterate(string_two, loshn_koydesh=True)

print(output)

Output:

אונדזער גאַנצע משפּחה װױנט אין די פֿאַראײניקטע שטאַטן.
אונדזער גאַנצע מישפּאָכע װױנט אין די פֿאַראײניקטע שטאַטן.
אונדזער גאנצע משפחה וווינט אין די פאראייניקטע שטאטן.
undzer gantse mshpkhh voynt in di fareynikte shtatn.
undzer gantse mishpokhe voynt in di fareynikte shtatn.
אונזער גאנצע משפחה וואוינט אין די פאראייניגטע שטאטן.

שלױמעלע האָט כאַסענע געהאַט מיט ראָכלס טאָכטער לײע.
שלמהלע האָט חתונה געהאַט מיט רחלס טאָכטער לאה.

Functions

All functions take a string and return a string. Input may be in precomposed (e.g., אַ, U+FB2E) or decomposed (אַ, U+05D0 + U+05B7) form, except where noted.

Unicode and punctuation

replace_with_precomposed(string): replace decomposed characters with precomposed ones. (replace_with_precombined is an older name for the same function and still works.) Note that characters such as אַ (U+FB2E) belong to Unicode's Alphabetic Presentation Forms block and are excluded from standard NFC normalization, so unicodedata.normalize('NFC', ...) will not produce them; this function will.

>>> yiddish.replace_with_precomposed('\u05d0\u05b7')
'אַ'

>>> len(yiddish.replace_with_precomposed('\u05d0\u05b7'))
1

replace_with_decomposed(string, vov_yud=False): replace precomposed characters with decomposed ones. With vov_yud=True, ligatures that are already present in the input (װ, ױ, ײ) are kept, but digraphs (וו, וי, יי) are not converted into ligatures. (To use ligatures throughout, run replace_with_precomposed first, then this function with vov_yud=True.) There is one exception, which applies whether or not vov_yud is set: ײַ (pasekh tsvey yudn) and two yuds followed by pasekh both become ligature ײ + pasekh (U+05F2 U+05B7), the standard Unicode decomposition of ײַ.

>>> yiddish.replace_with_decomposed('\ufb2e')
'אַ'

>>> len(yiddish.replace_with_decomposed('\ufb2e'))
2
>>> yiddish.replace_with_decomposed('װױנט')
'וווינט'

replace_punctuation(string): use the punctuation conventional for (at least much of) Yiddish text on the web: ASCII hyphens become makef, and geresh/gershayim/prime variants become ' and ".

>>> yiddish.replace_punctuation('ר׳ יוסף ז״ל')
'ר\' יוסף ז"ל'

strip_diacritics(string): remove the nekudes/pointing used in standard (YIVO) Yiddish orthography (pasekh, komets, khirek, dogesh, rofe, and sin dot) and expand the ligatures װ, ױ, ײ, ײַ into plain letters. Other Hebrew points and cantillation marks are not removed.

>>> yiddish.strip_diacritics('די פֿאַראײניקטע שטאַטן')
'די פאראייניקטע שטאטן'

Romanization

transliterate(string, loshn_koydesh=False, loc=False): romanize Yiddish text using the YIVO system. With loc=True, a Library of Congress-style system is used instead. With loshn_koydesh=True, Hebrew- and Aramaic-origin words are first respelled as they are pronounced (see respell_loshn_koydesh).

>>> yiddish.transliterate('איבער')
'iber'
>>> yiddish.transliterate('פֿאַראײניקטע', loc=True)
'fareyniḳṭe'
>>> yiddish.transliterate('די משפּחה מאַשבער', loshn_koydesh=True)
'di mishpokhe mashber'

detransliterate(string, loshn_koydesh=False): convert YIVO-style romanization back to Yiddish script. With loshn_koydesh=True, Hebrew- and Aramaic-origin words are given their traditional spelling. The output uses precomposed Unicode characters (but you can run replace_with_decomposed on the output if desired).

>>> yiddish.detransliterate('shloymele hot khasene gehat')
'שלױמעלע האָט כאַסענע געהאַט'
>>> yiddish.detransliterate('shloymele hot khasene gehat', loshn_koydesh=True)
'שלמהלע האָט חתונה געהאַט'

romanize_german(text): (also available as romanise_german) a German-style romanization (originally designed for use with the aeneas audio-text synchronizer).

>>> yiddish.romanize_german('װען װעלן מיר זיך שפּילן צוזאַמען?')
'wen welen mir sich spilen zusamen?'

Loshn-koydesh

These use the wordlists from loshn-koydesh-pronunciation.

respell_loshn_koydesh(text): respell Hebrew- and Aramaic-origin words as they are pronounced. The output uses precomposed Unicode.

>>> yiddish.respell_loshn_koydesh('משפּחה')
'מישפּאָכע'

spell_loshn_koydesh(text): the reverse: give Hebrew- and Aramaic-origin words their traditional spelling.

>>> yiddish.spell_loshn_koydesh('מישפּאָכע')
'משפּחה'

Orthographic variants

hasidify(text): render text in the spelling used more commonly in the Hasidic community.

>>> yiddish.hasidify('אונדזער הײליקע ייִדישע שפּראַך')
'אונזער הייליגע אידישע שפראך'

desovietify(text): convert Soviet Yiddish orthography to standard (YIVO) orthography.

>>> yiddish.desovietify('דאָס לאָשנ פונ דעמ באלעגאָלע')
'דאָס לשון פֿון דעם בעל־עגלה'

Metadata

Release files for yiddish 0.0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yiddish 0.0.26
File Size Uploaded Provenance Actions
yiddish-0.0.26.tar.gz 181.2 kB With provenance Details for yiddish-0.0.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yiddish 0.0.26
File Interpreter ABI Platform Actions
yiddish-0.0.26-py3-none-any.whl Python 3 none any Details for yiddish-0.0.26-py3-none-any.whl

Total release size: 358.7 kB

Release files / yiddish-0.0.26.tar.gz

Download URL yiddish-0.0.26.tar.gz
Size 181.2 kB
Tags Source
SHA-256 checksum
How to use checksums
070cd18ac6616ee8d42c0702dea8acb8e6d35de47cb676171c2033f93512b6b8
BLAKE2b-256 checksum
How to use checksums
d47e9b8dd325ac84cb6869667e24e3afea73840e6f517509671434428d62ba15
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 21, 2026.

Transparency log

Release files / yiddish-0.0.26-py3-none-any.whl

Download URL yiddish-0.0.26-py3-none-any.whl
Size 177.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
688fab09d3561a10501e339fb8faea1a7b2724acb0d73384aa43ae24cbd97abc
BLAKE2b-256 checksum
How to use checksums
aa57c2c1fe17d6de6cd781f4fc578b7dfd55d0e5ab4c7eee6e8d6b7357e9a35d
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 21, 2026.

Transparency log

Security for yiddish 0.0.26

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.

Select from 2 files

Attestation for yiddish-0.0.26.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 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page