AI for Indian languagesMiddleLesson 2396 min read

Machine translation and how to judge it

Machine translation is useful and imperfect. Learn to judge it with people, with back-translation and with metrics like BLEU and chrF, and know the limits of each.

Lesson in motion

In 60 seconds

Machine translation and how to judge it

Machine translation is useful and imperfect. Learn to judge it with people, with back-translation and with metrics like BLEU and chrF, and know the limits of each.

1/4
In simple words
If you ask two good teachers to translate the same English paragraph into Bengali, they will not write exactly the same words. Both can be right. So checking a translation is not like checking a sum. We need people, and some careful tools, to decide if it is good.
Machine translation (MT) turns text from one language into another. Today it is done by neural models, including large language models and dedicated translation models such as IndicTrans2. It lets one team serve many languages. It also makes mistakes that look fluent, which is the dangerous kind.

What can go wrong

  • Meaning errors. A negation is lost ("do not" becomes "do"), or a number changes.
  • Domain terms. A legal, medical or farming term is translated as an everyday word with a different meaning.
  • Names. A person's name or a place is translated as if it were a common word.
  • Register and tone. Too formal, too casual, or the wrong form of "you" for the reader.
  • Fluent nonsense. A smooth sentence that says something the source did not say.

Three ways to judge a translation

MethodHow it worksStrengthsLimits
Human evaluationBilingual reviewers rate or correct translations using a rubricThe best judge of meaning, tone and domain termsSlower and costs money; reviewers need clear guidelines and can disagree
Back-translation checkTranslate the output back to the source language and compareCheap way to spot big meaning errors when you do not read the target languageBoth directions can share the same mistake; a good back-translation does not prove the output is natural
Automatic metricsCompare the output with one or more human reference translationsFast and repeatable; good for comparing versions of a systemNeeds good references; can reward word overlap even when meaning is wrong

BLEU and chrF, in plain words

BLEU counts how many short word sequences (n-grams) in the output also appear in a human reference translation. chrF does something similar with character sequences. Character-level matching can be kinder to languages where one word has many forms, which is common in many Indian languages. The sacrebleu Python package computes both in a standard way.
Watch out
A higher BLEU or chrF score does not always mean a better translation. A correct translation that uses different words from the reference can score low. A wrong translation that copies many reference words can score high. Use metrics to compare systems on the same test set, and always check samples with people.

A simple human rubric

ScoreAdequacy (meaning)Fluency (natural language)Terminology
4All meaning keptReads like a native speaker wrote itAll key terms correct
3Small details lostUnderstandable, a little unnaturalOne minor term issue
2Important meaning lost or addedHard to read in placesA key term wrong
1Wrong or dangerous meaningNot understandableSeveral key terms wrong
Ask at least two reviewers to score the same items without seeing each other's scores. Then compare. Where they disagree a lot, discuss the item and improve your guidelines. Measures like Cohen's kappa can describe agreement more formally.

An example: how OmniLingo handles translation

This course is machine-translated into many languages. The approach is a useful pattern for any product:
  1. 1

    Translate once, cache

    Each translated piece is stored, so the same text is not translated and paid for again.
  2. 2

    Human review

    People can correct a translation. Corrected pieces are marked as reviewed.
  3. 3

    Protect reviewed work

    Reviewed translations are never overwritten by a new machine translation.
  4. 4

    Fail honestly

    If machine translation is not available, the course shows the English original rather than an invented translation.
  5. 5

    Keep code as code

    Code samples are not translated, because translating code would break it.
Note
For domain terms, keep a glossary: a list of important terms and their approved translations, reviewed by experts. Give it to reviewers, and where your tools allow, to the translation step as well.
Try this. Take one short paragraph from a government notice or a school circular. Machine-translate it into a language you know. Mark every meaning error, name error and term error you find.

Watch and read more

Lab

Ten translations scored by two reviewers with a rubric, an agreement check, and a list of error types.

~40 min

The problem

Work with a friend who also reads the target language.

  1. Pick 10 English sentences from real life: a bank SMS, a train notice, a school circular, a medicine label (do not act on it), a farming tip. Include at least 3 with numbers or names.
  2. Machine-translate them into an Indian language you both read well.
  3. Each of you scores every translation 1 to 4 for adequacy, fluency and terminology, using the rubric in the lesson. Do not look at each other's scores.
  4. Put your scores into the starter code and run it.
  5. Discuss every item the code flags. Write the error type (meaning, name, number, term, tone) and a corrected translation.

Practice lab

Edit the code and run it. Python runs in your browser — nothing is sent to our server.

Output

No output. Add print(...) to see values.

You are done when

Hard questions

Try to answer before you reveal. If you can answer these, you understood the lesson.

Q1Your two reviewers agree on fluency but often disagree on adequacy. What does that suggest, and what would you do?Reveal

They may understand "meaning kept" differently, for example whether a small lost detail is a 3 or a 2. Write clearer rules with examples for each score, have them score a few practice items together, then score new items independently again. If one reviewer does not know the domain, add a glossary or a domain expert.

Q2A new translation model raises chrF on your test set, but your support team gets more complaints. How can you find out what happened?Reveal

Look at the complaints and find the sentences involved. Check whether your test set looks like real user text, whether the model now gets names, numbers or negation wrong while matching more words, and whether the test set leaked into training. Add the failing real sentences to your test set and run a human review on them before and after the change.

Please sign in to continue.

Questions people ask

Is back-translation enough to check my app's translations?

No. It is a quick screen for big meaning errors. It cannot tell you if the output sounds natural, and errors can cancel out on the way back. For anything important, use bilingual human reviewers.

Which metric should I report, BLEU or chrF?

Many teams report more than one, computed with a standard tool so others can compare. chrF is often preferred for languages with rich word forms. Whatever you report, add human evaluation on a sample and say which test set you used.

Can an LLM judge translation quality?

It can help to flag likely problems at scale, but it can be wrong, especially in languages it saw less of. Check its judgements against bilingual human reviewers before you trust it, and never use it as the only check for important text.

What should never be machine-translated without review?

Anything where a mistake can cause harm: medical instructions, legal notices, safety warnings, financial terms, and official forms. Have a qualified human review these.

Lesson test

5 questions. Get 3 right (60%) to pass and complete this lesson.

Sign in to take the test and save your progress