Files
computer-playbook/tests/unit/python/utils
kevinveenbirkenbachandClaude Opus 5 c64c0628ae fix(i18n): condemn a Latin-script language answered in another script
27d59f4bd4 caught a non-Latin target answered in Latin letters. Its
mirror was missing, so the model answering a language it cannot write
with one it can passed every criterion:

  ch  'AI Services' -> '人工智能服务'     Chamorro, answered in Han
  tr  'Sales'       -> 'إدارة'
  ae  (76 entries)  -> Arabic, Persian, Hebrew, Chinese

Chamorro writes in the Latin script and lives on Guam; the code 'ch'
reads as Chinese to a model that does not know the language, which is
how the whole catalog came back in Mandarin.

Measured over the 121 Latin-script catalogs before the rule was
written: 79 entries condemned, 76 of them in ae and 3 in tr. All three
Turkish ones were read individually and none is a false positive; two
are an Arabic fragment with a markdown rule and one is English plus
Bengali repeated four times.

Its own criterion rather than an arm of untranslated(): the catalogs
record the reason on the entry, and 'answered in another script' is a
different diagnosis from 'came back untranslated'. The two together
cover the script dimension for all 184 languages.

What it still cannot see: Spanish served as Corsican. Telling two
Latin-script languages apart needs a detector this repository does not
have, so that class stays open.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-20 21:03:17 +02:00
..
…
…