What is word error rate (WER)?
Word error rate (WER) is the standard score for how accurate a transcript is: the number of word mistakes divided by the number of words that were actually spoken. Mistakes are counted as substitutions, deletions and insertions, so a WER of 10% means roughly one word in ten needed fixing. Lower is better, and 0% is a perfect match.
By Evin JohnPublished 5 min read
The formula
Take a correct transcript (the reference) and the machine's transcript (the hypothesis). Line them up word by word in the way that needs the fewest edits. Then count three kinds of error: a substitution (S) is a word replaced by a different word, a deletion (D) is a spoken word that is missing, and an insertion (I) is an extra word that was never said. With N the number of words in the reference, WER = (S + D + I) / N.
Fictional example
- Reference
- send the revised budget to finance by friday (8 words)
- Machine
- send a revised budget finance by friday afternoon
- Errors
- "the" became "a" (1 substitution), "to" is missing (1 deletion), "afternoon" was added (1 insertion)
- WER
- 3 errors / 8 reference words = 0.375, or 37.5%
Computing it yourself
The fewest-edits alignment is the classic edit distance (Levenshtein distance), applied to words instead of letters. This short Python function computes WER for two strings after lowercasing them. It returns 0.375 for the example above.
def wer(reference, hypothesis):
ref = reference.lower().split()
hyp = hypothesis.lower().split()
# d[i][j] = edits to turn the first i reference words into the first j hypothesis words
d = [[0] * (len(hyp) + 1) for _ in range(len(ref) + 1)]
for i in range(len(ref) + 1):
d[i][0] = i
for j in range(len(hyp) + 1):
d[0][j] = j
for i in range(1, len(ref) + 1):
for j in range(1, len(hyp) + 1):
same = ref[i - 1] == hyp[j - 1]
d[i][j] = min(
d[i - 1][j] + 1, # deletion
d[i][j - 1] + 1, # insertion
d[i - 1][j - 1] + (0 if same else 1) # match or substitution
)
return d[len(ref)][len(hyp)] / len(ref)
print(wer("send the revised budget to finance by friday",
"send a revised budget finance by friday afternoon")) # 0.375Real evaluations also normalize both texts first: remove punctuation, settle on one spelling, and decide whether "4" and "four" count as the same word. Without that step, the function above scores "the meeting moved to 4" against "the meeting moved to four" as 20% wrong, even though nothing a reader cares about changed.
Reading a WER number
- It is only meaningful on the same audio. A score on clean read speech says little about a noisy call with accents and crosstalk. Ask what test set a published number came from.
- It can exceed 100%. If the reference is "yes" and the system outputs "no thank you very much", there are five errors for one word: a WER of 500%.
- Word accuracy is not always 1 minus WER. Because insertions count, "accuracy" figures built that way can even go negative; vendors define accuracy in different ways.
- All words weigh the same. Missing a filler word and misspelling a customer's name each cost one error, though only one of them hurts.
- Normalization changes results. Two reports on the same engine can differ just because one ignored capitals and punctuation.
Related measures
- Character error rate (CER): the same idea at the level of characters, used for languages written without spaces between words, such as Chinese or Japanese.
- Diarization error rate (DER): how much speaking time was given to the wrong speaker or missed. See speaker diarization.
- Latency: how long words take to appear in real-time transcription. Faster live output often carries a slightly higher WER than the same engine on a finished file.
- Keyword or entity accuracy: some teams score only the terms that matter, such as product names and numbers, alongside WER.
Misconceptions
- "A lower WER always means a better product." Not if the low number came from easy test audio, or if the errors that remain fall on names and figures.
- "WER measures summaries." It measures the transcript only. A summary can be good on a mediocre transcript, or misleading on a good one.
- "One engine has one WER." The same engine scores differently by language, accent, microphone, background noise and topic vocabulary.
Testing engines on your own meetings
- Pick three typical recordingsInclude your worst case: a laptop microphone, a strong accent, or jargon-heavy talk.
- Correct one transcript by handA five-minute stretch is enough to compare engines fairly.
- Normalize both sides the same wayLowercase, strip punctuation, and pick one rule for numbers.
- Score each engine and read the errorsThe number ranks them; the list of mistakes tells you whether the errors matter.
Natively, which publishes this page, makes this kind of comparison practical because the speech engine is your choice: a cloud provider with your own key, the hosted Natively API, or a model that runs on your Mac or Windows computer. Each meeting's transcript is saved locally and can be exported as text or Markdown for scoring. We do not publish a WER for any engine, since your audio decides the result.
Questions people ask
How do you calculate word error rate?
Align the machine transcript with a correct one using the fewest edits, count substitutions, deletions and insertions, and divide the total by the number of words in the correct transcript.
What is a good word error rate?
Lower is better and 0% is perfect, but there is no universal good number: the same engine scores very differently on clean speech and on a noisy call. Compare engines on your own audio.
Can word error rate be more than 100%?
Yes. Insertions count as errors, so a system that adds many words that were never spoken can make more errors than there are reference words.
What is the difference between WER and CER?
WER counts errors per word. Character error rate (CER) counts per character and is used for languages written without spaces between words.
Where to go next
Natively captures the call audio on your own computer, so no bot joins the meeting. Notes, recaps and answers come from the transcript.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
