First tagged release of darija-tools, a dependency-free Python layer for Moroccan Darija text processing.
Included
- Arabic-script normalization for diacritics, tatweel, common letter variants, optional digit folding, and optional whitespace collapsing.
- Arabizi-to-Arabic transliteration using a curated high-frequency lexicon plus transparent fallback rules.
- Optional preservation of common French and English loanwords in code-switched Darija.
- Python API and
darijacommand-line interface. - Tested across Python 3.9 through 3.13 with package-build validation.
Install
git clone --branch v0.1.0 https://github.com/Samielakkad/darija-tools.git
cd darija-tools
pip install .Arabizi spelling is not standardized. This release targets common Moroccan forms and keeps the long-tail fallback intentionally transparent; native-speaker corrections and additional variants are welcome in issue #5.
Downloads
Install the wheel directly:
pip install https://github.com/Samielakkad/darija-tools/releases/download/v0.1.0/darija_tools-0.1.0-py3-none-any.whl