Maximum Matching

When spaces do not tell us where words end, a dictionary gives us one possible guide. Maximum matching takes the longest word it recognises at each position, leaving us to examine when that local choice fails.

12 sections · 10 questions · 4 coding challenges

1 / 12

Where Does One Word End When There Are No Spaces?

BOTIE

A reader can recognise words in a sentence even when the writing does not place spaces between them. A program cannot assume those boundaries are already marked. If we have a dictionary, we can at least ask which entries match the characters at the current position.

Dictionary-based maximum matching became a practical baseline for Chinese word segmentation. Sproat and colleagues' 1996 work discussed this approach while developing a probabilistic finite-state alternative. The difficulty was that a locally plausible dictionary choice could produce the wrong overall reading.

Maximum matching chooses the longest available entry at the current position, then continues after it. This avoids exploring every possible division and is easy to inspect. But the longest entry is not necessarily the intended word in context. Reading from the opposite direction can even give a different result, which exposes the assumption behind the greedy choice.

Sources for this history