All articles

What a dictionary does for transcription

Karsten B. Kreh Karsten B. Kreh

A dictionary clearly raises the share of correctly spelled names and technical terms. In our measurement with 30 rare terms, the German Whisper model spelled 38 percent of their occurrences correctly without a dictionary, 68 percent with vocabulary and 82 percent with vocabulary and correction pairs. The word error rate over the whole text fell only from 0.058 to 0.048, because the terms make up four percent of the words. Correction pairs apply only to exactly the same misspelling.

Two tools, two points in time

The dictionary in memozero has two kinds of entries. A vocabulary entry is a term in the correct spelling, for example “Wojciechowski”. A correction pair links a misspelling to the correct spelling, for example “Holkirche” with “Hohlkehle”.

The two act at different points in time. Vocabulary goes to the model before recognition as a so-called prompt. Whisper is built so that text placed in front of the audio influences the spelling. Koenecke et al. (2024) cite the OpenAI documentation, according to which a prompt can correct words and abbreviations that the model often recognises wrongly. The prompt is limited to 224 tokens, which is about 900 characters. Correction pairs act after recognition. memozero then replaces every word that exactly matches the misspelling. The correct spelling of a correction pair also goes into the prompt as vocabulary.

How we measured

We needed a text whose wording we know exactly, and terms that the model does not know. So we wrote a fictitious dictation by a building expert about damp damage, about 10,000 words in two parts. The test text is German, which is why the example terms in this article are German words and names. They are the measured terms and stay as they are. In each part, 30 terms occur at least four times: ten rare surnames such as Przybylski and Zschiesche, five place names such as Nörvenich and Hückeswagen, and fifteen technical terms such as Bitumendickbeschichtung, Hohlkehle and Sulfattreiben. We left out digits, dates and abbreviations so that disputes about how to write numbers would not distort the measurement.

A speech synthesiser read the text aloud, using the German voice thorsten-high of the Piper project (Rhasspy, n.d.). Each part gave about 32 minutes of audio. The memozero pipeline did the recognition with the model Whisper 3 Turbo German through faster-whisper, on a notebook with an NVIDIA GeForce RTX 4070 under Linux. memozero itself is not available for Linux. The recognition code is the same that the app uses on Windows with an NVIDIA graphics card.

The correction pairs come from part A, and we measured on part B. The test thus checks the pairs on text they do not come from, as in practice: you create the pairs after the first transcript and benefit from them in the next. Every misspelling of a term in part A became a pair, 89 pairs for 27 terms in total. For the word error rate we ignored upper and lower case and punctuation and counted ß as ss. A term counted as correct if it appeared exactly like this in the transcript after that adjustment.

Vocabulary almost doubles the hits and correction pairs add to them

Correctly spelled terms in part B (higher is better)
Empty dictionary 78 of 204
38
Correction pairs only, after recognition analysis, not an app setting · 143 of 204
70
30 vocabulary entries 139 of 204
68
Correction pairs, as in the app with prompt of 27 terms · 163 of 204
80
Vocabulary and correction pairs 30 vocabulary entries, 54 pairs · 168 of 204
82

Part B of the reference text, about 5,100 words, 204 occurrences of 30 terms. Whisper 3 Turbo German through faster-whisper, development version of memozero of 2 October 2026. One run per condition.

Without a dictionary, the model spelled 78 of the 204 occurrences correctly. In part A, “Hohlkehle” became, among others, “Hohlkeller”, “Hohlquelle” and “Holkehle”, and “Kaczmarek” came out in five different spellings. With the 30 terms as vocabulary, the number rose to 139. The prompt alone almost doubled the hits.

Correction pairs reached similar values. If you apply only the 89 pairs to the transcript without a dictionary, 143 occurrences are correct. In the app, however, a correction pair acts twice, because its correct spelling also goes into the prompt. Used like this, the pairs gave 163 hits. The best result came from the combination: all 30 terms as vocabulary, plus the 54 misspellings that remained in part A despite the vocabulary. With that, 168 of 204 occurrences were correct.

ConditionWERSubstitutionsDeletionsInsertions
Empty dictionary0.058250934
30 vocabulary entries0.0501922536
Correction pairs, as in the app0.0481842139
Vocabulary and correction pairs0.0481812536

The word error rate over the whole text moves much less, from 0.058 to 0.048. The reason is the quantity: the 204 occurrences are about four percent of the 5,100 words. If you judge the dictionary by the word error rate, you underestimate its benefit for exactly the words it is meant for.

A correction pair applies only to the same misspelling

A correction pair replaces a word if it matches the stored misspelling letter for letter. Upper and lower case do not matter here. The model does not misspell an unknown term the same way every time, however. In part A, 27 terms produced 89 different misspellings, on average more than three per term. If a new variant appears in part B, the pair does not help.

A second limit is punctuation. The model attaches commas and full stops to the preceding word, so “Holkirche.” instead of “Holkirche”. memozero compares the whole word including punctuation. In part B, 10 of 98 words that matched a misspelling had a punctuation mark attached and therefore stayed unchanged. If the comparison ignored punctuation, the share of correct terms with vocabulary and correction pairs would rise from 82 to 85 percent.

More words went missing with vocabulary

With vocabulary, 25 words were missing from the transcript instead of 9. Among them was a half sentence of nine words, “Darüber nahm die Nässe allmählich ab und endete knapp” (above that, the dampness gradually decreased and ended just short), which was recognised completely without a dictionary. A prompt changes how the model continues the text and can, in rare cases, make it skip a passage. The figure comes from a single run per condition. It is not enough for a rate, but it is a reason to listen back even with a dictionary.

What this means in practice

The measurement suggests this order:

  1. Before the first job, enter the names of the people involved, place names and the technical terms of a case as vocabulary.
  2. In the first transcript, check how the model misspells the remaining terms. Create correction pairs for recurring misspellings.
  3. Search the transcript for every term from the dictionary. Where it is missing, there is often a new misspelling, which you correct with find and replace.
  4. Keep the dictionary short. The prompt holds about 900 characters. Terms that a case does not need displace those that it does.

Limits of the measurement

The values are more likely too good than too bad. A synthetic voice speaks more clearly than a person, without filler words, noise and overlap. We ran only one pass per condition. We measured the path through faster-whisper. On the Mac, recognition runs through MLX, and we did not measure the dictionary there.

The version matters too. The measurement ran with the development version of 2 October 2026. It passes the dictionary terms to every 30-second window of the recording. In the stable version 0.0.28, the prompt acts only in the first window, so for a long recording on a very small part. The row “Correction pairs only, after recognition” comes closest to the behaviour of this version on long recordings.

Frequently asked questions

Should I enter every technical word in the dictionary?

No. The model usually recognises common technical words without help. Entering terms pays off for names, place names and rare terms that occur again and again in a case. The limited space in the prompt argues for a short list per case.

Why does a correction pair sometimes not help?

Because the model can misspell the same term in different ways. The pair applies only to exactly the stored misspelling, and not when a punctuation mark is attached to the word. You correct new variants with find and replace or create another pair.

Does a dictionary make the transcript worse?

In our measurement the word error rate fell with a dictionary in every condition. With vocabulary, however, more words went missing than without, in one case a whole half sentence. Listening back therefore remains necessary.

Does this also apply to abbreviations and numbers?

We deliberately did not measure that here. Abbreviations and numbers mostly go wrong in the spelling. The hearing is usually right, as our test campaign shows.

Sources

  1. Koenecke, A., Choi, A. S. G., Mei, K. X., Schellmann, H., Sloane, M. (2024): Careless Whisper: Speech-to-Text Hallucination Harms. FAccT ‘24. https://arxiv.org/abs/2402.08021
  2. Rhasspy (n.d.): Piper voices, de_DE thorsten high. Accessed 2 October 2026. https://huggingface.co/rhasspy/piper-voices
  3. Kreh, K. B. (2026): Speech recognition in 2026: what actually works on your own computer. memozero Blog. https://memozero.io/en/blog/speech-recognition-2026-on-device/