Sub topic 11
Screening names against lists
Earlier chapters covered what the lists contain and how list data is structured. This chapter covers the step that connects the two: comparing the names in your customer and transaction data with the names on the lists.
This chapter assumes you know what a customer, counterparty and transaction are, and that you have a basic picture of AML and KYC programs. You also need to read simple Python. You don't need prior knowledge of string-matching algorithms.
What screening has to do
Name screening answers one question: does this party, or something close to it, appear on a list that creates legal obligations for us? The answer is rarely a clean yes or no, because names are messy. The same person can appear as "Mohammed Al-Rashid", "Muhammad al Rashid" or "RASHID, Mohamed". A list entry may also be a transliteration (a rendering of a name from one script into another) of a name originally written in Arabic, Cyrillic or Chinese characters.
Screening therefore uses approximate matching, usually called fuzzy matching, and sends doubtful cases to a person. Two failure modes follow:
- A false positive is an alert on a party that is not the listed one. It costs analyst time and can delay legitimate customers.
- A false negative is a miss on a party that is the listed one. It can lead to a prohibited dealing, which is the outcome the whole program exists to prevent.
You cannot remove both errors at once. Lowering the match threshold catches more true matches and creates more false positives. Raising it does the opposite. Regulators generally expect the trade-off to be a deliberate, documented, risk-based choice. None of the four regimes in this tutorial sets a required similarity score.
What gets screened, and when
Screen more than the name on the account:
- Customers and, for entities, their beneficial owners, directors and authorised signatories. The ownership chapter explains why owners matter.
- Counterparties, intermediaries and agents.
- Parties named in payment messages, including originator, beneficiary, banks, and free-text fields.
- Vessels, aircraft and countries or regions where your products are exposed to them.
Run screening at onboarding, when a transaction is processed, when customer data changes, and again when a list changes. The last trigger is covered in the final chapter on list monitoring.
The flow below shows the usual pipeline.
Step 1: Normalize
Normalization makes two spellings of a name comparable before you score them. Common steps:
- Convert to one case. Use
casefold, which handles more characters thanlower. - Remove accents, so "Doé" and "Doe" match.
- Remove or standardize punctuation such as commas, hyphens and apostrophes.
- Collapse repeated whitespace.
- For companies, remove or standardize legal suffixes such as "Ltd", "LLC" and "Co", and common words such as "The".
- Handle word order, because lists often write "SURNAME, Given" while your system holds "Given Surname".
The toy routine below does the first four steps and handles word order by sorting the words. It is a teaching sketch with invented names. Production tools add aliases, transliteration handling and identifiers such as dates of birth.
import unicodedata
from difflib import SequenceMatcher
def normalize(name):
# Strip accents, lowercase, drop commas, collapse whitespace.
decomposed = unicodedata.normalize('NFKD', name)
no_accents = ''.join(c for c in decomposed if not unicodedata.combining(c))
return ' '.join(no_accents.casefold().replace(',', ' ').split())
def similarity(a, b):
# Sort tokens so 'Doe, John' and 'John Doe' compare as equal.
ta = ' '.join(sorted(normalize(a).split()))
tb = ' '.join(sorted(normalize(b).split()))
return SequenceMatcher(None, ta, tb).ratio()
listed_names = ['Doe, Jonathan', 'Example Trading Co']
customer = 'Jonathan Doé'
for entry in listed_names:
s = similarity(customer, entry)
print(entry, round(s, 2), 'REVIEW' if s >= 0.85 else 'clear')Running it prints Doe, Jonathan 1.0 REVIEW first. The accent and the comma are removed, and sorting the words makes the order irrelevant. "Example Trading Co" scores far lower and is cleared.
Where the toy breaks
Run a few more names through it and its limits show up quickly:
- NFKD decomposition removes combining accents, but some letters, such as "ø" and "đ", do not decompose into a base letter plus an accent. They pass through unchanged.
- It does not transliterate. A name in Arabic or Cyrillic script will not match its Latin spelling at all.
- Token sorting loses information. It treats "Jonathan Doe" and "Doe Jonathan" as identical, which is usually fine, but it also lets unrelated name orders collide.
- Nicknames and variant forms such as "John" for "Jonathan" score noticeably lower than an identical name. They can fall below the threshold and become false negatives.
Step 2: Choose matching methods
Real systems combine several techniques, because each one covers a different kind of variation.
| Method | What it catches | Weakness |
|---|---|---|
| Exact match after normalization | Same name, different case or punctuation | Misses any spelling variation |
| Edit distance (Levenshtein, Jaro-Winkler) | Typos, dropped or swapped letters | Poor on long names with reordered parts |
| Phonetic codes (Soundex, Metaphone) | Names that sound alike | Built for English, uneven for other languages |
| Token or n-gram overlap | Reordered or partial names | Common words inflate scores |
| Transliteration tables and alias lists | Script and spelling variants | Needs maintained data |
Alias quality matters. The list data chapter showed that entries carry multiple aliases, and some lists mark weaker aliases. A weak alias such as a very common first name should not alert as strongly as a primary name. Scoring each alias with its own weight reduces noise without dropping coverage.
Step 3: Use secondary identifiers
A name alone rarely settles a hit. Compare other fields the list provides and your records contain:
- Date and place of birth, or incorporation date for entities.
- Nationality and address country.
- Passport or national ID number, registration number, or vessel IMO number.
- Gender, and for companies the known directors or parent.
The next snippet shows how identifiers change the triage of an alert. It is simplified: list entries often give only a year, a range or several possible dates of birth, so real logic must handle partial and multiple values.
def triage(score, customer_dob, listed_dob, threshold=0.85):
if score < threshold:
return 'clear'
if customer_dob and listed_dob and customer_dob != listed_dob:
return 'likely false positive: document and close'
return 'escalate for analyst review'
print(triage(1.0, '1980-04-02', '1975-11-30'))
print(triage(1.0, None, '1975-11-30'))The first call prints the false-positive result because both dates exist and differ. The second prints the escalation result because missing data means you cannot rule the match out. This is the safe direction for the default: an unresolved alert stays open rather than being closed on thin evidence.
Tuning and testing
Because no regime prescribes a threshold, you have to justify yours. Practices that make the justification credible:
- Test with a sample of known list entries plus deliberate variants, such as misspellings, reordered names and transliterations, and measure how many your system catches.
- Test below your threshold as well. Sample scores just under the cut-off to see whether true matches are hiding there. This is often called below-the-line testing.
- Keep a record of why each threshold, fuzziness setting and exclusion was chosen, and who approved it.
- Use good-guy lists, also called allow lists, to suppress repeat false positives on a verified customer. Tie each entry to the specific list entry it was cleared against, and expire it, because a new list entry can later resemble the same customer.
- Review alert volumes and outcomes regularly. A rate of false positives that is very high, or a true-match rate near zero over a long period, both point to a calibration problem.
Common errors
- Screening only the account holder and ignoring owners, controllers and payment parties.
- Screening against one list when your obligations come from several. Your legal exposure depends on your jurisdiction, your currency and the clearing path.
- Comparing against stale list data. A perfect matcher against last month's list still misses new designations.
- Using a threshold copied from a vendor default without testing it on your own data.
- Closing alerts without a recorded reason. The decision, not just the outcome, is what an examiner reviews.
The next chapter follows an alert from the moment it is raised to a documented decision and, if required, a blocking, rejection or report.
Exercise
A customer is named "Søren Müller". Your normalizer uses NFKD decomposition and removes combining marks. A list entry reads "MULLER, Soren". Explain whether the normalized names match and why. Then say what change would make the screening more reliable.
Show answer
"Müller" decomposes into "u" plus a combining diaeresis, which is removed, so it becomes "muller". "Søren" does not match "Soren": the letter "ø" has no decomposition into "o" plus a mark, so it is left as "ø" after casefolding. The two names then differ by one character. They may still score above the threshold, but the match depends on fuzzy scoring rather than on normalization. A more reliable approach adds an explicit character map for such letters (for example "ø" to "o" or "oe") or screens several transliterated variants. The change should be tested with sample names and the choice documented.