Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

arbtok

arbtok turns Arabic text into IPA for Modern Standard Arabic, Classical Arabic and 30 or more regional varieties. It restores the missing short vowels with a dialect-aware diacritizer that ships in the wheel, and it builds on orthography2ipa. The documentation starts at docs/index.md.

Try it in your browser: TigreGotico/arbtok on Hugging Face.

arbtok covers Arabic lects only. No leader language (pt-PT, pt-BR, es-CO, fr-FR, it-IT, de-DE, nl-NL, da-DK, kab, hi-IN, bn-IN, mwr) is in scope. orthography2ipa covers those languages.

Install

pip install --pre arbtok

Quickstart

from arbtok.plugin import ArbtokG2PPlugin

bare = "ذهب الولد الى المدرسة"
print(ArbtokG2PPlugin(lang="ar").transcribe(bare))
# ˈðahab ˈalwalad ˈʔilaː lˈmudrasa
print(ArbtokG2PPlugin(lang="ar-TN").transcribe(bare))
# ˈðahab ˈalwalad ˈʔilɛː lˈmudrasa

Documentation

Page Content
Quickstart Install, install notes, a first call in a dialect
Overview What arbtok adds over orthography2ipa, the capabilities, the word lattice
Diacritization The bundled model and the stem lexicon
Rawi-lattice fusion Dialect-aware tashkeel
Varieties Language tags, per-lect phonology, loanword nativization
Waqf The register switch
Arabizi input Latin-script Arabic with digit consonants
Text normalization Recognizer output and spoken forms, numbers for a voice agent
Code-switched gold The loanword gold set
API reference Every public name, the orthography2ipa pipeline steps
Advanced Token tree, espeak baseline, recipes
Per-lect benchmarks Scores, and the test suite's gold

License

Apache-2.0.

Metadata

Release files for arbtok 0.0.3a39

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

Source distribution (sdist)

Source distribution for arbtok 0.0.3a39
File Size Uploaded Provenance Actions
arbtok-0.0.3a39.tar.gz 3.8 MB Without provenance Details for arbtok-0.0.3a39.tar.gz

Built distribution (wheel)

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

Total release size: 7.4 MB

Release files / arbtok-0.0.3a39.tar.gz

Download URL arbtok-0.0.3a39.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
9c5948cf8d9b36f53e0e28d3d28969c8758714a251531f0708f5f601aa6f0c7d
BLAKE2b-256 checksum
How to use checksums
783db7ee9529a5ac13f469a9338f9c08aacc4b7942df0e9e43df2ba33d9b052b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / arbtok-0.0.3a39-py3-none-any.whl

Download URL arbtok-0.0.3a39-py3-none-any.whl
Size 3.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0dac1f1786e32cb7bbe25cf6d150a1e86808a63af96a0f91366ac042f8532bc2
BLAKE2b-256 checksum
How to use checksums
4b638f9518bfd21062f0065d2c8a4b1e77fd73dd5807dbcf5970e0156f6f918d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for arbtok 0.0.3a39

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release
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