cd /news/large-language-models/how-we-stopped-llms-from-writing-fak… · home › topics › large-language-models › article
[ARTICLE · art-176397] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

How we stopped LLMs from writing fake Armenian: a deterministic gate for AI-translated lessons

A developer building Samevia, a free multilingual lesson platform based in Stepanavan, Armenia, has described a deterministic validation gate that rejects LLM-drafted translations before publication, catching script leaks and untranslated English that an LLM judge missed. The gate routes failed leaves to the next provider in a chain, logs every attempt with its outcome and model, and alerts when hourly success drops below 80% — an alert that revealed two models had begun producing mostly invalid Armenian. The platform now carries 460 lessons across 16 fields, with 429 published in English and 269 in Armenian.

recommendation

Validate LLM translations with deterministic script and untranslated-text checks, route rejected leaves to the next provider, and alert on per-model success rates below 80%.

more in playbook: Verifying model output
by read2 min views2 publishedNov 25, 2026

I'm building Samevia from Stepanavan, a small town in northern Armenia. It teaches whole fields of knowledge, from mathematics to psychology, as short lessons in your own language, on the web and on Android. It is free to start and works offline.

Today it has 460 lessons across 16 fields. 429 are published in English and 269 in Armenian. Every one of them was drafted and translated by LLMs. This post is about the part that made that possible without shipping garbage: a small, boring, deterministic gate.

Armenian has its own alphabet. When we started translating lessons with smaller models, many outputs looked like translations to anyone who doesn't read Armenian, and were unusable to anyone who does:

An LLM judge did not catch these reliably. A regex did.

Every translated leaf (a heading, a paragraph, a quiz option) goes through the same checks before it is accepted:

If a check fails, the leaf is not "fixed up". It is sent to the next provider in the chain. Free-tier models go first; a paid model is only a backstop at the end. That ordering is why the product can be free. A strict gate is only useful if it rejects the right things. Two real cases from this month:

5 ppm or 120 mm/yr were flagged as untranslated English. They are units, not prose, so a number followed by a unit is now allowed.pytest, assert and fixture. The gate rejected the Armenian translation five times as "foreign script" and the pipeline kept paying for retries on the same leaf. The fix: an identifier that appears literally in the source (in code or a diagram) is a name, not a translation failure. Each fix shipped with a negative test, so the old wrong rejection is pinned as a failing case. We log every translation attempt with its outcome (ok, still_invalid, script_leak, error) and the model that produced it, and alert when the hourly success rate drops below 80%. That alert is how we noticed, yesterday, that two models in the chain had started producing mostly invalid Armenian, while others were fine. Without per-model outcomes it would have looked like "translation is flaky".

If you read Armenian, or another language that LLMs tend to mangle, I'd value your feedback on the lessons: https://samevia.com

── more in #large-language-models 4 stories · sorted by recency
── more on @samevia 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-we-stopped-llms-…] indexed:0 read:2min 2026-11-25 · —