Pascual Labs · Journal · How machine translation works

How machine translation actually works: a plain-English guide

Explainer · 5 min read · September 19, 2026

You paste a paragraph into a translator, press a button, and a fraction of a second later it comes back in another language. It feels like magic, and it is easy to assume the machine "understands" the text the way a bilingual person does. It does not, and knowing what it does instead will help you judge when to trust the result and when to double-check it.

Three generations of machine translation

Computers have been translating text since the 1950s. The approach has changed completely twice.

1. Rule-based translation

The first systems were built by linguists who wrote dictionaries and grammar rules by hand: "in German the verb goes here", "this English word maps to that French word when followed by a noun". The machine parsed the sentence, applied the rules and generated output.

Rule-based systems were predictable, but brittle. Every exception needed its own rule, and human language is mostly exceptions. Output was usually understandable and almost always stiff.

2. Statistical translation

From the 1990s onward, researchers stopped writing rules and started counting. Given millions of sentences that already existed in two languages (parliamentary proceedings, UN documents, translated manuals), a statistical system learned which chunks of text tended to line up with which. To translate a new sentence, it stitched together the most probable chunks.

This was a big leap in coverage, and it powered the first generation of free online translators. Its weakness was context: it worked on short phrases, so long sentences came out as a patchwork, with word order and agreement frequently wrong.

3. Neural translation

Since the mid-2010s, almost every major translator has used neural networks. Instead of phrase tables, a neural model turns the whole source sentence into a set of numbers that capture how each word relates to the others, then generates the translation one word at a time, looking back at the source at every step.

The key idea that made this work well is called attention: when producing each output word, the model learns which parts of the input matter most. The architecture built around it, the Transformer, is now the basis of practically all modern translation systems and of large language models as well.

What "learning" means here

A neural translator is trained on enormous amounts of parallel text. During training it translates a sentence, compares its guess with the human translation, and nudges millions of internal parameters so that next time the guess is a little closer. Repeat that billions of times and the model gets very good at producing fluent text that resembles the human translations it saw.

Notice what is missing: the model never checks facts, never looks at the world, and has no idea who is speaking or why. It predicts likely text. Most of the time, likely text and correct text are the same thing. The interesting failures happen where they are not.

Why fluent does not mean correct

Older systems produced obviously broken output, so readers knew to be careful. Neural systems produce smooth, natural-sounding sentences even when the meaning has drifted. That is the single most important thing to understand about modern translation: the quality of the grammar tells you nothing about the accuracy of the meaning.

Typical ways a fluent translation can still be wrong:

Why short text is harder than long text

People often assume a single word or a short chat message is the easy case. It is the opposite. A long paragraph gives the model context: topic, tone, who "he" refers to. A two-word message gives almost none. If you translate something important that is short, add a few words of context around it, or at least read the result with that limitation in mind.

Different engines, different strengths

Google Translate, DeepL, Microsoft Translator, Yandex Translate and the translation features built into large language models are all neural systems, but they are trained on different data and tuned for different goals. In practice:

If a translation matters, running it through two different engines and comparing is a cheap and surprisingly effective check. Where they agree, you can be fairly confident. Where they differ, you have found the ambiguous spot.

What happens to your text

Most translation services run in the cloud: your text is sent to a server, translated and sent back. Providers' policies differ on whether that text is stored or used to improve their systems, and business plans often have stricter terms than free ones. Some browsers and apps now include small translation models that run entirely on your device, which is slower to set up but keeps the text local.

As a rule of thumb, avoid pasting passwords, medical details, contracts or anything confidential into a free online translator unless you have read its data policy.

How to get better results

The bottom line

Modern machine translation is a pattern-prediction system trained on human translations. It is remarkably fluent and usually right about meaning, especially for common languages and full sentences. Its mistakes are hard to spot precisely because they sound natural. Treat it as a fast, knowledgeable assistant whose work you still glance over, and it will serve you very well.