What is fuzzy matching and how do you choose the threshold?
Approximate string comparison: it scores how similar two values are instead of answering an exact yes or no.
Fuzzy matching is approximate string comparison: instead of asking whether two values are identical, it computes how similar they are and returns a score between zero and one. It is needed wherever data is typed by different people or produced by different systems, where "Acme Steel Works Inc." and "ACME STEELWORKS INC" mean the same thing and no exact comparison notices. It is the engine under most reconciliation pipelines, starting with entity resolution, but the question it raises on its own is narrower: once a similarity algorithm is chosen, above which score should two strings count as the same thing. There is no universal answer, because the right threshold depends on what it costs to be wrong in each of the two opposite directions. Fuzzy matching, put differently, is not an algorithm: it is the choice of an algorithm plus the calibration of a threshold, and the second weighs as much as the first.
See also: Entity resolutionEntity resolution identifies records that describe the same person, company, or other entity, even when those records come from different business systems.
The algorithms, and how to choose between them
Edit distance, or Levenshtein distance, counts the characters to insert, delete or substitute to turn one string into the other: right for typos and for codes, where every character carries the same weight. Jaro-Winkler comes out of record linkage work at the US Census Bureau and rewards strings sharing their first characters, because in registry data errors fall late in a name (Winkler, 1990): it is tuned for personal names and performs poorly on long descriptions. Trigram similarity counts the three-character sequences two strings share, so it tolerates words in a different order, the case with legal names and product descriptions. Soundex and Metaphone encode sound rather than letters, but Soundex was built for indexing surnames in the US census: on Italian, where vowels carry meaning and double consonants are frequent, it groups far less well, and should be tested on real data first.
The threshold is the real decision
Raising the threshold increases precision and cuts recall, lowering it does the opposite, and the trade-off is not symmetric. A false positive merges two distinct subjects into a single record: invoices, history and credit limits land on a master record that corresponds to nothing, and pulling them apart months later costs more than the merge did. A false negative leaves the same supplier counted twice, visible and recoverable. Almost everywhere the false positive is the expensive one, so the threshold is kept high and a gray band of intermediate scores is accepted that no automation closes: those pairs go to a human review queue, an operating cost to budget for. The number is not guessed, it is calibrated on a hand-labeled sample.
String distance versus semantic similarity
Similarity computed over embeddings solves cases no character distance touches: "ball bearing" and "cuscinetto a sfere", or two descriptions of the same component sharing no word at all. It fails where character comparison is solid, on codes and part numbers, close in vector space by shape rather than by meaning: a model has no reason to know that 6205-2RS and 6206-2RS are different products. Not a replacement, a different instrument, to run on the fields where it is strong.
An enterprise example
A machinery manufacturer has to reconcile a supplier price list against its own ERP: no shared key, unrelated codes, and the only handle is the description, written differently in each system. Trigram comparison over normalized descriptions brings most rows above threshold, edit distance over code fragments recovers a share of the rest, and the gray band goes to a buyer who confirms in batches. Without it there is no per-item spend analysis and suppliers get compared by eye.
Why it matters for decision makers
The matching threshold is a risk decision dressed up as a technical parameter: it belongs to whoever knows the cost of the two errors, not to whoever writes the query. Asking what it is, and how many pairs end up in manual review tells you at once whether a reconciliation is governed or whether the default was left in place. Read it together with the data quality upstream: on badly normalized data every algorithm performs worse, and raising the threshold to compensate hides the problem.
Frequently asked questions
Related terms
- Entity resolutionEntity resolution identifies records that describe the same person, company, or other entity, even when those records come from different business systems.
- Data qualityHow fit your data is for its intended use: complete, correct, fresh and consistent across systems. Measured, not declared.
- EmbeddingsAn embedding is a numerical representation of content, which lets a system compare it with other content based on the similarity an AI model has learned.
- BOM data reconciliationBOM data reconciliation matches components, revisions and quantities across systems to find and resolve the differences in a manufacturer's product data.
- Hybrid search and rerankingHybrid search combines lexical and semantic results; reranking reorders the candidates by relevance before showing them or passing them to a language model.
If it touches your company's data, getting that data in order is the first thing I do.
See Data Foundations