An interactive word error rate example using the reference the cat sat on the mat.

WER counts the fewest word edits

Reference is the human transcript. Hypothesis is the recognizer's transcript. Word error rate (WER) counts substitutions, deletions, and insertions relative to the number of reference words.

ReferenceHypothesisOperation
WER

S = substitution, D = deletion, I = insertion, and N = reference words. Text normalization applies the same writing rules before scoring.