Skip to main content

nameproof

CI PyPI Python License: Apache-2.0

Is this the same person? Explainable name matching across scripts.

Is "محمد علي" the same person as "Mohamed Ali"? Is "Fatma Trabelsi" the "فاطمة الطرابلسي" on another list? Is "Γιώργος Παπαδόπουλος" the "Giorgos Papadopoulos" a customer typed? nameproof answers Match / Close match / No match and explains every decision, so people only review the uncertain cases.

▶ Try it in your browser: nothing you type leaves the page.

nameproof playground: a Greek name matches its romanisation, an Arabic name is a close match, a typo is a close match, Siemens AG vs Siemens Energy AG is a close match, and Ahmed vs Hamid is no match.

pip install nameproof
  • Arabic, Greek and Cyrillic against Latin spellings: official romanisations (ELOT 743, ICAO 9303, national systems); Arabic through consonant skeletons (Mohamed, Muhammad, محمد), always a close match for review because Arabic spelling is ambiguous
  • Real names: diacritics (José García, Wałęsa, Müller = Mueller), initials, word order, particles (ben, al-, van der), compound names, titles, patronymics, joint names
  • Organisations: about 1,400 legal forms (SARL, GmbH, Sp. z o.o., ΑΕ, ЕООД, …) from the GLEIF ISO 20275 list
  • Careful by design: a spelling difference is never a full match; Mohamed vs Mahmoud and Ahmed vs حامد (Hamid) are no match; every answer comes with reason codes
  • Find duplicates in a list of thousands of names: nameproof dedupe people.csv
  • Private and fast: pure Python, runs offline or in the browser, about a millisecond per check, bounded work for crafted input

Where it's used

Charities, zakat and aid organisations spot the same beneficiary registered twice, once in Arabic and once in Latin letters
Clinics and health records link a patient's records across spellings
Recruiting, schools and HR merge duplicate candidates or students
Travel compare a booking name with the passport (ICAO 9303)
Payments EU Verification of Payee: an EPC responder is included; see nameproof for banks

nameproof compares names only. Matching records properly also uses dates of birth, phone numbers or ID numbers; nameproof is the name part of that decision.

Background: Why fuzzy matching fails EU Verification of Payee, the design and the lessons from the pre-release review.

Find duplicates in a list

$ nameproof dedupe examples/beneficiaries.csv
3 groups of likely duplicates in 9 names (2 to review); 7 pairs compared.

Group 1 (review)
  row     2  محمد بن علي
  row     3  Mohamed Ben Ali
  row     7  Mohamed Ben Ali
    rows 2 & 3: CLOSE_MATCH (transliterated, approximate_transliteration, fuzzy_token)
    rows 3 & 7: MATCH (identical)

Group 2 (review)
  row     5  Fatma Trabelsi
  row     6  فاطمة الطرابلسي
    rows 5 & 6: CLOSE_MATCH (transliterated, approximate_transliteration, fuzzy_token)

Group 3
  row     9  Γιώργος Παπαδόπουλος
  row    10  Giorgos Papadopoulos
    rows 9 & 10: MATCH (transliterated)

It reads a CSV (with a header row; pick the column with --column) or a text file with one name per line, and --output writes the rows that have duplicates, with group and review columns, ready to sort in a spreadsheet. From Python:

from nameproof.dedupe import find_duplicates

report = find_duplicates(["Fatma Trabelsi", "Ahmed Salah", "فاطمة الطرابلسي"])
report.groups  # (DuplicateGroup(members=(0, 2), needs_review=True),)

Comparing every pair of a 10,000-name list would take 50 million checks, so names are first grouped by a coarse, cross-script consonant key per word, and only names sharing a key are compared, with exactly the rules of match. On the 9,624 distinct names of nameproof-bench this compares 147,000 pairs instead of 46 million and keeps 98% of the same-person pairs match finds (the rest are mostly heavy typos); it takes about 30 seconds on 8 cores. A group needs review whenever one of its links is a close match.

Benchmark

Same person wrongly rejected: nameproof 9.7%, token-sort 63.8%, Levenshtein 76.5%, exact match 89.8%. Same person auto-matched: nameproof 41.7%, token-sort 26.2%, Levenshtein 11.3%, exact match 10.2%. Different people falsely matched: 0.0% for every system.

On nameproof-bench, 6,000 labelled name pairs across Greek, Cyrillic, Arabic and Latin scripts built from Wikidata, against typical fuzzy-matching baselines:

nameproof token-sort Levenshtein exact
Same person wrongly rejected (lower is better) 9.7% 63.8% 76.5% 89.8%
Same person auto-matched (higher is better) 41.7% 26.2% 11.3% 10.2%
Different people falsely matched (fraud risk) 0.0% 0.0% 0.0% 0.0%

Everything nameproof doesn't auto-match or reject is a CLOSE_MATCH: the payer is shown the real name and decides. Typos and initials land there by design. Full per-script and per-variation results: docs/BENCHMARK.md.

uv run nameproof bench bench/data/nameproof-bench-v1.jsonl

Verification of Payee service

nameproof also ships an HTTP responder that speaks the EPC VoP Inter-PSP API (EPC103-24 v1.1.1) and is tested against the EPC reference test cases (EPC139-25 v1.2):

pip install "nameproof[service]"
NAMEPROOF_DIRECTORY=json:examples/accounts.json nameproof serve
$ curl -X POST localhost:8080/vop/v1/payee-verifications -H 'Content-Type: application/json' \
    -H "X-Request-ID: $(uuidgen)" -H "X-Request-Timestamp: $(date -u +%FT%TZ)" \
    -d '{"party": {"name": "Yorgos Papadopoulos"}, "partyAccount": {"iban": "GR1601101250000000012300695"},
         "partyAgent": {"financialInstitutionId": {"bicfi": "ABCDBEBBXXX"}},
         "requestingAgent": {"financialInstitutionId": {"bicfi": "ABCDBEB0XXX"}}}'
{"partyNameMatch":"CMTC","matchedName":"Giorgos Papadopoulos"}

Docker image, configuration, account-directory plugins and the conformance table: docs/SERVICE.md.

Quickstart

from nameproof import match

match("Jon Smyth", ["John Smith"])
# Verdict(result=CLOSE_MATCH, score=0.8442, suggested_name='John Smith', explanation=('fuzzy_token',), ...)

match("Mueller Anna", ["Anna Müller"]).result  # MATCH  (letter_expansion, token_reorder)
match("Maria Garcia", ["Mario Garcia"]).result  # CLOSE_MATCH, never MATCH: spellings differ
match("John Smith", ["John and Mary Smith"]).result  # MATCH  (joint_account_holder, shared_surname)
$ nameproof match "Jon Smyth" "John Smith"
CLOSE_MATCH  score=0.8442  policy=epc-default@2
  suggested name: John Smith
  why: fuzzy_token

How verdicts work (default policy epc-default@2, following EPC288-23 v2.0):

Result When
MATCH identical after clean-up: case, diacritics, punctuation, titles, word order of a person's name, official romanisation of the stored name. A person's extra middle names or a trailing female patronymic are allowed (first and last name exact)
CLOSE_MATCH small differences: a typo, swapped letters, an initial, an abbreviation, a dropped particle (van), a legal form spelled differently or missing, company words in another order. The real name is returned so the payer can decide. A clearly different word in a person's name (Mohamed vs Mahmoud) is not a small difference
NO_MATCH a different person or company, or too little to go on (a surname alone, initials alone, a generic word like GmbH)
NOT_POSSIBLE nothing to compare: empty, longer than 140 characters or 10 words, or a script nameproof can't romanise yet

Banks that accept dropped particles, legal-form variants and reordered company names as a match can use the lenient@2 policy. Policies are versioned and never change once published: epc-default@1 and lenient@1 keep their 0.1.0 behaviour for anyone who pinned them.

Every verdict lists stable explanation codes (Reason) that never contain name fragments, and the account holder's name is only ever exposed on CLOSE_MATCH.

Data sources

  • Company legal forms: the ISO 20275 Entity Legal Forms code list v1.6, published by GLEIF under CC0 1.0. nameproof is not affiliated with or endorsed by GLEIF.
  • Benchmark names: Wikidata (CC0 1.0), deceased people only.
  • Romanisation tables are written from the public standards (ELOT 743, ICAO 9303, BGN/PCGN, the Bulgarian and Ukrainian national systems).

Development

uv sync
uv run pytest

See CONTRIBUTING.md. Report security issues privately — see SECURITY.md.

Licensed under Apache-2.0.

Metadata

Release files for nameproof 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nameproof 0.2.0
File Size Uploaded Provenance Actions
nameproof-0.2.0.tar.gz 774.3 kB With provenance Details for nameproof-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nameproof 0.2.0
File Interpreter ABI Platform Actions
nameproof-0.2.0-py3-none-any.whl Python 3 none any Details for nameproof-0.2.0-py3-none-any.whl

Total release size: 872.3 kB

Release files / nameproof-0.2.0.tar.gz

Download URL nameproof-0.2.0.tar.gz
Size 774.3 kB
Tags Source
SHA-256 checksum
How to use checksums
640374da4442c61fb4c6795c83993d66281fbe21c3cf1713fd9e312d4ce0d6aa
BLAKE2b-256 checksum
How to use checksums
f51e405967ab29a2fe22f13867b32fbc305fd09cb8e197d3f50c2c832ca9492c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / nameproof-0.2.0-py3-none-any.whl

Download URL nameproof-0.2.0-py3-none-any.whl
Size 98.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d065bd949dd8cdf3bf120b7e9949ee4f75665cfbe70cf1808f5a38bc8b41e7f
BLAKE2b-256 checksum
How to use checksums
1cfe32d2cf7b0a08773c08365f94a639f2a1eec3da90b57ad02b1b3a87a3248d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for nameproof 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nameproof-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page