Skip to content

Arabic dialect detector

Which Arabic is this text? Gulf, Egyptian, Levantine, Maghrebi or Standard.

  • Checks your page
  • Reads:HTML
  • 1 rule
  • Last updated

Reads: HTML

Free, no sign-up.

What we keep

We keep the address exactly as you send it, including anything after a “?”, and its report shows it. Anyone who has the report’s link can open it, so leave out tokens, keys and personal data.

The result appears here

Enter your page’s address and press “Check the page”. This is what the tool runs on it:

  • The page's dialect does not fit the country or the rest of the pagenot started

Arabic dialect detector

0 of 4000 characters

The text goes to our own Arabic language service and does not leave our servers. It stays in memory for the few seconds the answer takes and is then deleted: we do not store or log it.

Checking

What it checks

  • The variety the text is closest to: Modern Standard, Gulf, Egyptian, Levantine or Maghrebi, with each one's share of the text's sentences.
  • That the text does not mix two dialects, and that the headings do not speak in a different register from the text under them.
  • That the dialect is the one of the country the page points to by two different kinds of evidence (domain, language, currency, calling code). A Gulf text on a page for an Egyptian shop, or the other way round, looks copied from another market.
  • We name a dialect only when the model is sure (70% of the probability over the sentences and half of them won); where it is not, we say the model is not sure.

Example

WrongHTML
<p>شلونك يا غالي؟ وايد عندنا عطور حلوة، وإذا تبغى عود ممتاز الحين تواصل معنا ونوصله لك بسرعة.</p>
RightHTML
<p>ازاي تختار العطر المناسب؟ عندنا عطور حلوة اوي، ولو عايز عود ممتاز دلوقتي كلمنا ونوصله لك بسرعة.</p>

How to fix

  • Choose one voice for the brand: plain Modern Standard suits every market, and a local dialect suits one.
  • If you choose a dialect, choose the one of the country you serve, and use the same words in the headings and the text.
  • Read what you copied from another country's site or from a translator: it may carry its dialect with it.
  • Name the page's market in its language tag, so that readers and checks know which country you address:
HTML
<html lang="ar-SA" dir="rtl">

FAQ

No, it is a choice of tone. But a tone that changes between heading and text, or a dialect that is not the one of the country you address, looks unintended.

A page with 80 Arabic words or more, and it reads sentences, not words. On short text we say there is too little.

The CAMeL model we use tells six apart: Beirut, Cairo, Doha, Rabat, Tunis and Modern Standard. We join Rabat and Tunis as Maghrebi, and what sounds Gulf counts as Gulf.

To our own Arabic language service, where it stays in memory for the few seconds the answer takes and is then deleted. We do not store or log it.

How we measure

Last updated Methodology and scoring

We split the text into sentences (at least eight words each and at most sixty) and CAMeL's model (Beirut, Cairo, Doha, Rabat, Tunis, Modern Standard) reads each one; we add their probabilities, weighted by words. For a page the word list decides where it finds a clear dialect (three telling words at least, a fifth of all the telling words), and otherwise the model decides if it is sure.