A Translator That Warns Versus One That Blocks

2026-10-17Local Stack

We added a translate mode to an on-device chat page with a digit check that compares the numbers in the source and the output. A clinical review of our own design said a warning is not enough for safety-relevant text: the check should block the result, and add units, negations and emergency numbers.

Summary

The new translate mode takes a message, translates it into a chosen language (Spanish, Chinese, Vietnamese, Tagalog or English), and treats every message independently so nothing carries over. After each reply a check compares the digit runs of the source and the translation, and appends a red "CHECK NUMBERS" line when they differ. Tested on a small model: "do not lift anything heavier than 5 pounds for 24 hours" gave a correct Spanish translation and "Take 81 mg of aspirin every day" gave "Toma 81 mg de aspirina cada día." at 42 tok/s.

What the review said about it

We then ran a domain-expert review of our own design. Findings that apply to every translation feature for safety-relevant text:

gap why it matters
the check only warns a person can copy the translation and ignore a line of small red text
digits only units, negations ("do not"), emergency numbers and drug names can also flip
no second opinion a different model should back-translate and the differences should be compared
an imperative can become a statement we saw "The number of pills is five" turn into an instruction
free translation each time a reviewed library of standard instructions is safer than re-translating

Gotchas

Greedy output hides variance. Ask the same item three ways to see inconsistency.

Copy should not carry the warning along, and should not hide it either. The new per-reply Copy button copies only the translation, so the on-screen warning is what protects the reader; the saved transcript includes the notes.

Small models flip small words. The same pair of models produced "pesado de" in one run and "pesado que" in another; both are valid, but a negation flip would not be.

Key takeaways

  1. For safety-relevant output, a check that cannot stop the result is documentation, not a guard.
  2. Check numbers, units, negations and emergency numbers, not only digits.
  3. Have a different model back-translate, and diff the facts.
  4. Label output as AI-checked and not reviewed by an interpreter until one has reviewed it.

Follow @robotnurseio on X for the short version.


Everything in these notes I also do for hire: local AI set up on hardware you own, configured on-site, then handed over with enough documentation that you do not need me afterward. If that sounds more useful than another weekend of reading forum threads, the details are at /work. No obligation from an email, and the posts stay free either way.

See pricing and book an audit →