<?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: Mouhamed Youssef</title>
    <description>The latest articles on DEV Community by Mouhamed Youssef (@yousstech).</description>
    <link>https://dev.to/yousstech</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%2F4272858%2Faa762b94-6bc8-4eaf-9751-aeb204c196cc.jpg</url>
      <title>DEV Community: Mouhamed Youssef</title>
      <link>https://dev.to/yousstech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yousstech"/>
    <language>en</language>
    <item>
      <title>How we built a dataset you can trust for a language AI still ignores</title>
      <dc:creator>Mouhamed Youssef</dc:creator>
      <pubDate>Sun, 29 Nov 2026 19:16:37 +0000</pubDate>
      <link>https://dev.to/yousstech/how-we-built-a-dataset-you-can-trust-for-a-language-ai-still-ignores-3e93</link>
      <guid>https://dev.to/yousstech/how-we-built-a-dataset-you-can-trust-for-a-language-ai-still-ignores-3e93</guid>
      <description>&lt;p&gt;Millions of people speak Pular. Ask a modern AI model to translate a simple Pular sentence and you will usually get something confident and wrong.&lt;/p&gt;

&lt;p&gt;The reason is not the models. It is the data. Large language models learn from text, and for most of the world's languages there is very little checked, parallel text available: a sentence in the language, next to its correct meaning in another one.&lt;/p&gt;

&lt;p&gt;So we built Pular Lab, a small platform where Pular speakers translate one short sentence at a time into English, French or Arabic. The goal: an open, checked dataset that computers can finally learn from. First milestone: 5,000 sentences.&lt;/p&gt;

&lt;p&gt;This post is not about the UI. It is about the part that took the most thought: how do you trust answers from strangers on the internet?&lt;/p&gt;

&lt;p&gt;The real problem: anyone can type anything&lt;br&gt;
Collecting translations is easy. A form and a database will do it in an afternoon.&lt;/p&gt;

&lt;p&gt;But a dataset is only as good as its worst rows. If 10% of the translations are rushed, copied or machine-translated, a model trained on it learns those mistakes too. And for a low-resource language, there is no "big clean corpus" to dilute the bad data.&lt;/p&gt;

&lt;p&gt;Here is what can go wrong with crowdsourced translations:&lt;/p&gt;

&lt;p&gt;People click through fast to "help" without really reading&lt;br&gt;
People paste the Pular sentence back as the "translation"&lt;br&gt;
People run the sentence through a machine translator and paste the result&lt;br&gt;
Spam and links&lt;br&gt;
Honest mistakes from people who are not sure&lt;br&gt;
Our answer was not one clever trick. It is four layers, each catching what the previous one misses.&lt;/p&gt;

&lt;p&gt;Layer 1: automatic checks (the cheap filter)&lt;br&gt;
Every answer goes through simple rules before a human ever sees it. An answer is flagged when it is:&lt;/p&gt;

&lt;p&gt;Too fast: written in less time than it takes to read the sentence&lt;br&gt;
Copied: too similar to the original Pular text&lt;br&gt;
In the wrong script: for example, Latin letters in a field that should be Arabic&lt;br&gt;
Full of links: spam&lt;br&gt;
None of these rules is smart. That is the point. They are fast, they cost nothing, and they remove the obvious noise so the expensive layers can focus on hard cases.&lt;/p&gt;

&lt;p&gt;Layer 2: agreement between speakers&lt;br&gt;
One person's translation is an opinion. Two independent people agreeing is evidence.&lt;/p&gt;

&lt;p&gt;Each sentence is shown to more than one speaker, and a translation only moves forward when two of them agree. Contributors never see each other's answers, so agreement cannot be copied.&lt;/p&gt;

&lt;p&gt;This one rule does a lot of work. A rushed or random answer almost never matches another person's careful one.&lt;/p&gt;

&lt;p&gt;Layer 3: hidden check sentences&lt;br&gt;
Some sentences in the queue already have a known, verified answer. Contributors do not know which ones.&lt;/p&gt;

&lt;p&gt;Their answers on these hidden checks give each contributor a reliability score. Reliable contributors' work counts with more confidence; unreliable patterns become visible early, without accusing anyone or slowing down honest people.&lt;/p&gt;

&lt;p&gt;This idea is borrowed from how serious annotation teams run quality control, and it scales: the more someone contributes, the more we know about how much to trust them.&lt;/p&gt;

&lt;p&gt;Layer 4: a human has the last word&lt;br&gt;
Machines filter, agreement confirms, but a reviewer approves, corrects or rejects every translation before it enters the dataset. Anything that looks machine-translated is removed.&lt;/p&gt;

&lt;p&gt;Exports contain approved translations only. There is no "maybe" data in the final file.&lt;/p&gt;

&lt;p&gt;Designing for honesty, not just catching cheaters&lt;br&gt;
Quality is also a UX problem. Two small decisions mattered more than we expected:&lt;/p&gt;

&lt;p&gt;A "Not sure" button that never counts against you. If people are punished for skipping, they guess. Guesses are the worst kind of bad data because they look plausible. Letting people say "I don't know" for free gave us cleaner data.&lt;br&gt;
Sign-in for every answer. Every translation has an accountable author. It is not about tracking people; it is about making each answer feel like your answer.&lt;br&gt;
Each session takes about two minutes: read one sentence, write its meaning, done. Small sessions mean people come back, and people who come back become reliable contributors.&lt;/p&gt;

&lt;p&gt;The stack&lt;br&gt;
Nothing exotic, on purpose:&lt;/p&gt;

&lt;p&gt;Next.js and TypeScript for the app&lt;br&gt;
Neon Postgres for data, with the checks and agreement logic close to the data&lt;br&gt;
Vercel for hosting&lt;br&gt;
The interesting part of this project is the process, not the framework. A boring stack let us spend our time there.&lt;/p&gt;

&lt;p&gt;What we learned&lt;br&gt;
Quality has to be designed in from the first table, not cleaned up at the end. Retrofitting trust into a messy dataset is much harder than collecting it carefully.&lt;br&gt;
Cheap automatic rules + human agreement + hidden checks + final review is a pattern that works far beyond languages: any time you collect labels, reviews or annotations from a crowd.&lt;br&gt;
The languages AI ignores will not fix themselves. Someone has to build the data, one checked sentence at a time.&lt;br&gt;
If you speak Pular, you can contribute in two minutes at pular-lab.vercel.app.&lt;/p&gt;

&lt;p&gt;The full case study, with the product decisions, is here: Pular Lab case study.&lt;/p&gt;

&lt;p&gt;I'm Mouhamed Youssef, founder of YoussTech, a small product studio. We build mobile apps, web platforms and AI systems for selected clients.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>nlp</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
