Fuzzy matching algorithms
A name pair becomes a score by counting spelling, sound, small letter runs or word order. Each tool counts something different, so no score means the same thing twice.
L1–L4 are part of the Pro pass
L0 Explain simply
gives a pair of names a score. A score is only a number, so the first question is what the number counts. There is no single way to count how alike two names are, and the ways can disagree.
Names can be alike in four ways. They can be spelled alike. They can sound alike. They can share small runs of letters. Or they can hold the same words in a different order. Each way has its own tool, and each tool has its own name.
Take the pair Mohamed and Muhammad. Count the smallest number of single-letter changes that turn one into the other. That count is called the , and here it is 3. Now compare how the two names sound. A called Soundex is a letter followed by three digits that stand for sounds. It gives both names the same code, M530. So one pair looks clearly apart by spelling, with three changes, and identical by sound.
Now take Anna Kowalczyk and Kowalczyk Anna. Letter by letter they are far apart, because every letter has moved. But they hold the same two words. A tool that compares word by word, called , sees that at once.
Kabir, the sanctions investigator at Meridian Bank, meets an alert for a customer named Anna Kowalczyk. The listed name is Hanna Kowalchik. The spelling tool scores the two as close. The sound tool gives the two surnames the same code, K422. Neither tool knows she is a different person. (SYNTHETIC / TRAINING ONLY: every person and name here is fictional.)
A score says how alike two names look or sound. It never says who the person is. So a bank rarely trusts one tool. It chooses its tools, decides how much each one counts, and sets the line a score must cross to raise an alert.
PICTURE IT
Four helpers at a door, each checking one thing
Imagine a door with four helpers who each compare two name tags. One helper marks the smallest number of pen strokes needed to turn one tag into the other. One reads both tags aloud and listens for the same sound. One cuts each tag into pairs of letters and counts the pairs the two tags share. One lays the words of each tag side by side, whatever their order. Each helper gives a mark for how alike the tags are. A host decides how high a mark must be before a tag is set aside for a closer look. A helper never learns who the person is, so a person decides afterwards. Real tools do not hear or see. That part of the picture is imagined.
THE REAL JOB tools give two names a score, so a bank can notice a when a payment spells the name another way.
- A name arrives on the payment
- The name is tidied and split into words
- Each tool scores the pair
- The scores are joined into one number
- A score over the threshold raises an alert
- An investigator decides and writes down why
HOW THE PICTURE MAPS
| In the picture | In the payment |
|---|---|
| The helper who counts pen strokes to turn one tag into the other | Edit distance, which counts single-letter changes between two spellings |
| The helper who reads both tags aloud | Phonetic codes, such as Soundex, which gives names that sound alike the same code |
| The helper who cuts tags into pairs of letters and counts shared pairs | N-grams, which compare short runs of letters |
| The helper who lays the words side by side in any order | Token matching, which compares name word by word |
| The mark each helper gives | A similarity score for the pair, by that tool's own rules |
| The host who sets how high a mark must be | The match threshold, a risk decision the bank writes down |
| You, looking at the tag set aside | The investigator, who compares the entry with the payment and the customer's fileWho: Kabir |
WHERE THIS PICTURE STOPS
- In the picture, each tag belongs to a person you can see. In screening, the payment holds only a name, and a high mark shows that two names are alike but never who the person is.
- The pen-stroke count, the spoken sound and the shared pairs are different kinds of mark. A mark from one helper cannot be compared with a mark from another, and a mark does not say how likely a match is.
- Real sound tools do not listen. They follow fixed letter rules, so a code can match names that sound different, or miss names that sound alike.
- In the picture the host's line is easy to set. In screening a higher line means fewer alerts. A higher line also raises the risk of missing a listed person whose name is written another way. The Office of Foreign Assets Control (OFAC), the US sanctions office, says it cannot recommend a number.
HOOK
A name score says alike, never who.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Ask four things of a pair: spelling, sound, shared letter runs and word order. Each one has its own tool.
| In the trick | What it stands for |
|---|---|
| How is it spelled | edit distance and Jaro-Winkler, a second spelling-score tool, count spelling |
| How does it sound | Soundex and Metaphone, a second sound-code tool, give sound codes |
| Which small runs are shared | n-grams compare short runs of letters |
| Are the words the same in any order | token matching compares word by word |
Real engines mix these tools, and a good answer to any one question still does not show who the person is.
TELL A FRIEND
Banks give two names a score, and different tools count different things: spelling, sound, small runs of letters or word order. A high score only means the names are alike, so a person still decides.
OFTEN MIXED UP WITH Name matching and fuzzy logic. The lesson says why close names are checked and who sets the line. This lesson says how a score is counted, and why different tools give different scores for the same pair.
Sources & standards — 5 sources
- Market practice2019 guidance; publisher HTML read 6 November 2026
Wolfsberg Group Sanctions Screening Guidance ↗ — The Wolfsberg Group · 2019 Guidance §§2.1–3.6: risk assessment, screening technology, review and independent testing; publisher HTML opened6 November 2026
Wolfsberg guidance is industry market practice, not law. The primary publisher HTML was opened and §§5.1–5.2 read on 6 November 2026: screening scope and relevant transaction attributes depend on sanctions risks and applicable requirements. This is not permission to disregard a legal obligation. The current publisher resource URL replaces the earlier unverified route; institutions vary in implementation.
- Regulatory guidance
OFAC Frequently Asked Questions ↗ — US Department of the Treasury, Office of Foreign Assets Control · FAQs5,249,250,892: review identifying information; public search candidate selection and versioned scoring; no recommended threshold; opened6 November 2026
FAQs are added, amended, and renumbered over time; always check the live page for current numbering and text. FAQ 122, 124, 125, 398 and 401 were fetched and read on 2026-08-25. A failed fetch is not a finding about these pages. Additional primary pages5,249,250,892 opened6 November 2026: matching review, initial retrieval/two scoring techniques, threshold choice and2021algorithm update.
- Market practice
Jaro-Winkler — NIST Dictionary of Algorithms and Data Structures ↗ — NIST · NISTentry2 August 2022; measure and initial-character weighting; opened6 November 2026
Primary page opened6 November 2026.
- Market practice
Double Metaphone — NIST Dictionary of Algorithms and Data Structures ↗ — NIST · NISTentry19 July 2021; possible two codes and language scope; opened6 November 2026
Primary page opened6 November 2026. Original Philipsarticle remains a separate historical source.
- Market practice
Soundex System ↗ — US National Archives and Records Administration · NARAguide reviewed9 January 2024; coding and separator rules; opened6 November 2026
Primary NARA Soundex page opened6 November 2026; reviewed9 January 2024. Read coding groups, adjacent duplicates, vowel separators and H/W exceptions. Historical census-index rules, not a sanctions algorithm mandate.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice2019 guidance; publisher HTML read 6 November 2026
Wolfsberg Group Sanctions Screening Guidance ↗ — The Wolfsberg Group · Screening technology and fuzzy matching
Wolfsberg guidance is industry market practice, not law. The primary publisher HTML was opened and §§5.1–5.2 read on 6 November 2026: screening scope and relevant transaction attributes depend on sanctions risks and applicable requirements. This is not permission to disregard a legal obligation. The current publisher resource URL replaces the earlier unverified route; institutions vary in implementation.
- Scheme-specific rule
OFAC Frequently Asked Questions ↗ — US Department of the Treasury, Office of Foreign Assets Control · FAQ 246, Sanctions List Search: Jaro-Winkler, Soundex and name-part matching; FAQ 250: no recommended threshold score (search excerpts, pages not opened)
FAQs are added, amended, and renumbered over time; always check the live page for current numbering and text. FAQ 122, 124, 125, 398 and 401 were fetched and read on 2026-08-25. A failed fetch is not a finding about these pages. Additional primary pages5,249,250,892 opened6 November 2026: matching review, initial retrieval/two scoring techniques, threshold choice and2021algorithm update.
- Market practice
Levenshtein distance (Dictionary of Algorithms and Data Structures) ↗ — National Institute of Standards and Technology (NIST) · Levenshtein distance (search excerpt, page not opened)
Primary NISTDADS page opened6 November 2026; entry modified15 May 2019. Technical reference, not a sanctions requirement.
- Market practice
Soundex System ↗ — US National Archives and Records Administration · Soundex coding guide (search excerpt, page not opened)
Primary NARA Soundex page opened6 November 2026; reviewed9 January 2024. Read coding groups, adjacent duplicates, vowel separators and H/W exceptions. Historical census-index rules, not a sanctions algorithm mandate.
- Market practice
The Double Metaphone Search Algorithm ↗ — Lawrence Philips, C/C++ Users Journal, vol. 18, no. 6 (June 2000), pp. 38-43 · Double Metaphone (search excerpt, page not opened)
Registered from a web-search excerpt on 2026-10-04 (the catalogue record lists the article; the page itself was not opened). A reader with ordinary network access should open it and correct this entry. A trade-journal article by the algorithm's author, not a standard and not sanctions guidance. It is not cited for any claim about which languages the method suits.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Four tool families are named and each is shown in its textbook form; real engines combine and tune them in ways vendors keep private, and no source read for this lesson requires one. All scores in the examples are worked by hand from the textbook formulas on fictional names. Anna Kowalczyk and the listed name are fictional, and the lesson offers no guidance on producing name variants.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Regulatory guidance
OFAC Frequently Asked Questions ↗ — US Department of the Treasury, Office of Foreign Assets Control · FAQs5,249,250,892: review identifying information; public search candidate selection and versioned scoring; no recommended threshold; opened6 November 2026
FAQs are added, amended, and renumbered over time; always check the live page for current numbering and text. FAQ 122, 124, 125, 398 and 401 were fetched and read on 2026-08-25. A failed fetch is not a finding about these pages. Additional primary pages5,249,250,892 opened6 November 2026: matching review, initial retrieval/two scoring techniques, threshold choice and2021algorithm update.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.