majdghithan/agent-skills / skills/lahja
lahja
VerifiedArabic dialects (لهجة) writing skill - write or rewrite Arabic in a specific spoken dialect with correct dialect GRAMMAR, not just sample words. Covers negation, future and aspect markers, demonstratives, question words, spelling habits, MSA leaks to remove, and how English tech terms sit inside dialect text. Covers Levantine (Palestinian-anchored), Egyptian, Gulf, Iraqi, Maghrebi (Moroccan, Algerian, Tunisian), Libyan, Sudanese, and Yemeni. Use when the user asks to write "بالعامية", "باللهجة الفلسطينية/الشامية/المصرية/الخليجية/العراقية/المغربية/الليبية/السودانية/اليمنية", "in Levantine/Palestinian/Egyptian/Gulf/Khaleeji/Iraqi/Moroccan/Libyan/Sudanese/Yemeni Arabic or Darija", "make this sound less formal/less translated", "convert فصحى to عامية", or writes to you in a dialect and wants dialect output (social posts, chat/WhatsApp copy, casual product copy, scripts). Built on the fasih method by Maher El Gamil. Works standalone; if the separate fasih skill is also available, invoke it for editorial quality while lahja owns the dialect forms. Do NOT use for formal MSA writing, legal/government/medical text, literal translation, or when no dialect is wanted.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.2 KB |
| references/egyptian.md | markdown | 11.1 KB |
| references/gulf.md | markdown | 12.0 KB |
| references/iraqi.md | markdown | 12.5 KB |
| references/levantine.md | markdown | 16.0 KB |
| references/libyan.md | markdown | 13.2 KB |
| references/maghrebi.md | markdown | 15.6 KB |
| references/sudanese.md | markdown | 11.5 KB |
| references/yemeni.md | markdown | 12.8 KB |
| scripts/check_output.py | script | 3.7 KB |
| scripts/check_skill.py | script | 4.1 KB |
references/maghrebi.md
View on GitHub# Maghrebi Arabic (دارجة) - writing guide
**Coverage:** Moroccan Darija (Casablanca / Rabat urban) with Algerian (Algiers) and Tunisian (Tunis) columns. Every form below is cited to the sources at the end; anything the sources didn't settle is listed in the last section and must not be generated.
## 0. Pick ONE country. These are not interchangeable.
Mutual intelligibility is high between neighbours but **low between Moroccan and Tunisian**. [MaghrebWiki]
**False friends that break a text:**
| Form | Moroccan | Algerian | Tunisian |
|---|---|---|---|
| **باش** | "in order to" | - | **future marker** ("will") |
| **غادي** | **future marker** ("will") | unsourced | "there" (place) |
| **واش** | **yes/no question particle** (واش حابين تجيوا؟) | **"what"** | - |
So باش نكتب means "so that I write" in Morocco and "I will write" in Tunisia. Never mix columns. [Wikt-bash] [Wikt-ghadi] [Wikt-wash]
| Feature | Moroccan (default) | Algerian | Tunisian |
|---|---|---|---|
| "not" + verb | ما...ش (ما كتبش) | ما...ش (ما لعبتش) | ما...ش (ما فهمتش) |
| "not" + noun/adj | ماشي | unsourced | موش / مش |
| Future | غادي / غاد / غا (north: ها-) | رايح | باش / بش / ماش |
| Habitual present | كـ- / تـ- (كنكتب) | راني / رانا + verb | **bare verb, no prefix** |
| "there is / isn't" | كاين / ماكاينش | ماكاش | فمّة / مافمّاش |
| "what" | شنو / آش (north: شني) | واش | شنوة / آش |
| "where" | فين | وين | فين / وين |
| "now" | دابا | unsourced | توّة |
| "a lot / very" | بزاف | unsourced for Algerian | برشا |
| "of" (possession) | ديال | تاع | متاع |
Sources: [MoroccoWiki] [AlgeriaWiki] [TunisiaWiki] [Wikt-*]. Blank cells mean no source was found; ask a native speaker rather than borrowing the neighbouring column.
## 1. Negation
- **ما...ش wraps the verb** in all three: ما كتبش، ما كيكتبش (Moroccan), ما لعبتش (Algerian), ما فهمتش / ما ناحكيش (Tunisian). It wraps attached object pronouns too. [MoroccoWiki] [AlgeriaWiki] [Wikivoyage]
- **Non-verbal negation**: Moroccan **ماشي**: هو ماشي مغربي. Tunisian **موش / مش** (from ماهوش), with inflected forms مانيش، ماهومش، ماكومش. [Wikt-mashi] [Wikt-mush] [SciELO]
- **Existentials**: Moroccan كاين / كاينة / كاينين -> **ماكاينش**; Algerian **ماكاش**; Tunisian فمّة -> **مافمّاش**. Careful: Tunisian كاين is a modal ("to seem"), not the existential. [Wikt-kayn] [Souag] [Ithaca]
- **ما بغيتش** = "I don't want" (Moroccan). [DarijaSchool]
- **Moroccan negatives without ش**: walu، حتى حاجة، حتى واحد. [MoroccoWiki]
- **Not sourced:** the negative imperative (ما تمشيش), the negated future (ماغاديش), and Algerian ماشي / ماهوش. Don't generate them; see section 10.
## 2. Future
- **Moroccan غادي / غاد / غا** + verb: غانكتب. Northern Morocco (Tangier, Tetouan) uses **ها-** instead. [MoroccoWiki]
- **Moroccan ماشي also marks the future** (ماشي ناكل فهداك المطعم), but it is also the nominal negator, so **prefer غادي** in generated text to avoid ambiguity. [Wikt-mashi]
- **Algerian رايح** + verb, with a caveat from the source: Algerians often just use the present or present continuous instead of a future form. [AlgeriaWiki]
- **Tunisian باش / بش / ماش** + verb. [TunisiaWiki]
## 3. Aspect - the biggest country split
- **Moroccan كـ- / تـ- marks the habitual/indicative**: كنكتب (I write), كتكتب، كيكتب، كنكتبو (we write). كـ dominates in the north, تـ in the south, and Oujda uses no preverb at all. [MoroccoWiki]
- **Tunisian has NO indicative prefix**: the bare imperfect does the job, and there is no indicative/subjunctive distinction. **Writing كنكتب in Tunisian is a hard error.** [TunisiaWiki]
- **Algerian راني / رانا + verb** for an ongoing action: راني نكتب، رانا نكتبو. [AlgeriaWiki]
- **Tunisian قاعد + imperfect** for the progressive. [TunisiaWiki]
- **Known gap: no Tunisian or Algerian obligation form is sourced** ("I have to"). Moroccan has خاص / خاصني; the other two columns have nothing. Rebuild the sentence as intent (باش + verb) and say the obligation nuance is not covered, rather than borrowing خاصني across the border.
- **Participle ماشي** = going right now: آنا دابا ماشي للمدرسة. [Wikt-mashi]
- **Moroccan خاص / خاصني** ("I have to") takes a bare verb: خاصني نمشي للمكتبة باش ناخد داك الكتاب. [Wikt-khass]
## 4. Demonstratives, question words, relative
- **Demonstratives**: Moroccan هاد / هادي / هادو / هادشي، داك / ديك; Algerian had / hadi / hadu، dak / dik / duk; Tunisian هاذا / هاذي / هاذومة (Sfax هاكومة / هاكة / هاكي). Tunisian uses هاذا, **not** Moroccan هاد. [MoroccoWikiAr] [AlgeriaWiki] [TunisiaWiki]
- **Question words** (see the table in section 0 for the traps):
- "what": Moroccan شنو / آش (north شني), Algerian واش, Tunisian شنوة / آش. شنو is **not** a Maghreb marker: it is also Gulf, Iraqi, and Sudanese. [Wikt-shnu]
- "where": فين (Moroccan and Tunisian), وين (Algerian and Tunisian). [Wikt-fin] [Wikt-win]
- "why": علاش everywhere (Algerian also علاه). "how": كيفاش. [Wikt-alash] [Wikt-kifash]
- "when": Moroccan فوقاش (most regions), إمتى (Atlantic), فوياخ (northwest); Algerian and Tunisian وقتاش. [MoroccoWiki] [Wikt]
- "who": شكون (Moroccan subject position only, otherwise من). "how much": شحال and قداش are **both** used in Morocco and Algeria; neither is country-exclusive. [Wikt-shkun] [Wikt-shhal] [Wikt-qaddash]
- **Relative اللي** (Tunisian إلي). [MoroccoWiki] [TunisiaWiki]
- **Not sourced:** داكشي, the position of Moroccan demonstratives relative to the noun, and the complementizer بلي. Don't assert them.
## 5. Pronouns - the Maghrebi signature
- **The n- prefix on the 1st person singular "distinguishes Maghrebi Arabic from all other varieties of Arabic".** نكتب = **I** write; نكتبو = **we** write. Moroccan كنكتب / كنكتبو, Algerian نكتب / نكتبو, Tunisian نـ / نـ...ـو. An agent that writes أكتب for "I write" has left the Maghreb. [MaghrebWiki] [MoroccoWiki] [AlgeriaWiki]
- **Tunisian pronouns** (7, with **no gender split in the 2nd person singular**): أني، إنتِي، هوة، هية، أحنا، انتوم، هومة. [TunisiaWiki]
- **Possession**: ديال (Moroccan), تاع (Algerian), متاع (Tunisian). This is a tendency, not a clean split: تاع also exists in Morocco, and Tunisian lists تاع beside متاع. [Wikt-dyal] [Wikt-taa] [Wikt-mtaa]
- **Not sourced:** the full Moroccan pronoun set, including the نتا / نتي gender split. Ask a native speaker.
## 6. Spelling habits
- **ق in Morocco** splits lexically into /q/ and /g/ in Casablanca, and stays /q/ in Rabat, Fez, and Marrakesh. There is **no glottal-stop ق** in Moroccan (that is a Cairo and Levant feature). [MoroccoWiki]
- **/g/ is written ڭ** in Moroccan (أڭادير، الڭروج); sources vary between ڭ and ݣ and call ڭ preferred. Algerian writes ق as **ڨ**. [Gaf] [AlgeriaWikiAr]
- **ما attached or separate** (مافهمتش vs ما فهمتش): both are attested and there is **no standard**. Be internally consistent; that is why normalization projects like NOTA and CODA* exist. [MANorm] [NOTA]
- **Arabizi is the normal informal script**, especially online: Moroccan uses 2 = ء، 3 = ع، 7 = ح، 9 = ق (plus 5). Tunisian Arabizi is the social-media norm (the TUNIZI dataset is 100k comments), and Algerian romanized text has its own treebank (NArabizi), with heavy French and Amazigh code-switching. **No source gives per-country script percentages, so don't quote one.** Write in Arabic script unless the user writes in Arabizi. [MoroccoWikiAr] [MANorm] [TUNIZI] [NArabizi]
- **French loans in Arabic script** are normal: تيلفازة، طونوبيل (Moroccan); طونوبيل، كوزينة، فرشيطة (Algerian). Algerian keeps French phonemes in loans. [MoroccoWiki] [AlgeriaWiki]
## 7. MSA leaks - kill on sight
| Leak (MSA) | Moroccan | Algerian | Tunisian |
|---|---|---|---|
| سوف / سـ | غادي | رايح | باش |
| لم / لن | ما...ش | ما...ش | ما...ش |
| ليس | ماشي | (unsourced) | موش / مش |
| الذي / التي | اللي | اللي | إلي |
| هذا | هاد | had | هاذا |
| ماذا | شنو / آش | واش | شنوة / آش |
| لماذا | علاش | علاش / علاه | علاش |
| أين | فين | وين | فين / وين |
| كيف | كيفاش | كيفاش | كيفاش |
| متى | فوقاش / إمتى | وقتاش | وقتاش |
| الآن | دابا | (unsourced) | توّة |
| جداً / كثير | بزاف | (unsourced) | برشا |
| يريد | بغى | - | - |
| يجب | خاص / خاصني | - | - |
| يفعل | دار / يدير (**Moroccan only**) | - | - |
| فقط | - | - | برك |
| لا يوجد | ماكاينش | ماكاش | مافمّاش |
| قام بـ + verbal noun | plain verb | plain verb | plain verb |
Sources: [MoroccoWiki] [AlgeriaWiki] [TunisiaWiki] [Wikt-daba] [Wikt-barsha] [Wikt-balzaf] [Wikt-bgha] [Wikt-khass] [Wikt-dar] [Wikt-barek]. Dashes mean the source didn't cover it, not that the word is wrong.
**دابا is essentially unique to Moroccan**, so it is also a reliable detection marker. [Wikt-daba]
## 8. French and English tech terms
- **The Maghreb runs on French where the Mashreq runs on English.** Moroccan, Algerian, and Tunisian Arabic have absorbed a large French loan layer, and sentence-internal code-switching is documented in all three countries. Don't write Mashreqi-English tech copy for a Maghrebi audience by default. [Playaling] [Lund] [Albany] [PMC]
- **Borrowed tech items are overwhelmingly nouns**: one Tunisian study counted 268 loanword instances as 236 nouns, 24 verbs, 8 adjectives, with a growing list of technical terms that have no Tunisian equivalent. [Albany]
- **French verbs do take Arabic morphology in Moroccan** (loan infinitives under perfective morphology), **but no source gave an attested form**, so this guide ships the pattern without examples. Don't invent ones like تيليفونا or كونيكتا. [Academia-FrenchVerbs]
- **Which language dominates tech vocabulary per country is unsourced.** Ask the user, or keep the term in the script the brand already uses.
## 9. Worked rewrites (MSA -> Moroccan)
Grammar forms come from the sections above; ordinary content words are not individually sourced.
**1. Obligation + bare verb** (يجب, أن)
- MSA: يجب أن أراجع الـ logs قبل الـ deploy.
- Moroccan: خاصني نشوف الـ logs قبل الـ deploy.
**2. Habitual with كـ-, and the n- prefix** (أعمل)
- MSA: أكتب الـ tests كل يوم.
- Moroccan: كنكتب الـ tests كل يوم.
- نكتب alone is "I write" in the Maghreb; كنكتب is the habitual.
**3. Existential negation** (لا يوجد)
- MSA: لا يوجد أي خطأ في الـ log.
- Moroccan: ماكاينش أي error فالـ log.
- Algerian: ماكاش أي error. Tunisian: مافمّاش أي error.
**4. Future + "now"** (سوف, الآن) and the country trap
- MSA: سوف أكتب التحديث الآن.
- Moroccan: غادي نكتب الـ update دابا.
- Tunisian: باش نكتب الـ update توّة.
- Writing باش in the Moroccan line would turn "I will write" into "so that I write".
## 10. Deliberately NOT included (unverified)
Don't generate these, they are not attested in the sources checked: the negative imperative (ما تمشيش) and negated future (ماغاديش); Algerian ماشي / ماهوش, غادي, حـ, دروك ("now"), بزاف, and دار; Moroccan تنـ as a northern/Fessi form (the sources actually contradict this); a Moroccan لا- preverb; the participles جاي / واكل; a bare imperfect after بغيت / لازم / نقدر; داكشي and demonstrative position; the full Moroccan pronoun set including نتا / نتي; بلي as a complementizer; ژ; أيضاً -> زعما or حتى (زعما actually means "supposedly"); يستطيع -> نقدر; فقط -> غير or بس; Tunisian حب for "want" (only partly attested); and anything Libyan **as Maghrebi** (Libyan has no column here; for a Libyan request see the uncovered-dialect rule in SKILL.md).
## Feedback
**Found something wrong or missing?** Arabic dialects vary by city, generation, and family, and this guide will not match every speaker. Tell Majd: majd.ghithan20@gmail.com, or open an issue or PR at https://github.com/majdghithan/agent-skills.
## Sources
- [MaghrebWiki] https://en.wikipedia.org/wiki/Maghrebi_Arabic · [MoroccoWiki] https://en.wikipedia.org/wiki/Moroccan_Arabic · [AlgeriaWiki] https://en.wikipedia.org/wiki/Algerian_Arabic · [TunisiaWiki] https://en.wikipedia.org/wiki/Tunisian_Arabic
- [MoroccoWikiAr] https://ar.wikipedia.org/wiki/الدارجة_المغربية · [AlgeriaWikiAr] https://ar.wikipedia.org/wiki/لهجة_جزائرية · [Gaf] https://en.wikipedia.org/wiki/Gaf
- [Wikivoyage] https://en.wikivoyage.org/wiki/Tunisian_Arabic_phrasebook · [SciELO] Tunisian negation markers - https://www.scielo.org.mx/scielo.php?script=sci_arttext&pid=S1405-55462018000401223
- [Souag] Souag on kaš / makaš - http://lughat.blogspot.com/2016/02/from-existential-to-indefinite.html · [Ithaca] https://www.ithacaboundlanguages.com/there-are-in-tunisian-arabic/ · [DarijaSchool] https://darijaschool.com/en/negation-in-moroccan-arabic-how-to-say-not-no-longer-never/
- [TUNIZI] https://arxiv.org/abs/2004.14303 · [DODa] https://arxiv.org/abs/2103.09687 · [MANorm] https://arxiv.org/pdf/2206.09167 · [NOTA] https://arxiv.org/abs/2402.12940 · [NArabizi] https://aclanthology.org/2020.acl-main.107/
- [Playaling] https://playaling.com/arabic-and-french/ · [Lund] Morocco AR-FR code-switching - https://lup.lub.lu.se/luur/download?func=downloadFile&recordOId=8569770&fileOId=8569772 · [Albany] Tunisia code-switching - https://scholarsarchive.library.albany.edu/cgi/viewcontent.cgi?article=1004&context=cas_llc_scholar · [PMC] Algerian bilingual code-switching - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4772761/ · [Academia-FrenchVerbs] https://www.academia.edu/37596330/
- Wiktionary: [Wikt-mashi] https://en.wiktionary.org/wiki/ماشي · [Wikt-mush] https://en.wiktionary.org/wiki/موش · [Wikt-kayn] https://en.wiktionary.org/wiki/كاين · [Wikt-ghadi] https://en.wiktionary.org/wiki/غادي · [Wikt-bash] https://en.wiktionary.org/wiki/باش · [Wikt-wash] https://en.wiktionary.org/wiki/واش · [Wikt-daba] https://en.wiktionary.org/wiki/دابا · [Wikt-barsha] https://en.wiktionary.org/wiki/برشا · [Wikt-balzaf] https://en.wiktionary.org/wiki/بالزاف · [Wikt-bgha] https://en.wiktionary.org/wiki/بغى · [Wikt-khass] https://en.wiktionary.org/wiki/خاص · [Wikt-dar] https://en.wiktionary.org/wiki/دار · [Wikt-barek] https://en.wiktionary.org/wiki/برك · [Wikt-shnu] https://en.wiktionary.org/wiki/شنو · [Wikt-fin] https://en.wiktionary.org/wiki/فين · [Wikt-win] https://en.wiktionary.org/wiki/وين · [Wikt-alash] https://en.wiktionary.org/wiki/علاش · [Wikt-kifash] https://en.wiktionary.org/wiki/كيفاش · [Wikt-shkun] https://en.wiktionary.org/wiki/شكون · [Wikt-shhal] https://en.wiktionary.org/wiki/شحال · [Wikt-qaddash] https://en.wiktionary.org/wiki/قداش · [Wikt-dyal] https://en.wiktionary.org/wiki/ديال · [Wikt-taa] https://en.wiktionary.org/wiki/تاع · [Wikt-mtaa] https://en.wiktionary.org/wiki/متاع
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |