---
title: "What is Arabic dialect identification (ADI)? NADI and LLMs"
description: "Arabic dialect identification labels text or speech by dialect, such as Egyptian or Gulf. How NADI and MADAR frame the task, and how to label dialect with an LLM."
url: https://broadrouter.com/glossary/arabic-dialect-identification/
lang: en
updated: 2026-11-15
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Arabic dialect identification

Updated 2026-11-15

Arabic dialect identification is the task of deciding which Arabic variety a text or recording is in, such as Egyptian, Gulf, Levantine, Maghrebi or Modern Standard Arabic, at the level of region, country or city. It is used to route messages, pick prompts and split evaluation sets.

Also called: dialect identification, dialect detection, ADI, NADI

Before you can answer a user in their dialect, you have to know which dialect they wrote in. That is dialect identification.

## How it works

The research community measures this through the NADI shared tasks (Nuanced Arabic Dialect Identification). NADI 2020 used tweets covering 100 provinces in 21 Arab countries, with a country-level subtask and a province-level one. NADI 2024 cast dialect identification as a multi-label task, since one sentence can be valid in several dialects, and added a subtask on the level of dialectness. The best Subtask 1 system scored 50.57 F1, and the organizers write that dialect identification remains challenging.

The MADAR corpus (Bouamor et al., 2018) is a common resource: the same travel-domain sentences translated into 25 city dialects. 2,000 sentences exist in all 25; 10,000 more exist for Doha, Beirut, Cairo, Tunis and Rabat. Parallel data like this lets you see how the same meaning is written in each place.

In practice, most products need a coarser label. A workable set is:

| Label | Covers |
| --- | --- |
| `msa` | Modern Standard Arabic |
| `gulf` | Saudi, Emirati, Kuwaiti, Qatari, Bahraini, Omani |
| `egyptian` | Egyptian |
| `levantine` | Syrian, Lebanese, Jordanian, Palestinian |
| `maghrebi` | Moroccan, Algerian, Tunisian, Libyan |
| `other_or_unclear` | Iraqi, Yemeni, Sudanese, mixed or too short |

An LLM prompt for this asks for one JSON object: the label, a confidence, and the words that gave it away. For example, the message عايز أغير الباقة would come back as:

```json
{"dialect": "egyptian", "confidence": "high", "cues": ["عايز"]}
```

Asking for cues makes errors easy to review: if the cue is an MSA word, the label is suspect.

## Why it matters

-   **Routing.** Send Gulf customers to Gulf agents, or switch the reply prompt to the user’s dialect.
-   **Evaluation.** Split speech and chat test sets by dialect. A single average hides the weakest group, as the [dialect speech recognition post](https://broadrouter.com/blog/arabic-dialect-speech-recognition/) shows.
-   **Analytics.** Know which dialects your users actually write before you invest in one.

Mixed messages are common. Users switch between dialect, MSA and English in one line, which is [code-switching](https://broadrouter.com/glossary/code-switching/); keep an “unclear” label rather than forcing a guess.

## On BroadNet Inference

BroadNet has no dialect identification endpoint. You can build one on POST /v1/chat/completions. BroadNet’s API reference documents structured output for [GLM 5.3](https://broadrouter.com/models/glm-5.3/) and [Qwen3.8 27B](https://broadrouter.com/models/qwen3.8-27b/), which suits a fixed label list; see [structured output](https://broadrouter.com/glossary/structured-output/). BroadNet reports testing Qwen3.8 27B with Gulf and Egyptian dialects understood. BroadNet does not publish dialect identification accuracy for any model, so label 100 or so of your own messages by hand and measure the model against them before relying on it.

The [Arabic text classification post](https://broadrouter.com/blog/arabic-text-classification-llm/) covers prompts, label lists and scoring for this kind of task, and [dialectal Arabic](https://broadrouter.com/glossary/dialectal-arabic/) explains what the labels mean.

## Questions

### How accurate is Arabic dialect identification?

It depends on granularity and text length. In NADI 2024 the best system scored 50.57 F1 on multi-label dialect identification, and the organizers conclude the task remains challenging. Region-level labels on longer messages are easier than country or city labels on short ones.

### Can one message have more than one dialect?

Yes. Short or neutral sentences can be valid in several dialects, which is why NADI 2024 cast dialect identification as a multi-label task. Allow an "unclear" or multi-label answer.

### Do I need a dedicated classifier?

Not to start. An LLM with a fixed label list is quick to set up. Measure it on a hand-labelled sample; switch to a trained classifier if volume or accuracy demands it.

## See also

-   [Dialectal Arabic](https://broadrouter.com/glossary/dialectal-arabic/) (term)
-   [Modern Standard Arabic (MSA)](https://broadrouter.com/glossary/msa/) (term)
-   [Code-switching](https://broadrouter.com/glossary/code-switching/) (term)
-   [Structured output](https://broadrouter.com/glossary/structured-output/) (term)
-   [LLM-as-a-judge](https://broadrouter.com/glossary/llm-as-judge/) (term)
-   [Eval (LLM evaluation)](https://broadrouter.com/glossary/eval/) (term)
-   [LLM benchmark](https://broadrouter.com/glossary/llm-benchmark/) (term)
-   [Gulf, Egyptian and Levantine Arabic: how LLMs handle dialects](https://broadrouter.com/blog/arabic-llm-gulf-egyptian-dialects/) (article)
-   [Arabic text classification with an LLM: sentiment, intent, triage](https://broadrouter.com/blog/arabic-text-classification-llm/) (article)
-   [Arabic dialect speech recognition: Gulf, Egyptian, Levantine, Maghrebi](https://broadrouter.com/blog/arabic-dialect-speech-recognition/) (article)

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=glossary-arabic-dialect-identification&utm_content=page-cta) ·

**Sources**

-   [Abdul-Mageed et al., NADI 2024: The Fifth Nuanced Arabic Dialect Identification Shared Task (ArabicNLP 2024, ACL Anthology) (checked 2026-11-15)](https://aclanthology.org/2024.arabicnlp-1.79/)
-   [Abdul-Mageed, Zhang, Bouamor and Habash, NADI 2020: The First Nuanced Arabic Dialect Identification Shared Task (WANLP 2020, ACL Anthology) (checked 2026-11-15)](https://aclanthology.org/2020.wanlp-1.9/)
-   [Bouamor et al., The MADAR Arabic Dialect Corpus and Lexicon (LREC 2018, ACL Anthology) (checked 2026-11-15)](https://aclanthology.org/L18-1535/)
-   [BroadNet Inference API reference, models (tools and structured output) (checked 2026-11-15)](https://inference.broadnet.ai/docs?utm_source=broadrouter&utm_medium=referral&utm_campaign=glossary-arabic-dialect-identification&utm_content=sources)
