---
title: "Arabic dialects and LLMs - Gulf, Egyptian, Levantine"
description: "How LLMs cope with Gulf, Egyptian and Levantine Arabic: where they fail, how to prompt for dialect, how to test it, and what BroadNet reports for Qwen3.8 27B."
url: https://broadrouter.com/blog/arabic-llm-gulf-egyptian-dialects/
lang: en
updated: 2026-11-14
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Gulf, Egyptian and Levantine Arabic: how LLMs handle dialects

By the BroadNet Inference team · 6 min read · Published 2026-11-14

LLMs handle Arabic dialects unevenly: they usually understand Egyptian and Gulf Arabic better than they write them, and quality drops for rarer dialects. Test understanding and writing separately on your own messages. In BroadNet's own tests, Qwen3.8 27B understood Gulf and Egyptian dialects and wrote fluent Arabic. It costs $0.175 per 1M input tokens.

## Key takeaways

-   Understanding a dialect and writing it well are different skills. Score them separately.
-   BroadNet reports that Qwen3.8 27B understood Gulf and Egyptian dialects in its tests. BroadNet does not publish a Levantine result, so test Levantine yourself.
-   For most customer-facing products, reply in simple Modern Standard Arabic even when the customer writes in dialect.
-   Name the dialect, the country and the register in the system prompt. "Reply in Arabic" is not enough.
-   Build a small test set per dialect from real, anonymised messages before choosing a model.

**On this page**

1.  How different are the dialects, really?
2.  Where do LLMs fail on Arabic dialects?
3.  What has BroadNet tested on Arabic dialects?
4.  How do you prompt an LLM for a specific dialect?
5.  Should you reply in dialect at all?
6.  How do you test dialect handling in a day?
7.  What about dialect in voice notes?

LLMs usually understand Gulf and Egyptian Arabic better than they write them, and do worse on rarer dialects. A customer in Riyadh, one in Cairo and one in Beirut can all ask “what do you want?” in three different sentences, and a model that handles Modern Standard Arabic (MSA) well can still misread them. Test understanding and writing separately.

This post covers what changes between the big dialect groups, where LLMs tend to fail, and how to test a model before you trust it with real customers.

## How different are the dialects, really?

Very different in everyday words, much closer in formal vocabulary. Research corpora show the scale: the [MADAR corpus](https://aclanthology.org/L18-1535/) translated the same travel sentences into the dialects of 25 Arab cities. The table shows a few common phrases. The MSA column is what a textbook would print; the others are typical spoken and texted forms. Spelling varies from person to person, which is part of the problem.

| Meaning | MSA | Gulf (Saudi / Emirati) | Egyptian | Levantine |
| --- | --- | --- | --- | --- |
| What do you want? | ماذا تريد؟ | وش تبي؟ / شو تبي؟ | عايز إيه؟ | شو بدّك؟ |
| How are you? | كيف حالك؟ | شلونك؟ | إزيك؟ | كيفك؟ |
| now | الآن | الحين | دلوقتي | هلّق |
| I don’t know | لا أعرف | ما أدري | مش عارف | ما بعرف |
| very / a lot | جداً | وايد | أوي | كتير |

Three patterns matter for LLMs:

-   **Function words change.** Question words, negation and “want” differ completely between dialects. These are short, frequent words that decide the meaning of the sentence, so misreading one flips the intent.
-   **Spelling is not standard.** Dialects are mostly spoken, so people write them the way they sound. The same word can appear with different letters, with or without hamza, or in Latin script ([Arabizi](https://broadrouter.com/blog/arabizi-llm-handling/)).
-   **[Code-switching](https://broadrouter.com/glossary/code-switching/) is normal.** Gulf business messages mix in English product names; Levantine and Maghrebi speakers mix in French. A model needs to cope with both scripts in one sentence.

## Where do LLMs fail on Arabic dialects?

Models learn from the text they see, and far less public text exists for smaller dialects such as Emirati or Sudanese than for Modern Standard Arabic. In practice that shows up as a few recurring errors:

1.  **Reading a dialect word as a different MSA word.** Gulf “أبي” (I want) looks like MSA “أبي” (my father). Context usually resolves it, but small models sometimes do not.
2.  **Answering the wrong intent.** A short Egyptian complaint such as “الطلب لسه موصلش” (the order still hasn’t arrived) needs the model to know that “لسه” means “still” and “موصلش” is a negated verb.
3.  **Writing a mixed dialect.** Asked to reply “in Gulf Arabic”, weaker models produce a mix of Egyptian, Levantine and MSA that no native speaker would write. This is more common than misunderstanding.
4.  **Over-correcting.** Some models “fix” the customer’s dialect into MSA when you asked them to quote it, which breaks extraction tasks.

The general rule: **models understand dialects better than they write them.** Plan your product around that.

## What has BroadNet tested on Arabic dialects?

BroadNet publishes its own Arabic check on its [pricing page](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-arabic-llm-gulf-egyptian-dialects&utm_content=body). For [Qwen3.8 27B](https://broadrouter.com/models/qwen3.8-27b/), it reports:

-   fluent Arabic writing,
-   Gulf and Egyptian dialects understood,
-   accurate Arabic–English translation.

That is what BroadNet states, and nothing more. It does not publish a Levantine, Iraqi or Maghrebi result, and it does not publish a dialect-writing score. If Levantine customers matter to you, test them yourself with the method below.

Qwen3.8 27B takes text and images, supports tools and structured output, reasons before answering and has a 262,144-token context. Per 1M tokens it costs $0.175 for input and $2.17 for output. Compare the other chat models on the [pricing page](https://broadrouter.com/pricing/), and see [choosing an LLM API for Arabic](https://broadrouter.com/blog/choosing-an-llm-for-arabic/) for the wider checklist that also covers writing, translation and documents.

## How do you prompt an LLM for a specific dialect?

Say which dialect you expect, which one you want back and how formal to be. A system prompt that works well for a Saudi retail inbox:

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://inference.broadnet.ai/v1", api_key=os.environ["BROADNET_API_KEY"])

system = (
    "You are a customer-service assistant for a Saudi online store. "
    "Customers write in Gulf Arabic (often Saudi), MSA, English or Arabizi. "
    "Understand all of them. Reply in simple, polite Modern Standard Arabic, "
    "in two or three short sentences. If the customer writes in English, reply in English. "
    "Never invent order details."
)

response = client.chat.completions.create(
    model="broadnet/qwen3.8-27b",
    max_tokens=2000,  # the model reasons first; leave room for the answer
    messages=[
        {"role": "system", "content": system},
        {"role": "user", "content": "السلام عليكم، طلبي للحين ما وصل، وش السالفة؟"},
    ],
)
print(response.choices[0].message.content)
```

The customer message is Gulf Arabic: “Hello, my order still hasn’t arrived, what’s going on?” The words “للحين” (still) and “وش السالفة” (what’s the story / what’s going on) are Gulf forms. A good reply acknowledges the delay in MSA and asks for the order number.

A few more prompt habits that help:

-   **Name the country, not only the region.** “Gulf Arabic” covers Saudi, Emirati, Kuwaiti, Qatari, Bahraini and Omani speech, which differ. If you know the market, say it.
-   **Ask for a dialect label in extraction tasks.** For routing or analytics, have the model return `{"dialect": "gulf" | "egyptian" | "levantine" | "msa" | "other", "intent": ...}` using [structured output](https://broadrouter.com/blog/structured-output-json-schema/). It is a cheap way to learn who your customers are.
-   **Keep the instructions in one language.** English instructions with Arabic content work well on most models. Arabic instructions also work; mixing both in one system prompt tends to blur the register. More on this in [Arabic prompt engineering](https://broadrouter.com/blog/arabic-prompt-engineering/).

## Should you reply in dialect at all?

For most businesses, no. Simple MSA (sometimes called “white” or neutral Arabic) is understood by every Arabic reader, reads as professional and avoids the risk of a reply that sounds like the wrong country. Dialect replies make sense for informal brands, marketing copy written for one market, and voice products where MSA sounds stiff. If you go that way, have native speakers of that exact dialect review a sample of outputs every week.

## How do you test dialect handling in a day?

1.  **Collect real messages.** Take 30 to 50 anonymised messages per dialect from your inbox, chat logs or [transcribed voice notes](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/). Remove names, phone numbers and order numbers.
2.  **Label the intent.** For each message, write the correct intent and any facts the model should extract (order number, product, date).
3.  **Test understanding.** Ask each candidate model to return the intent and fields as JSON. Score exact matches. This is the number that decides whether routing works.
4.  **Test writing.** For ten messages per dialect, ask for a reply. Have a native speaker grade each reply 1–3 for correctness, tone and naturalness. Do not grade dialect you do not speak.
5.  **Check cost and speed.** Record `usage.prompt_tokens`, `usage.completion_tokens` and latency per call. Dialect text can tokenise differently from MSA, so measure rather than guess; the free [Arabic token counter](https://broadrouter.com/tools/arabic-token-counter/) gives a quick first estimate.
6.  **Repeat for each model.** Run the same set on [Qwen3.8 27B](https://broadrouter.com/models/qwen3.8-27b/), [DeepSeek V4.1 Flash](https://broadrouter.com/models/deepseek-v4.1-flash/) and [GLM 5.3](https://broadrouter.com/models/glm-5.3/). All three use the same OpenAI-compatible API, so only the model id changes.

Qwen3.8 27B, DeepSeek V4.1 Flash and GLM 5.3 work after a top-up; among chat models, the free $5 starting credit only covers [BroadNet Gemma 4 VL 26B](https://broadrouter.com/models/gemma-4-vl-26b/), which is worth adding as a low-cost baseline. A useful outcome is often a split setup: one model for understanding and routing, with replies drafted in MSA.

## What about dialect in voice notes?

If your customers send voice notes, dialect handling starts earlier, in speech to text. A transcription model can mishear a dialect word before the LLM ever sees it. BroadNet reports a dialect [word error rate](https://broadrouter.com/glossary/word-error-rate/) of 23.4 for [BroadNet Transcribe Arabic](https://broadrouter.com/models/cohere-transcribe-arabic/), against 3.8 on FLEURS read speech; see [Arabic WER explained](https://broadrouter.com/blog/arabic-asr-wer-explained/) for what those numbers mean. Test the whole chain, voice note to reply, not each piece alone.

Free tools for this

-   [Arabic token counter](https://broadrouter.com/tools/arabic-token-counter/) Arabic vs English token counts per tokenizer: the "Arabic tax" in tokens and money.
-   [Arabic text normalizer](https://broadrouter.com/tools/arabic-text-normalizer/) Tashkeel, tatweel, alef, ya, ta marbuta, digits and invisible characters, with a matching Python function.
-   [Speech-to-text cost calculator](https://broadrouter.com/tools/speech-to-text-cost-calculator/) Hours, calls or voice notes to a monthly transcription bill, against your current provider.

[All free tools](https://broadrouter.com/tools/)

## Terms in this article

[Dialectal Arabic](https://broadrouter.com/glossary/dialectal-arabic/)

Dialectal Arabic is the everyday spoken Arabic of a region or city, such as Egyptian, Gulf, Levantine or Maghrebi Arabic. Dialects differ from Modern Standard Arabic in sounds, words and grammar, have no standard spelling, and are increasingly written online, which makes them harder for language models.

[Modern Standard Arabic (MSA)](https://broadrouter.com/glossary/msa/)

Modern Standard Arabic (MSA) is the standardized form of Arabic used in writing, news, education and formal speech across the Arab world. It is nobody's native everyday language: people speak regional dialects such as Egyptian or Gulf Arabic and switch to MSA in formal settings.

[Token](https://broadrouter.com/glossary/token/)

A token is the unit of text a language model reads and writes: a word, part of a word, a punctuation mark or a byte sequence produced by the model's tokenizer. LLM APIs count, limit and usually bill usage in tokens.

[Code-switching](https://broadrouter.com/glossary/code-switching/)

Code-switching is the use of two or more languages, or varieties of one language, within the same conversation or sentence, in speech or writing. Examples include Arabic speakers mixing English words into dialect, or moving between Modern Standard Arabic and their dialect.

[Structured output](https://broadrouter.com/glossary/structured-output/)

Structured output is an LLM API feature that constrains a model's reply to a format the developer specifies, usually a JSON Schema, so code can parse it reliably. It is stricter than JSON mode, which guarantees valid JSON but not a particular shape.

[System prompt](https://broadrouter.com/glossary/system-prompt/)

A system prompt is the instruction text an application sends to a language model ahead of the conversation, usually as a message with the system or developer role. It sets the model's role, rules, tone and output format, and the model is meant to follow it over conflicting user messages.

[Tool calling](https://broadrouter.com/glossary/tool-calling/)

Tool calling, also called function calling, is an LLM API feature in which the model returns a structured request to run a function the developer has defined, with JSON arguments. The application runs the function and sends the result back; the model never runs code itself.

[Word error rate](https://broadrouter.com/glossary/word-error-rate/)

Word error rate (WER) is the standard accuracy measure for speech recognition: the number of word substitutions, deletions and insertions needed to turn a transcript into the correct reference, divided by the number of words in the reference. Lower is better.

## Questions

### Should my chatbot reply in the customer's dialect?

Usually not by default. Simple Modern Standard Arabic is understood everywhere and looks professional. Use dialect replies only where your brand voice calls for it, and only after native speakers have reviewed the output.

### Which BroadNet model did BroadNet test on Arabic dialects?

Qwen3.8 27B. BroadNet reports fluent Arabic writing, understanding of Gulf and Egyptian dialects, and accurate Arabic–English translation. It has not published a Levantine or Maghrebi result.

### How many test messages do I need per dialect?

Thirty to fifty real messages per dialect is enough to see clear differences between models. Add more for the dialect most of your customers use.

### Do dialect messages cost more tokens?

Possibly. Token counts depend on the tokenizer and spelling, and dialect text often has non-standard spelling. Paste samples into a token counter and confirm with prompt\_tokens on your own messages rather than assuming.

### Can an LLM understand Egyptian Arabic?

Often, but check it on your own messages. BroadNet reports that Qwen3.8 27B understood Egyptian and Gulf Arabic in its tests; other models vary. Writing dialect is usually less reliable than reading it, so score intent accuracy and reply quality separately on 30 to 50 real messages.

## Keep reading

-   [Choosing an LLM API for Arabic: what to test](https://broadrouter.com/blog/choosing-an-llm-for-arabic/)
-   [Arabic prompt engineering: register, RTL, numerals and mixed text](https://broadrouter.com/blog/arabic-prompt-engineering/)
-   [Arabizi and LLMs: handling Franco-Arabic with numbers like 3 and 7](https://broadrouter.com/blog/arabizi-llm-handling/)
-   [Arabic ASR word error rate (WER) explained](https://broadrouter.com/blog/arabic-asr-wer-explained/)
-   [Add diacritics to Arabic text with an LLM: prompt, checks, DER](https://broadrouter.com/blog/arabic-diacritization-llm/)
-   [Arabic grammar and spelling correction with an LLM: a how-to](https://broadrouter.com/blog/arabic-grammar-spelling-correction-llm/)
-   [Guide: Read Arabic invoices and receipts with a vision model](https://broadrouter.com/guides/read-arabic-invoices-with-vision/)
-   [Guide: Transcribe WhatsApp voice notes to text with an API](https://broadrouter.com/guides/transcribe-whatsapp-voice-notes/)

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-arabic-llm-gulf-egyptian-dialects&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference pricing page, Qwen3.8 27B "Tested in Arabic" note (fetched 2026-11-14)](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-arabic-llm-gulf-egyptian-dialects&utm_content=sources)
-   [BroadNet Inference machine-readable prices, pricing.json (fetched 2026-11-14)](https://inference.broadnet.ai/pricing.json?utm_source=broadrouter&utm_medium=referral&utm_campaign=blog-arabic-llm-gulf-egyptian-dialects&utm_content=sources)
-   [BroadNet model catalogue, Cohere Transcribe Arabic WER figures reported by BroadNet (fetched 2026-11-14)](https://www.broadnet.ai/inference/models)
-   [Bouamor et al., The MADAR Arabic Dialect Corpus and Lexicon (LREC 2018; fetched 2026-11-14)](https://aclanthology.org/L18-1535/)
-   [Varieties of Arabic, overview (fetched 2026-11-14)](https://en.wikipedia.org/wiki/Varieties_of_Arabic)
