Sub topic 10
Name screening and the problem of fuzzy matches
This chapter assumes you know what a politically exposed person (PEP) is and how customer due diligence (CDD) works at onboarding. It also assumes you can read basic Python.
What name screening does
Name screening compares your customer's details against lists of known PEPs, sanctioned parties and other risk records. The lists usually come from a commercial data provider. A screening tool returns candidate matches. A candidate is a possible hit that a person must confirm or discard. It is not a final answer.
Screening happens at onboarding, again whenever customer details change, and on a regular cycle when the list data is updated.
Why exact matching fails
The same person can appear under many spellings:
- Transliteration: "Mohammed", "Muhammad", "Mohamed".
- Accents and case: "José Álvarez" and "JOSE ALVAREZ".
- Name order and extra words: "Smith, John" and "John A. Smith".
- Nicknames and short forms: "Jon" and "John".
- Typing errors, either yours or the list provider's.
An exact comparison misses all of these. That creates false negatives, where a real PEP is not flagged. This is the dangerous failure, because the firm then skips the extra checks.
Fuzzy matching
Fuzzy matching scores how similar two names are, usually between 0 and 1. You pick a threshold. Scores at or above it become alerts.
Normalising first removes differences that carry no meaning.
import unicodedata
from difflib import SequenceMatcher
def normalise(name):
decomposed = unicodedata.normalize("NFKD", name)
stripped = "".join(c for c in decomposed if not unicodedata.combining(c))
return " ".join(stripped.lower().split())
def similarity(a, b):
return SequenceMatcher(None, normalise(a), normalise(b)).ratio()
print(round(similarity("José Álvarez", "Jose Alvarez"), 2)) # 1.0
print(round(similarity("Jon Smith", "John Smith"), 2)) # high but below 1.0, so a reviewer must decideThe first pair scores 1.0 after normalisation. The second pair scores high but below 1.0. The code cannot tell whether "Jon Smith" is the PEP "John Smith" or a different person. A reviewer has to decide.
The threshold trade-off
Lowering the threshold catches more true PEPs and also produces more false positives, which are alerts about the wrong person. Raising it reduces workload and increases the chance of a miss.
| Threshold | Effect on false negatives | Effect on false positives |
|---|---|---|
| Low (more permissive) | Fewer missed PEPs | Many alerts, high review cost |
| High (stricter) | More missed PEPs | Fewer alerts, lower review cost |
Under a risk-based approach, you generally accept more false positives rather than more misses. Teams still need the alert volume to stay manageable, or reviewers start clearing alerts too quickly.
Resolving an alert
A reviewer uses other data to confirm or discard a candidate:
- Date of birth, nationality and country of residence.
- Known occupation, public role and associated organisations.
- Photographs or identifiers in the list record, where available.
If the data points to the same person, the customer is treated as a PEP and moves to enhanced due diligence. If it clearly points to someone else, the reviewer records why. If the evidence is unclear, escalate rather than guess.
Common errors
- Screening only the customer and not the related parties, such as beneficial owners, directors and known family or close associates.
- Treating a high score as proof, or a low score as proof of no match.
- Discarding alerts without recording the reason, which leaves no audit trail.
- Never testing the threshold. Run known PEP names with spelling variants through the system to see what it misses.
Exercise
A screening tool flags "Jon Smith", born 1990, against a PEP list entry for "John Smith", born 1958. What should the reviewer do, and what should they record?
Show answer
Compare other data. The different dates of birth strongly suggest a different person, so the reviewer can discard the alert. They should record the data used and the reason for discarding, so the decision can be audited. If other details, such as country or role, were unclear, they should escalate instead of guessing.