<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: salam thabit</title>
    <description>The latest articles on DEV Community by salam thabit (@salamthabet).</description>
    <link>https://dev.to/salamthabet</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4046797%2Ff06dfcdd-d292-4f74-8b6d-2c64a6d385d4.jpg</url>
      <title>DEV Community: salam thabit</title>
      <link>https://dev.to/salamthabet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/salamthabet"/>
    <language>en</language>
    <item>
      <title>Why AI understands formal Arabic but gets lost in dialects</title>
      <dc:creator>salam thabit</dc:creator>
      <pubDate>Sat, 25 Jul 2026 11:53:30 +0000</pubDate>
      <link>https://dev.to/salamthabet/why-ai-understands-formal-arabic-but-gets-lost-in-dialects-29cm</link>
      <guid>https://dev.to/salamthabet/why-ai-understands-formal-arabic-but-gets-lost-in-dialects-29cm</guid>
      <description>&lt;p&gt;Ask an AI chatbot a question in formal Arabic (Fusha) and it answers beautifully. Ask it the same thing in Gazan, Egyptian, or Moroccan dialect — and it stumbles, mistranslates, or misses the point entirely.&lt;/p&gt;

&lt;p&gt;As someone building an Arabic AI newsletter, I run into this every day. Here's what's actually going on under the hood — and why it's a great window into how large language models really work.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Models learn from data — and the data is lopsided
&lt;/h2&gt;

&lt;p&gt;An LLM learns language by reading enormous amounts of text. For English, that's a huge chunk of the internet. For &lt;strong&gt;formal Arabic&lt;/strong&gt;, there's a decent amount (news, books, Wikipedia). But for &lt;strong&gt;dialects&lt;/strong&gt;? Very little is written down — dialects live in speech, voice notes, and casual chats, not in the formal text models train on.&lt;/p&gt;

&lt;p&gt;Less data for a language variety = weaker performance. This is the well-known &lt;strong&gt;"low-resource language"&lt;/strong&gt; problem, and Arabic dialects are a textbook case.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. One language, many "languages"
&lt;/h2&gt;

&lt;p&gt;Arabic isn't one thing. Fusha is the shared formal standard, but everyday speech splits into dialects that can differ more than some European languages do from each other. A model trained mostly on Fusha treats a dialect almost like a foreign language it barely saw.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Tokenization makes it worse
&lt;/h2&gt;

&lt;p&gt;LLMs don't read words — they break text into &lt;strong&gt;tokens&lt;/strong&gt; (chunks). Tokenizers are optimized for the languages they saw most. Arabic script, with its rich morphology and prefixes/suffixes, often gets chopped inefficiently — and dialectal spellings (which aren't standardized) fragment even more. More tokens = more cost and more room for the model to lose meaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters beyond Arabic
&lt;/h2&gt;

&lt;p&gt;This isn't just an Arabic problem. It's a preview of what happens to &lt;strong&gt;any&lt;/strong&gt; under-represented language or community when AI is trained mostly on high-resource data: the technology works brilliantly for some and poorly for others.&lt;/p&gt;

&lt;p&gt;The encouraging part: &lt;strong&gt;open models&lt;/strong&gt; are changing this. When powerful models are released openly, any local team can fine-tune them for their own language and dialects — instead of waiting for a big lab to care. That's real digital sovereignty.&lt;/p&gt;




&lt;p&gt;I write simple Arabic explainers about AI (tokens, embeddings, RAG, and more) over at &lt;strong&gt;&lt;a href="https://ai.salamthabet.com/" rel="noopener noreferrer"&gt;ai.salamthabet.com&lt;/a&gt;&lt;/strong&gt; — making machine learning make sense, one term at a time. If the Arabic-AI intersection interests you, come say hi 👋&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>nlp</category>
    </item>
  </channel>
</rss>
