Writing
DataPeople data · Part 1 of 2

Names are a bad primary key

Seven ways a person's name breaks, and five rules for any system that stores people

PublishedOct 16, 2026
Reading9 min
TopicData
The problem in one sentence

a name is how the world addresses a person. It is not a way to identify one.

This year I built the engine of a confidential OSINT and HUMINT project (open-source and human intelligence). Given a name and a short brief, it collects public records, decides which ones are really about the person you asked for, and writes a report. Almost every case starts with a name, because a name is usually all you have. "Find out about Jean Dupont, data engineer, Lyon."

That name becomes the primary key of everything that follows, and it is a bad one. It is not unique, not stable, not consistently written, and not always in the same alphabet.

You do not need to build an investigation tool to hit this. If your product deduplicates customers, verifies identities, matches candidates to profiles, or lets an LLM agent look people up, every problem below is already in your data.

Seven ways a name breaks

Each one breaks in a direction. Some make you miss a real record (a false negative). Some make you merge two different people (a false positive). Knowing which is which is most of the skill.

01Typography: the same name, written differently

Jean Dupont · DUPONT Jean · Dupont, Jean · jean dupont

Case, word order, punctuation, accents. French and EU administrative documents routinely print the family name first, in capitals. This is one name, and a system that treats it as four will miss records.

Breaks toward: missing records.

02Composition: how much of the name is written

Jean-Pascal Doe · JP Doe · J.P. Doe · Jean Doe · J. Doe

John Ronald Reuel Tolkien · J.R.R. Tolkien · Tolkien

People carry a variable number of given names and write a variable number of them. Middle names appear on legal documents and vanish on business cards.

The rule that matters: an absent name part is not a contradiction. Samuel Jackson does not disagree with Samuel Lee Jackson; it just says less. A system that penalises the shorter form is punishing brevity, not detecting a different person.

Breaks toward: missing records.

03Script: the same name in another alphabet

Жан Дюпон · 李明华 · جان دوبون

Someone who lives in Russia, China or the Arab world leaves most of their footprint in their own writing system. Search only in Latin script and you search the smaller half of their life, often the half written by foreigners about them.

Breaks toward: missing records, silently. You do not get a weak result. You get nothing, and nothing reads exactly like "this person has no footprint".

04Transliteration: one name, many Latin spellings

Чайковский → Tchaikovsky · Tschaikowski · Chaikovsky · Tchaïkovski

محمد → Muhammad · Mohammed · Mohamed

There is no single correct romanization. A French passport, a German visa and an American university will spell the same Russian name three ways, and all three are right.

Breaks toward: missing records, and sometimes merging, because two different names can romanize to the same string.

05Register: legitimately different names for the same person

Patrick goes by Pat. Margaret by Peggy. José by Pepe. Дарья by Dasha. Elizabeth gives Liz, Beth, Betty, Eliza and Lily.

Beyond nicknames, many people in East and Southeast Asia carry a chosen Western name. A woman named Minghua Li may work as Rose Li: not a translation, not a nickname, and not one shared letter.

This is the hardest class, because no string comparison can find it. Dasha and Daria are not similar strings. Minghua and Rose share nothing. Only knowledge of naming conventions, or a source that states the connection, will ever tell you.

Breaks toward: missing records, and no algorithm fixes it.

06Collision: different people, identical names

This is the one that goes the other way.

  • Fathers and sons. A son may carry his father's exact name, in the same city, often at the same family business and the same address.
  • Common names. Nguyễn is roughly 38% of Vietnam. Kim, Lee and Park together are around 45% of Korea. Wang, Li and Zhang are about a fifth of Han China. A perfect match on one of those says almost nothing.
  • Plain coincidence. A search for an ordinary French name returns dozens of candidate people, several of them spelled identically. They may well all be different people.

Breaks toward: merging two people. That is the expensive direction.

07Corruption: the name is simply wrong

Someone misheard it, a website mistyped it, a scanner misread it, a form truncated it. Johanne Rooling for Joanne Rowling.

You cannot tell a corrupted name from a genuinely different one by looking at the strings. Dupont and Dupond are both real French surnames, pronounced the same; Tintin readers know them as two different detectives. In a given record one may be a misspelling of the other, or they may be two unrelated families.

Breaks toward: both directions at once, which is why string distance alone must never settle it.

The two errors are not equally bad

Everything above comes down to two failures, and they are wildly asymmetric.

Missing a record is invisible. There is no error message. The report looks complete, and the directorship or the court record simply is not there. The regulator, the journalist or the incident finds it for you.

Merging two people is worse in three ways:

  • It is found late, by the victim. Typically through a lawyer, months after someone acted on the report.
  • It reinforces itself. Once two people are one, every next search uses both of their details, and what comes back looks like independent corroboration.
  • It reads better than the truth. A merged file is richer, more corroborated and more consistent than either real half, because merging smooths away exactly the contradictions that would have warned you.

So the posture flips between two moments: be generous when searching, strict when concluding. A missed lead can be looked for again. A fiction about a real person, once published, cannot be taken back.

What a name is actually worth as evidence

Rarity, not presence

A name match is not worth a fixed amount. It is worth roughly how surprising it is. A match on Nguyễn in Vietnam tells you almost nothing; a match on a surname that appears a few hundred times in a country tells you a lot. A system that weighs every name match equally is overconfident exactly where the population is largest.

Inside a name search, a shared name proves nothing

You searched for Jean Dupont. Everything that came back came back because it matched that name. So two results sharing the name is not a coincidence: it is a property of how you searched, not evidence about the people. Inside that result set, "same name" is a reason to look, never a reason to conclude.

The exception is an unusual name you did not search for. If two records in a Jean Dupont search both mention the same uncommon third name, that is genuinely surprising, and it carries weight.

Five rules

01Search generously, conclude strictly

At search time, expand the name aggressively: case, word order, initials, compound forms, near spellings and, when the person's likely origin suggests it, the native script. Label every variant with how it was derived, so a result found through a guessed spelling is never mistaken for one found through the real name.

At conclusion time, invert. Saying "these two records are one person" is the only step that removes information from the reader's view, so it is the step that has to be justified and recorded.

02Store the name exactly as found

Keep whatever string the source used, unchanged, forever. Normalise at comparison time, never at storage time. 李明华 stored as li minghua is evidence destroyed; stored as 李明华 with a comparison key beside it, it is evidence indexed. Keep the query that found it too, so you know what you asked as well as what you got.

03Classify the relationship; do not score a similarity

Do not reduce two names to one similarity number. Say what kind of relationship they have, and the answer names the operation behind it:

Relationship
Meaning
Same string
Identical
Same name
Equal after case, order, punctuation, accents
Transliteration variant
Same name through a known romanization
Register variant
Same name through a known nickname or cognate
Orthographically adjacent
Close spelling, and no known operation
Different
Everything else

The important row is the second to last. Dupont and Dupond are adjacent, and they stay there: the strings cannot tell you whether it is a typo or two families, so the system does not pretend to know. Both people stay in the results, visibly connected, with the reason shown.

04A name never concludes an identity on its own

However perfect the match, a name alone cannot establish that two records are one person. Something else has to agree: a date of birth, a registry number, a verified account, an employer with overlapping dates.

This is not caution for its own sake. A perfect name match is exactly what a father and son look like.

Know the difference between an anchor and a supporting link. An anchor belongs to one person only and does not change, like a date of birth or a national ID, and it can link two records on its own. A supporting link is shared by design, like an employer, a city or a company number, and it can support a match but never prove one. Two co-directors share a company number and are two people. Confusing the two is the most common way an investigation merges two humans.

05"We cannot tell these two apart" is a finding

When two records genuinely cannot be separated, do not merge them and hope, and do not silently drop one. Report an unresolved pair, name the document that would settle it, such as a birth date in a company filing, a graduation year or an obituary, then go and look for it, and record what came back.

Only after that search comes back empty may the two be treated as one. At that point it is an honest conclusion, the one a careful investigator would reach with the same evidence.

"We looked and found nothing" is a legitimate answer. "We did not look" is not, and the record has to show which one it is.

Where code ends and a model starts

This is how I split the work in practice.

Code goes first, because it is free, deterministic and explainable: case, spacing, accents, word order, and a written table of known equivalents such as von and van, or de and du. What that settles costs no model call.

A model takes the rest: what no table holds. A language model knows that Peggy is Margaret and that Pepe is José, in every language at once, the way a well-travelled analyst does. It catches a real misspelling in a script your table never covered.

Two limits hold for both. Nothing, code or model, knows that Minghua is Rose unless a source says so. And neither one is allowed to conclude an identity from a name alone: rule 4 applies to the model too. The model widens the search; it does not close the case.

A worked example

An illustrative case: a client asks about Jean Dupont, data engineer, Lyon.

  1. 01Expand the name. Search Jean Dupont, DUPONT Jean, J. Dupont, and the near spellings Dupond, Du Pont and Dupon, each one labelled with how it was derived.
  2. 02Collect broadly. Even narrowed to Lyon, say 38 candidate people come back. Only five carry the searched name exactly. Some are spelling variants. Some are other people who merely appear on the same page, so they are kept as page mentions, not as candidates.
  3. 03Weigh the name honestly. Six candidates are all called Jean Dupond. That is a reason to compare them, not evidence that they are one man.
  4. 04Look for something other than the name. Registry filings carry birth dates; professional profiles carry employers and dates. Two of the six share a birth month and a company number.
  5. 05Test what is still ambiguous. Two records look like one person but could be a father and son. The test that settles it is a birth date from a company filing: free, same day. Run it.
  6. 06Conclude, and say why. Either the birth dates differ and you report two people, or the search comes back empty, you record that it did, and you report one person with the basis stated.

Step 5 is what separates an investigation from a database query.

The check

00 / 07

Run this against any code that handles people's names:

A "no" to 1–3, or a "yes" to 4–6, is a defect, however good the scoring looks.

Part 2: handles are an unstable key.

Lucas Merlette · Oct 16, 2026Back to top
Related project
Confidential OSINT engineAn AI research engine for confidential investigations.Read the case study
Next in the series
Data · 8 minHandles are an unstable key