An Espanso package designed to automatically fix common Arabic spelling and grammar mistakes on the fly, saving you time and ensuring professional text formatting.
Unlike standard spell-checkers that require you to click and correct, misspell-ar operates instantly in the background, auto-correcting your text the millisecond you press the spacebar.
Make sure you have Espanso installed on your system. Then, open your terminal and run the following command:
espanso install misspell-ar
This dictionary targets frequent Arabic typing errors. It avoids the most dangerous context-dependent cases, but a small curated subset still relies on typical usage — when in doubt, review your text.
Currently, the package includes 4,950+ corrections covering:
ساعه → ساعة, لغه → لغة, الهضبه → الهضبة).أ, إ, آ), including words with the definite article (e.g., الاصغر → الأصغر, الامارات → الإمارات, انت → أنت, اخر → آخر).شكرا → شكراً, دائما → دائماً, معا → معاً).انشاء الله → إن شاء الله, اللهم صلي → اللهم صلِّ, الحمدلله → الحمد لله).ضهر → ظهر, ضلم → ظلم, عضم → عظم).ى/ي ending mistakes (e.g., عيسي → عيسى, مصطفي → مصطفى).تسائل → تساؤل, هاذا → هذا, لاكن → لكن).Most corrections are rule-generated from a large frequency corpus of real Arabic text using conservative, meaning-preserving rules designed to avoid colliding with valid words:
فتحه = "his opening" vs فتحة = "an opening") and (b) the corrected form is several times more frequent than the trigger in the corpus (drops rare junk like مشابة, keeping healthy pairs like ساعة/ساعه).ال: the definite article + hamza (الأ, الإ, الآ) → plain الا pairs are kept only when the hamza form clearly dominates in frequency, which excludes alif-wasl words (استجابة, اعتراف) where the bare form is the correct spelling.The generator that produced this file lives in the source repository of this package (scripts/gen.py).
This hub package ships only the generated dictionary. All matches use word: true where the trigger is a single word.
There is no configuration required. Once installed and restarted, Espanso will quietly monitor your keystrokes. Just type normally in any application (browser, terminal, IDE, or chat app). If you type a known misspelling and press Space or Enter, it will instantly snap to the correct spelling.
Arabic is a rich and complex language, and this dictionary is always growing! If you notice a common typo that is missing, contributions are highly encouraged.
To add a new word, open a pull request against the source repository (the Hub package is generated from it):
scripts/gen.py (or the curated list it reads) and regenerate, or edit packages/misspell-ar/0.1.0/package.yml directly for one-off additions. - trigger: "الكلمة_الخطأ"
replace: "الكلمة_الصحيحة"
word: true
Note: Please ensure new additions are unambiguous and do not accidentally overwrite valid words.
The rule-generated portion is derived from the FrequencyWords Arabic corpus (content licensed under CC-BY-SA-4.0), which is itself derived from common open text sources (Wikipedia, OpenSubtitles, etc.).
Created and maintained by Hossam Gamal (@hosam00).