Matching, confidence & partial names
The surname anchor, name strategies, the closed match vocabulary, and how matchConfidence is built.
Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.appThe surname is the anchor
The surname rules hold in every mode — on the cache and on a live source — because the same matcher scores every source’s output.
lastNameis required. A query with no surname is refused with422 guard_unbounded_query. BothlastNameand the shorthandlastare accepted.- The surname must corroborate. A record whose surname neither equals nor prefix-matches your
lastNameis dropped. On a cached search afirstNamenarrows too: the record’s first name must start with the value you send. - On a live check, a record missing a first name is KEPT and flagged
firstName:absentwith a small confidence penalty — we cannot disprove yourfirstName. On a cached search afirstNameyou send requires one, so such a record is not returned; omitfirstNameto see it. - Case-, accent- and punctuation-insensitive.
smith,SmithandSMITHare identical; so areJoséandJOSE,O'BrienandOBRIEN,De La CruzandDELACRUZ,Garcia-LopezandGARCIA LOPEZ. A trailing generational suffix is ignored, soSmithmatchesSMITH JR; the suffix is returned inname.suffix. - Aliases are returned, not searched. A record’s
aliasesare the other names its source published; a search matches on the record’sname.
The two surname strategies — nameStrategy
| nameStrategy | Surname matches | Default? |
|---|---|---|
prefix | the record’s surname equals your value, or starts with it | Yes, unless you send a full dob |
exact | the record’s surname equals your value | When you send a full dob |
A query with a full dob identifies one person, so without a nameStrategy or prefixMatch its surname is read exact: Lee does not also read LEEDS or LEEPER. Send nameStrategy: "prefix" to widen it.
Smyth does not match Smith; Ross does not match Rose. In this domain a false positive is the expensive error — telling a customer that an innocent person has a criminal record is materially worse than a miss — so the matcher never introduces a surname it was not given.First-name matching and nicknames
When you supply firstName, it is scored after the surname corroborates. Both sides are folded through a small, conservative nickname table first — Bob/Bobby/Rob → Robert, Bill/Will → William, Jim → James — in both directions. A nickname hit reads as firstName:exact (the two folded names became equal).
On a cached search the record’s first name must also start with the value you send, case-insensitively — so Rob reaches ROBERT (and scores firstName:exact), Alex reaches ALEXANDER (firstName:prefix), and Bob does not reach ROBERT. On a live check the source’s own candidates are scored, and there a first-name mismatch does not drop the record — it only lowers its confidence.
Prefix (partial-name) matching — prefixMatch
prefixMatch requests prefix matching on a named field explicitly, and is where the 3-character floor lives. It accepts "firstName", "lastName", "both", or a list.
{ "query": { "lastName": "hamil", "firstName": "al", "prefixMatch": "lastName" } }| You sent | 2-char surname behaviour |
|---|---|
| nothing (default) | falls back to exact — no error (so Li, Ng, Ho, Vo work) |
nameStrategy: "prefix" | 422 prefix_too_short — you asked for prefix |
prefixMatch: "lastName" | 422 prefix_too_short — you asked for prefix |
nameStrategy: "exact" | exact — no error, no floor |
The floor guards the bulk-download shape, not short surnames. A 2-character exact surname is always fine.
The match vocabulary on the wire
Every record tells you how it matched, in matchBasis (space-separated field:how tokens) and matchDetail (one plain sentence). The surname tokens are exact and prefix; the given tokens are exact, prefix, absent, mismatch, notQueried; the middle-name tokens (present only when you send middleName and the record publishes one) are match, initial, mismatch; the dob tokens are match, year, monthYear, age, ageFromDob, absent, sourceConfirmed, sourceNotConfirmed.
{
"name": { "first": "ROBERT", "middle": "E", "last": "SMITH", "suffix": "" },
"matchConfidence": 0.99,
"matchBasis": "lastName:exact firstName:exact dob:match",
"matchDetail": "name and full date of birth agree",
"matchState": "dob_match",
"unverified": false
}Exclusion-list records and the date of birth
Exclusion-list records go through the same matcher as every other kind, and what they can reach depends on what the list publishes. Most entries on the HHS-OIG list carry a full date of birth, so a dob in the query reaches matchState: "dob_match" and the record scores like a court record with the same evidence. SAM.gov entries and most state Medicaid lists publish no date of birth: those records are kept and flagged unverified: true (matchState: "no_dob_age_year"), rank below every record with birth evidence, and are never dropped for a date they could not disagree with. Where a list publishes an address it is carried on the record, so city, zipcode and address narrow those records the way they narrow a registry entry.
include: ["exclusions"] — see the search page.Identity strength: matchTier, identity and personGroup
matchState and matchConfidence describe one record against your query. Three more fields say how far to trust that, and tie the answer together:
matchTier—dob_match,year_or_age_match_same_state,year_or_age_matchorname_only.records[]is sorted by it, best first, then bymatchConfidence. A bare year or age that agrees in another state needs corroboration (a full middle name, the residence city or ZIP, a published birth month) to rise abovename_only. Definitions are in Searching by date of birth.identity— how much the agreement is worth for this name.confidenceishigh(a full date agreed and fewer than one other person is expected to share name and date),medium,loworinsufficient_information(only the name agreed and other people carry it);expectedPeople,nameholdersandbandgive the numbers behind it. On a scored search it also carries aprobability(0 to 1), averdictand theevidence[]weighed. Advisory: it never drops or reorders a record.personGroup— records in one answer that are the same person by the identity rule (same last name, same nickname-folded first name, same full date of birth) share it, across sources. A record without a full date of birth is its own group.residenceMatch— when you send a residence with a fulldob, the residence ranks records rather than filtering them (residenceMode: "prefer", the default then), and each record says how its published residence compares:address,zip,city,state,noneorunknown.nullwhen no residence was sent.
The answer-level matchSummary counts records and distinct people per tier and names the best tier (clear when nothing matched). To keep only the strongest records, send matchStates: ["dob_match"], or dobPolicy: "require" to drop every name_only record; the default keeps every record, labelled.
How matchConfidence is built
matchConfidence is not a probability — it is a sum of fixed evidence contributions, clamped to [0.0, 0.99], so a name-only match can never present as certainty.
| Contribution | Adds |
|---|---|
| Surname exact (base) | +0.55 |
| Surname prefix (weaker than exact) | +0.42 |
| First name exact (after nickname folding) | +0.25 |
| First name prefix (Alex → Alexander) | +0.12 |
| First name absent (record publishes none — live checks only) | −0.05 |
| First name mismatch (present, does not line up — live checks only) | −0.20 |
| Middle name agrees (when you send middleName) | +0.03 |
| Middle initial agrees | +0.01 |
| Middle name conflicts | −0.15 |
| DOB dob_match | +0.40 |
| DOB year_match | +0.30 |
| DOB age_match | +0.18 |
| DOB no_dob_age_year | +0.00 |
| DOB not confirmed by the source (dob:sourceNotConfirmed) | −0.15 |
matchState: "dob_match" with lastName:exact and firstName:exact — and honour the FCRA restriction: results from this endpoint may not be used for FCRA-covered decisions (those run as orders on the FCRA API). See Searching by date of birth.