How it works

Checks and the review pass

Every translation is checked before it is written, by code and by a model that didn't write it. A key that fails goes to a stronger model, and when a job is done the review pass reads each file as a whole.


What is checked per key

Each translated key goes through these checks, including a translation served from translation memory:

CheckWhat it looks atFlag
PlaceholdersEvery placeholder in the source is in the translation, with the same braces. See Placeholders and plurals—
PluralsA plural has every form the target language needsplural_incomplete
GlossaryEach glossary term in the source appears as its approved translation, in whatever form the sentence needsglossary_violation
LengthThe translation is over 1.6 times as long as the source and at least 15 characters longerlen_ratio
LanguageThe verifier finds the translation is in another languagewrong_language
MeaningThe verifier finds the translation adds, drops or changes something the source saysmeaning_changed
Ambiguous sourceThe model says the source could mean more than one thinglow_confidence

Placeholders are settled before anything else: TolkBot repairs a changed brace count, and refuses a translation that drops or invents a placeholder. A refused translation is tried again with the problem described to the model, then once more with the stronger model, and fails only if all three attempts are refused. A refused attempt costs no credits.

The flags show on the key in the job's page in the dashboard.

The verifier

The language and meaning checks are made by a model that didn't write the translation. Jev, an evaluation model from TypeSafe, is asked which language the text is in and whether it says the same as the source.

Its answer is a reason to ask again, not a finding. A word like "Profil" is correct in several languages, and a correct translation can read as a change, so when Jev names another language or a changed meaning, a language model is asked whether the translation is right. The flag stands only when that second answer agrees.

The verifier's calls cost no credits. If it can't be reached, the other checks still run and the job carries on.


Escalation

When the first pass is done, every flagged key is translated again by the stronger model, Claude Sonnet 5.5, with the reason it was flagged in front of it, so it doesn't make the same mistake: the term it missed, the language it slipped into, the part of the meaning it lost.

When more than 40% of a batch of 10 or more keys is flagged, TolkBot doesn't escalate that batch. That many flags points to a problem with the source or the setup, such as a glossary term that doesn't fit, rather than with single keys.

A key that needed the stronger model costs more credits than one that didn't. See Billing and credits.


Review pass

When a job finishes, the review pass reads each translated file as a whole, the way a person reviewing the pull request would. It looks for what a key-by-key check can't see: a term translated two ways, a glossary term that is still missing, wording that doesn't fit next to the strings around it, a value in the wrong language.

For each problem it reports, it decides one of three things.

It applies the fix

A fix the reviewer is confident of is applied on its own when all of these hold:

  • nobody holds the key: it isn't locked, has no draft, and wasn't written by a person
  • the fix keeps the placeholders and plural forms of the source
  • the fix uses the glossary's terms

The key inspector then says translated by TolkBot, corrected by the review pass, and the job's page counts the key as auto-corrected. The Activity timeline says how many fixes the review pass applied.

To undo a fix, edit the value on the Translations page and ship the draft.

It suggests the fix

When the key is held, the fix fails a check, or the reviewer isn't sure, the fix waits for a person under Reviewer suggests a change on the Overview and Translations pages. In the key inspector, Apply saves the suggestion as a draft, and Keep mine keeps your value and adds a learning, so the same value isn't flagged again.

It reports the problem

A finding with no corrected value is shown only when the problem is one a person can act on without one: a wrong language, or a glossary term the reviewer couldn't place. It shows under Needs wording. Write the translation yourself, or add context to the key and regenerate. Dismiss stops it being flagged again for that value.

Every other finding without a fix is dropped, since a reason with no suggestion is not something a person can act on.


In the pull request

The Checks section of each pull request sums up what these checks did: how many keys were translated or failed, what was withheld from the commit and why, and what the review pass corrected and flagged. See Automated pull requests.

Previous
The translation pipeline