NewWriter: drafts grounded in confirmed facts, checked before they ship→
Browse documentation

Arabic methodology

How Ellipse handles Arabic: normalization for matching (letters, diacritics, Arabic-Indic digits), aliases and their trust rules, dialect and code-switched prompt variants, answer and citation language, and right-to-left handling.

7 min read

Principles

Arabic is treated as a family of markets and registers, not as one language, and the original text is never altered:

  • Normalization is for matching only. Stored answers keep their original spelling. Normalized forms are derived keys used to compare text.
  • Safe folding first, risky folding only for known names. Orthographic variants that are safe to treat as equal are always folded. Transformations that could change meaning are applied only to aliases you've configured, and at lower confidence.
  • Country is the primary dimension. Markets are countries. Groupings such as GCC, Levant, Maghreb, Nile Valley and Iraq are only for analysis.
  • Humans confirm AI suggestions. Suggested aliases and prompt variants are never used until a person approves them.

Arabic normalization

The strict matching key applies these steps, which are deterministic and give the same result if applied twice:

StepExample
Unicode compatibility normalization and removal of bidirectional control charactersInvisible direction marks removed
Remove diacritics (tashkeel) and Quranic annotation marksإِعْمَار to إعمار
Remove tatweel (the stretching character)داـــماك to داماك
Fold alef variants أ إ آ ٱ to اأفضل to افضل
Fold alef maqsura ى to يمستشفى to مستشفي
Fold Persian yeh ی to ي and Persian keheh ک to كCommon copy-paste variants
Convert Arabic-Indic digits ٠-٩ and Eastern Arabic digits ۰-۹ to 0-9٤٩ to 49
Lowercase Latin letters and collapse spaces

Relaxed candidates are generated only for your configured aliases, never for the answer text as a whole:

  • ta marbuta ة and ha ه treated as equal, only in words of four or more letters,
  • the definite article ال added or removed on the first word (when at least three letters remain),
  • the conjunction و attached to the front, because Arabic writes "and" joined to the next word (so an alias still matches in a list such as "إعمار وداماك").

Matching is done at token boundaries defined by Unicode letters and digits, because the usual word-boundary rules don't work for Arabic script. Arabic aliases shorter than three characters are ignored.

Each match is labelled exact, strict normalized or relaxed normalized, from most to least confident.

Digits, prices and currencies

Arabic-Indic digits are folded to Western digits wherever values are compared, so a price written ٤٩ درهم is recognised as 49 AED. This applies to:

  • finding a wrong value on your own pages when tracing an inaccurate claim,
  • detecting stale facts and facts hidden in images or tabs,
  • comparing server HTML with the rendered page,
  • checking whether a live page now contains a change,
  • recognising figures in Writer drafts that need a source (including the Arabic percent sign ٪).

Value detection recognises $, €, £ and the codes AED, SAR, USD, EUR, GBP, QAR and KWD, as well as درهم, ريال, دينار, د.إ and ر.س.

Aliases and how they're trusted

Aliases are other names for your brand or a competitor: Arabic-script names, legal names, transliterations, Arabizi forms, alternate spellings and abbreviations. Trust depends on where an alias came from:

SourceUsed for matching?
Added by youYes
Imported (for example from the built-in market entity list)Yes
Suggested by AIOnly after a person verifies it

AI alias suggestions propose names people or AI assistants might actually use, each with a type and a confidence from 0 to 1. They're told to suggest names only for the entity itself (not subsidiaries, parents or products), not to invent translations, and not to suggest generic category words on their own. Suggestions that duplicate an existing alias or the entity's own name are dropped.

Brand aliases and competitor aliases are kept apart, and related companies (subsidiaries, parents) are never merged into your brand, so they can't inflate your visibility.

A small curated list of well-known companies in real estate, banking and food delivery in Saudi Arabia, the UAE, Egypt and Morocco, with their common Arabic and Latin names, can be imported to speed up setup. It's a convenience, not an authoritative directory; every imported alias stays editable.

Arabic prompt variants

For an existing prompt, Ellipse can generate the ways real users in each target market would ask it:

  • one Modern Standard Arabic variant, shared across markets,
  • a colloquial variant for each market's dialect (for example Saudi, Emirati, Egyptian, Moroccan Darija),
  • an Arabic-English code-switched variant where that's common (for example in the Gulf), and an Arabic-French one where that's common (the Maghreb),
  • a French variant for markets where French queries matter,
  • an Arabizi variant (Arabic written in Latin letters with digits such as 3, 5 and 7) where it's genuinely used.

Variants must keep the same intent (product, place, price constraints, buying versus learning), keep brand names unchanged, sound natural rather than like a textbook, avoid exaggerated slang, add no new constraints, and stay under 300 characters. Duplicates and copies of the original are dropped, and variants are saved inactive until you review and activate them.

How Arabic prompts are run

When a prompt runs in Arabic, the instruction (أجب باللغة العربية), "answer in Arabic", is appended so the engine answers in Arabic even when its interface defaults to English. The market's location phrase is appended as well (it's currently written in English, such as "in Saudi Arabia"). Code-switched prompts are sent exactly as written, because the mix of languages is the point.

Prompts are classified by script: Arabic when at least 85% of the letters are Arabic, Latin when 15% or fewer are, and mixed otherwise. A Latin-script prompt is flagged as likely Arabizi when at least one word, and at least 10% of words, contain digits used as letters (2, 3, 5, 6, 7 or 9) inside letter sequences; ordinary text with numbers, like "top 10 CRMs 2025", isn't flagged.

For markets where in-country collection isn't possible (Lebanon, Iraq, Palestine, Syria and Sudan), runs happen without country targeting and can't be described as in-country answers.

Answer language and citation language

Every answer's language is measured from the share of Arabic and Latin letters. With fewer than 20 letters it's unknown. Mixed-script answers are labelled mixed. Latin-script answers are split into English, French or other using common function words, and are never forced into English. This shows, for example, whether Arabic prompts actually get Arabic answers.

Every cited source gets a likely language from its title and snippet script, Arabic characters encoded in its URL, a locale segment such as /ar/ or ?lang=fr, or function words, and is labelled unknown when the signals are weak. Together these show whether engines answer Arabic questions from Arabic sources or English ones.

Arabic on your website and right-to-left text

The website crawl reports Arabic-specific problems conservatively (not having Arabic pages is never flagged, because it depends on your markets):

  • broken hreflang annotations,
  • Arabic text that comes out corrupted after extraction, which AI crawlers may also see,
  • Arabic pages that don't declare lang="ar",
  • Arabic pages materially thinner than their counterparts in the main language.

In the Writer, the chat replies in Modern Standard Arabic to Arabic requests unless told otherwise, fields and previews set their text direction automatically, and [NEEDS FACT: ...] markers are isolated so an English marker doesn't flip the direction of an Arabic paragraph. See Working with Arabic brands.

Limitations

  • The sentiment lexicon is English-only; Arabic sentiment relies on the AI analysis.
  • Relaxed matching trades precision for recall and is reported at lower confidence. Very short or common Arabic words used as brand names remain hard to match safely.
  • Dialect and Arabizi variants are AI-generated and need a native speaker's review before you rely on them.

Something unclear or out of date? Tell us.