Matching and scores
Available in the APIAvailable in the API on every plan: POST /v1/match, scoring version 2026-11-30, and operation: "match" in batches. GET /v1/meta reports "match": "available" and the scoring versions served. Test keys answer from fixtures, unbilled.
What it is for
You hold two name strings, perhaps in different scripts, and need to know whether one could be a spelling of the other. Mohamad El Khoury and محمد الخوري are one name written twice. Match returns a score between 0 and 1, a decision band, the reasons behind it and, token by token, which part of one name lined up with which part of the other.
Names, not people. The API compares and renders name strings. It never looks a name up, never says two records belong to one person and never infers gender, religion, nationality or origin. Treat a high score as "these strings agree", then decide with your own evidence and, where a decision affects a person, a human review.
When to use it
- A name typed from an ID card against the name on a payment card or a booking.
- Ranking candidate pairs from your own lists for a reviewer.
- Checking that a Latin spelling a client gave you is a plausible spelling of the Arabic on file.
Match compares two names you already hold. To find candidates first, expand one side with variants and search your own data for them, then score the pairs you find.
Request
Arabic against Latin
curl https://api.arabinames.assentify.com/v1/match \
-H "Authorization: Bearer $ARABINAMES_KEY" \
-H "Content-Type: application/json" \
-d '{"name_a":{"text":"محمد الخوري"},"name_b":{"text":"Mohamad El Khoury"},"country_hint":"LB"}'{
"id": "mt_example",
"object": "match",
"score": 1,
"decision": "match",
"thresholds": {
"match": 0.982,
"possible": 0.583
},
"reasons": [
"TRANSLITERATION_EQUIVALENT"
],
"alignment": [
{
"a": "محمد",
"b": "Mohamad",
"relation": "transliteration_equivalent",
"reasons": [
"TRANSLITERATION_EQUIVALENT"
],
"weight": 1
},
{
"a": "الخوري",
"b": "El Khoury",
"relation": "transliteration_equivalent",
"reasons": [
"TRANSLITERATION_EQUIVALENT"
],
"weight": 1
}
],
"scripts": {
"a": "arab",
"b": "latn"
},
"hints": {
"a": {
"dialect": "levantine",
"orthography": "french",
"source": "country",
"applied": "none"
},
"b": {
"dialect": "levantine",
"orthography": "french",
"source": "country",
"applied": "none"
}
},
"warnings": [],
"scoring_version": "2026-11-30",
"engine_version": "1.0.0",
"units": 1
}Engine output through /v1, as recorded on the examples page. Per-result provenance and versions are left out here for length.
| Field | Type | Meaning |
|---|---|---|
| name_a, name_b | object | Required. Each has text (required) and optional script (auto, arab, latn), dialect_hint, orthography and country_hint for that side. |
| country_hint | string | ISO 3166-1 alpha-2, upper case, for both sides. See hints. Echoed per side in hints; the score does not depend on it in scoring version 2026-11-30. |
| dialect_hint, orthography | string | Default auto. Same values as on transliterate. |
| name_type | string | person, the only value in v1. |
| thresholds | object | Optional match and possible, each 0 to 1, with possible not above match. Leave them out to use the defaults of the scoring version. |
| options.ignore_token_order | boolean | Default false. When true, a changed order is not reported. |
| options.allow_missing_tokens | integer | 0 to 3, default 2. More unaligned tokens than this on the longer name caps the decision at possible. |
| options.initials | boolean | Default true: an initial may stand for a token that starts with that letter. |
| options.explain | boolean | Default true: return the token alignment. False returns alignment: null. |
| options.scoring_version | string | Pin a scoring version. An unknown one is 422 scoring_version_unavailable. |
| cache | string | default or bypass. Match results are never cached. |
Response
A different given name that sounds alike
curl https://api.arabinames.assentify.com/v1/match \
-H "Authorization: Bearer $ARABINAMES_KEY" \
-H "Content-Type: application/json" \
-d '{"name_a":{"text":"Hassan Haddad"},"name_b":{"text":"Hussein Haddad"}}'{
"id": "mt_example",
"object": "match",
"score": 0.806,
"decision": "possible",
"thresholds": {
"match": 0.982,
"possible": 0.583
},
"reasons": [
"EXACT",
"PHONETIC_EQUAL"
],
"alignment": [
{
"a": "Hassan",
"b": "Hussein",
"relation": "phonetic_equal",
"reasons": [
"PHONETIC_EQUAL"
],
"weight": 0.786
},
{
"a": "Haddad",
"b": "Haddad",
"relation": "exact",
"reasons": [
"EXACT"
],
"weight": 1
}
],
"scripts": {
"a": "latn",
"b": "latn"
},
"hints": {
"a": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
},
"b": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
}
},
"warnings": [],
"scoring_version": "2026-11-30",
"engine_version": "1.0.0",
"units": 1
}Engine output through /v1, as recorded on the examples page. Per-result provenance and versions are left out here for length.
| Field | Type | Meaning |
|---|---|---|
| id | string | Starts with mt_. |
| object | string | Always match. |
| score | number | 0 to 1, three decimals. How likely the two strings are spellings of the same name, calibrated on our match set. Not a probability that two records are one person. |
| decision | string | match, possible or no_match, from the score and the thresholds used. |
| thresholds | object | The thresholds applied to this call. |
| reasons | string[] | Reason codes for the whole pair: negative evidence first, then the rest. |
| alignment | array or null | One row per token pair: a, b (null when a token has no counterpart), relation, reasons and weight, the similarity of that pair from 0 to 1. It contains your name tokens, so explain: false leaves it out. |
| scripts, hints, warnings | object, object, string[] | Detected scripts, hints as resolved per side, input and scoring warnings. |
| scoring_version, engine_version | string | Pin these for audit. A new scoring version ships with its own measured bands. |
| units | integer | Units billed for this call. |
Reading a score
- The default thresholds of scoring version
2026-11-30arematchat 0.982 andpossibleat 0.583. They were set from measured precision on our match set, not by hand, and are echoed in every response. - Compare scores from the same
scoring_versiononly. - Names that sound alike but are different names, such as
HassanandHussein, often land inpossible, as above. That band is meant for a review queue, not for automatic linking. - A changed token order alone does not lower the score in this scoring version;
TOKEN_REORDERsays it happened, andignore_token_orderdrops the reason. - Short and very common names agree with many strings. Ask for more of the name before acting on a one-token pair.
Family name first
curl https://api.arabinames.assentify.com/v1/match \
-H "Authorization: Bearer $ARABINAMES_KEY" \
-H "Content-Type: application/json" \
-d '{"name_a":{"text":"Rami Haddad"},"name_b":{"text":"Haddad Rami"}}'{
"id": "mt_example",
"object": "match",
"score": 1,
"decision": "match",
"thresholds": {
"match": 0.982,
"possible": 0.583
},
"reasons": [
"TOKEN_REORDER",
"EXACT"
],
"alignment": [
{
"a": "Rami",
"b": "Rami",
"relation": "exact",
"reasons": [
"EXACT"
],
"weight": 1
},
{
"a": "Haddad",
"b": "Haddad",
"relation": "exact",
"reasons": [
"EXACT"
],
"weight": 1
}
],
"scripts": {
"a": "latn",
"b": "latn"
},
"hints": {
"a": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
},
"b": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
}
},
"warnings": [],
"scoring_version": "2026-11-30",
"engine_version": "1.0.0",
"units": 1
}Engine output through /v1, as recorded on the examples page. Per-result provenance and versions are left out here for length.
Pass your own thresholds when your use needs a different trade-off; the decision follows them and the response echoes them.
Your thresholds, no alignment
curl https://api.arabinames.assentify.com/v1/match \
-H "Authorization: Bearer $ARABINAMES_KEY" \
-H "Content-Type: application/json" \
-d '{"name_a":{"text":"رامي حداد"},"name_b":{"text":"Rami Haddad"},"thresholds":{"match":0.95,"possible":0.5},"options":{"explain":false}}'{
"id": "mt_example",
"object": "match",
"score": 1,
"decision": "match",
"thresholds": {
"match": 0.95,
"possible": 0.5
},
"reasons": [
"TRANSLITERATION_EQUIVALENT"
],
"alignment": null,
"scripts": {
"a": "arab",
"b": "latn"
},
"hints": {
"a": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
},
"b": {
"dialect": "auto",
"orthography": "auto",
"source": "default",
"applied": "none"
}
},
"warnings": [],
"scoring_version": "2026-11-30",
"engine_version": "1.0.0",
"units": 1
}Engine output through /v1, as recorded on the examples page. Per-result provenance and versions are left out here for length.
How the bands were measured
Measured 30 November 2026 on our benchmark sets. The score is string similarity calibrated on our match set: pairs of synthetic name strings labelled same name or different name, built from the development split of our gold sets, fitted on one half and measured once on the other. The measurement half holds 1,526 pairs: 1,021 same-name and 505 different-name pairs, none of them used to fit.
| Field | Type | Meaning |
|---|---|---|
| match (score from 0.982) | 643 pairs | Precision 0.977: 628 of 643 pairs in the band are the same name. Recall 0.615: 628 of 1,021 same-name pairs reach it. |
| match or possible (score from 0.583) | 1,129 pairs | Precision 0.853: 963 of 1,129. Recall 0.943: 963 of 1,021. |
The set has not yet been reviewed by native speakers, and a pair labelled same name means the same name, never the same person. Transliteration figures are on the benchmarks page.
Reason codes
Stable identifiers, never renamed. New codes may be added within v1, so treat an unknown code as information, not an error. GET /v1/meta returns the current list. Scoring version 2026-11-30 returns 15 of them: EXACT, CASE_ONLY, NORMALISED_EQUAL, TRANSLITERATION_EQUIVALENT, PHONETIC_EQUAL, EDIT_DISTANCE_1, EDIT_DISTANCE_2, INITIAL_MATCH, COMPOUND_JOINED, ARTICLE_MISSING, PARTICLE_MISSING, TOKEN_REORDER, TOKEN_MISSING, TOKEN_CONFLICT, MIXED_SCRIPT_INPUT. The others are reserved.
- EXACT
- CASE_ONLY
- NORMALISED_EQUAL
- DIACRITICS_ONLY
- TA_MARBUTA
- HAMZA_FORM
- TRANSLITERATION_EQUIVALENT
- SPELLING_VARIANT
- FRENCH_ENGLISH_ORTHOGRAPHY
- DIALECT_CONSONANT
- ARTICLE_FORM
- ARTICLE_MISSING
- COMPOUND_JOINED
- PARTICLE_MISSING
- PHONETIC_EQUAL
- EDIT_DISTANCE_1
- EDIT_DISTANCE_2
- INITIAL_MATCH
- TOKEN_REORDER
- TOKEN_MISSING
- TOKEN_CONFLICT
- GIVEN_NAME_CONFLICT
- SHORT_NAME
- COMMON_NAME
- MIXED_SCRIPT_INPUT
Edge cases
- A batch with
operation: "match"runs each pair like the sync call and bills each scored pair once. - A side that holds only a title, such as
Dr., has no name to compare: the score is 0 with the warningNO_NAME_TOKENS. - More missing tokens than
allow_missing_tokenscaps the decision atpossibleand adds the warningCAPPED_MISSING_TOKENS. - Test keys score from fixtures with scoring version
mock-1: use them for wiring, never to choose thresholds. - The key needs the
matchscope. Each side goes through the same input safety rules as every other endpoint; an error names the side, such asname_b.text, never the text.
Errors
A scoring version that is not served
curl https://api.arabinames.assentify.com/v1/match \
-H "Authorization: Bearer $ARABINAMES_KEY" \
-H "Content-Type: application/json" \
-d '{"name_a":{"text":"Rami Haddad"},"name_b":{"text":"رامي حداد"},"options":{"scoring_version":"2026-01-01"}}'{
"type": "https://arabinames.assentify.com/docs/errors#scoring_version_unavailable",
"title": "Scoring version unavailable",
"status": 422,
"code": "scoring_version_unavailable",
"detail": "Scoring version 2026-01-01 is not served. Served: 2026-11-30.",
"param": "options.scoring_version",
"request_id": "req_example",
"doc_url": "https://arabinames.assentify.com/docs/errors#scoring_version_unavailable"
}The gateway's answer, with its request id replaced. Errors bill zero units.
validation_error, unsupported_name_type, scoring_version_unavailable, the input errors and the engine errors. The full list is in the errors guide.
Limits and units
1 unit per successful match. Errors bill nothing. Rate limits are those of your plan; see rate limits and quotas.