Examples

Worked examples, request and response.

Every response here came from the Arabinames engine through the public API and was written to the page by a script. Inputs are synthetic names.

Worked examples
15
Engine version
1.0.0
Pipeline
v2
Names only
Synthetic
Two developers at a shared desk, one pointing at code on a screen while the other checks a printed list with a highlighter

Transliterate

One name in, spellings in the other script out.

Arabic to Latin

Arabic in, the ranked Latin rendering out, with the engine version.

Public API, /v1
Request: POST /v1/transliterate
{
  "text": "خالد عبد الله",
  "target_script": "latn",
  "max_results": 5
}
Response: 200
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Khaled Abdallah",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "خالد",
          "output": "Khaled",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            3
          ],
          "input": "عبد الله",
          "output": "Abdallah",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_end",
            "compound_start"
          ],
          "layer": "L0",
          "pack_id": "theophoric:legacy",
          "rule_id": "theophoric_compound",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "reviewed",
          "band": "high",
          "band_reason": "protected_lexicon"
        }
      ]
    },
    {
      "text": "Khald Abdallah",
      "rank": 2,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "خالد",
          "output": "Khald",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "rules:legacy",
          "rule_id": "mapper",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            3
          ],
          "input": "عبد الله",
          "output": "Abdallah",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_end",
            "compound_start"
          ],
          "layer": "L0",
          "pack_id": "theophoric:legacy",
          "rule_id": "theophoric_compound",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "reviewed",
          "band": "high",
          "band_reason": "protected_lexicon"
        }
      ]
    },
    {
      "text": "Khaled Abd Allah",
      "rank": 3,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "خالد",
          "output": "Khaled",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عبد",
          "output": "Abd",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_start"
          ],
          "layer": "L0",
          "pack_id": "protected:legacy+v2",
          "rule_id": "particle",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "reviewed",
          "band": "high",
          "band_reason": "protected_lexicon"
        },
        {
          "span": [
            2,
            3
          ],
          "input": "الله",
          "output": "Allah",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_end"
          ],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "khāld Abdallah",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "خالد",
          "output": "khāld",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:std-alalc",
          "rule_id": "rules:ALALC-KHA,ALALC-ALIF,ALALC-LAM,ALALC-DAL",
          "source": "",
          "entity_type": "",
          "convention": "std-alalc",
          "review_state": "standard",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            3
          ],
          "input": "عبد الله",
          "output": "Abdallah",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_end",
            "compound_start"
          ],
          "layer": "L0",
          "pack_id": "theophoric:legacy",
          "rule_id": "theophoric_compound",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "reviewed",
          "band": "high",
          "band_reason": "protected_lexicon"
        }
      ]
    },
    {
      "text": "ḫāld Abdallah",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "خالد",
          "output": "ḫāld",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:std-din31635",
          "rule_id": "rules:DIN-KHA,DIN-ALIF,DIN-LAM,DIN-DAL",
          "source": "",
          "entity_type": "",
          "convention": "std-din31635",
          "review_state": "standard",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            3
          ],
          "input": "عبد الله",
          "output": "Abdallah",
          "role": "theophoric",
          "role_confidence": 0.9,
          "attributes": [
            "compound_end",
            "compound_start"
          ],
          "layer": "L0",
          "pack_id": "theophoric:legacy",
          "rule_id": "theophoric_compound",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "reviewed",
          "band": "high",
          "band_reason": "protected_lexicon"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "auto",
    "orthography": "auto",
    "source": "default",
    "applied": "none"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

What to notice

  • Results are ranked; rank 1 is the spelling to show first.
  • Each token names its layer and rule.
  • The protected compound عبد الله stays one token.

Try a name in the playground

Latin to Arabic

Latin in, Arabic out. Leave target_script out and the direction is detected.

Public API, /v1
Request: POST /v1/transliterate
{
  "text": "Youssef Haddad",
  "max_results": 5
}
Response: 200
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "latn",
  "target_script": "arab",
  "results": [
    {
      "text": "يوسف حداد",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "Youssef",
          "output": "يوسف",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "Haddad",
          "output": "حداد",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "وسيف حداد",
      "rank": 2,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "Youssef",
          "output": "وسيف",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "rules:legacy",
          "rule_id": "mapper",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "Haddad",
          "output": "حداد",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "يوسف هدد",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "Youssef",
          "output": "يوسف",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "Haddad",
          "output": "هدد",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "rules:legacy",
          "rule_id": "mapper",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "يوسسيف حداد",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "Youssef",
          "output": "يوسسيف",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:ar-lb",
          "rule_id": "rules:CORE-L2A-CONS-Y,CORE-L2A-DIPH-OU,CORE-L2A-CONS-S,CORE-L2A-CONS-S",
          "source": "",
          "entity_type": "",
          "convention": "ar-lb",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "Haddad",
          "output": "حداد",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "يوسف هادداد",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "Youssef",
          "output": "يوسف",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "Haddad",
          "output": "هادداد",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:ar-lb",
          "rule_id": "rules:CORE-L2A-CONS-H,CORE-L2A-VOWEL-A,CORE-L2A-CONS-D,CORE-L2A-CONS-D",
          "source": "",
          "entity_type": "",
          "convention": "ar-lb",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "auto",
    "orthography": "auto",
    "source": "default",
    "applied": "none"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

What to notice

  • Leave target_script out and the direction is detected.
  • Each token carries a band and the reason for it.

Try a name in the playground

Per-token alternates

per_token returns each token with its alternates, for search keys.

Public API, /v1
Request: POST /v1/transliterate
{
  "text": "شريف عثمان",
  "target_script": "latn",
  "per_token": true
}
Response: 200
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Charif Osman",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "شريف",
          "output": "Charif",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عثمان",
          "output": "Osman",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Charif Athaman",
      "rank": 2,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "شريف",
          "output": "Charif",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عثمان",
          "output": "Athaman",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "rules:legacy",
          "rule_id": "mapper",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Sharif Osman",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "شريف",
          "output": "Sharif",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "rules:legacy",
          "rule_id": "mapper",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عثمان",
          "output": "Osman",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Charif Thman",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "شريف",
          "output": "Charif",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عثمان",
          "output": "Thman",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:core",
          "rule_id": "rules:CORE-A2L-CONS-AYN,CORE-A2L-CONS-THA,CORE-A2L-CONS-MIM,CORE-A2L-VOWEL-ALIF",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Shrif Osman",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "شريف",
          "output": "Shrif",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:core",
          "rule_id": "rules:CORE-A2L-CONS-SHIN,CORE-A2L-CONS-RA,CORE-A2L-VOWEL-YA,CORE-A2L-CONS-FA",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "legacy",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "عثمان",
          "output": "Osman",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    }
  ],
  "tokens": [
    {
      "text": "Charif",
      "alternates": []
    },
    {
      "text": "Osman",
      "alternates": []
    }
  ],
  "hints": {
    "dialect": "auto",
    "orthography": "auto",
    "source": "default",
    "applied": "none"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

What to notice

  • per_token returns each token with its own alternates.
  • Use them as search keys.

Try a name in the playground

Convention hints

One Arabic name, جمال قاسم, ranked for four conventions. Hints change the order of the spellings, never which spellings are possible; hints.convention names the convention used.

Convention

Lebanese French

lb-fr

country_hint: "LB" alone maps here first.

  1. 1Jamale Kassemmedium
  2. 2Jamal Kassemmedium
  3. 3Jamale Kasemlow
  4. 4Jamal Kasemlow
  5. 5Jmal Kassemlow
Show the JSON
{
  "text": "جمال قاسم",
  "target_script": "latn",
  "max_results": 5,
  "country_hint": "LB"
}
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Jamale Kassem",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamal Kassem",
      "rank": 2,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamale Kasem",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-fr",
          "rule_id": "rules:LBFR-QAF,CORE-A2L-VOWEL-ALIF,LBFR-SIN-DOUBLE,LBFR-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "lb-fr",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jamal Kasem",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-fr",
          "rule_id": "rules:LBFR-QAF,CORE-A2L-VOWEL-ALIF,LBFR-SIN-DOUBLE,LBFR-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "lb-fr",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jmal Kassem",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jmal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-fr",
          "rule_id": "rules:CORE-A2L-CONS-JIM,LBFR-EP-DEFAULT,LBFR-MIM-DOUBLE,CORE-A2L-VOWEL-ALIF",
          "source": "",
          "entity_type": "",
          "convention": "lb-fr",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "levantine",
    "orthography": "french",
    "source": "country",
    "applied": "engine",
    "convention": "lb-fr"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

Lebanese English

lb-en

country_hint: "LB" with orthography: "english".

  1. 1Jamale Kassemmedium
  2. 2Jamal Kassemmedium
  3. 3Jamale Qasem, differs from Lebanese French at this ranklow
  4. 4Jamal Qasem, differs from Lebanese French at this ranklow
  5. 5Jamale Qasim, differs from Lebanese French at this ranklow
Show the JSON
{
  "text": "جمال قاسم",
  "target_script": "latn",
  "max_results": 5,
  "orthography": "english",
  "country_hint": "LB"
}
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Jamale Kassem",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamal Kassem",
      "rank": 2,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamale Qasem",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-en",
          "rule_id": "rules:LEVANTEN-QAF,CORE-A2L-VOWEL-ALIF,LEVANTEN-SIN-DOUBLE,LEVANTEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "lb-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jamal Qasem",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-en",
          "rule_id": "rules:LEVANTEN-QAF,CORE-A2L-VOWEL-ALIF,LEVANTEN-SIN-DOUBLE,LEVANTEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "lb-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jamale Qasim",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasim",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:lb-en",
          "rule_id": "rules:LEVANTEN-QAF,CORE-A2L-VOWEL-ALIF,LEVANTEN-SIN-DOUBLE,LEVANTEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "lb-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "auto",
    "orthography": "english",
    "source": "request",
    "applied": "engine",
    "convention": "lb-en"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

Gulf English

gulf-en

dialect_hint: "gulf".

  1. 1Jamale Kassemmedium
  2. 2Jamal Kassemmedium
  3. 3Jamale Qasim, differs from Lebanese French at this ranklow
  4. 4Jamal Qasim, differs from Lebanese French at this ranklow
  5. 5Jamale Qasem, differs from Lebanese French at this ranklow
Show the JSON
{
  "text": "جمال قاسم",
  "target_script": "latn",
  "max_results": 5,
  "dialect_hint": "gulf"
}
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Jamale Kassem",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamal Kassem",
      "rank": 2,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamale Qasim",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasim",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:gulf-en",
          "rule_id": "rules:GULFEN-QAF,CORE-A2L-VOWEL-ALIF,GULFEN-SIN-DOUBLE,GULFEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "gulf-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jamal Qasim",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasim",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:gulf-en",
          "rule_id": "rules:GULFEN-QAF,CORE-A2L-VOWEL-ALIF,GULFEN-SIN-DOUBLE,GULFEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "gulf-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Jamale Qasem",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Qasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:gulf-en",
          "rule_id": "rules:GULFEN-QAF,CORE-A2L-VOWEL-ALIF,GULFEN-SIN-DOUBLE,GULFEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "gulf-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "gulf",
    "orthography": "auto",
    "source": "request",
    "applied": "engine",
    "convention": "gulf-en"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

Egyptian English

eg-en

dialect_hint: "egyptian".

  1. 1Jamale Kassemmedium
  2. 2Jamal Kassemmedium
  3. 3Gamal Kassem, differs from Lebanese French at this ranklow
  4. 4Jamale Kasem, differs from Lebanese French at this ranklow
  5. 5Gmal Kassem, differs from Lebanese French at this ranklow
Show the JSON
{
  "text": "جمال قاسم",
  "target_script": "latn",
  "max_results": 5,
  "dialect_hint": "egyptian"
}
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "arab",
  "target_script": "latn",
  "results": [
    {
      "text": "Jamale Kassem",
      "rank": 1,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamal Kassem",
      "rank": 2,
      "band": "medium",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Gamal Kassem",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Gamal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:eg-en",
          "rule_id": "rules:EGEN-JIM,EGEN-EP-DEFAULT,EGEN-MIM-DOUBLE,CORE-A2L-VOWEL-ALIF",
          "source": "",
          "entity_type": "",
          "convention": "eg-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "Jamale Kasem",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Jamale",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kasem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:eg-en",
          "rule_id": "rules:EGEN-QAF,CORE-A2L-VOWEL-ALIF,EGEN-SIN-DOUBLE,EGEN-EP-FINAL",
          "source": "",
          "entity_type": "",
          "convention": "eg-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        }
      ]
    },
    {
      "text": "Gmal Kassem",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "جمال",
          "output": "Gmal",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "pack:eg-en",
          "rule_id": "rules:EGEN-JIM,EGEN-EP-DEFAULT,EGEN-MIM-DOUBLE,CORE-A2L-VOWEL-ALIF",
          "source": "",
          "entity_type": "",
          "convention": "eg-en",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "قاسم",
          "output": "Kassem",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "family_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "egyptian",
    "orthography": "auto",
    "source": "request",
    "applied": "engine",
    "convention": "eg-en"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "medium",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

Tinted rows: a spelling that differs from Lebanese French at the same rank.

Arabizi input

Arabic typed in Latin letters and digits, as in chat. Send input_format: "arabizi"; without it, digits in a name are refused.

Arabizi input

Latin letters with the digits 3 and 7 standing for Arabic letters, as typed in chat. Send input_format arabizi: the digits 2, 3, 5, 6, 7, 8 and 9 are then accepted inside a Latin-script name and the name is converted to Arabic. Without it, digits are refused.

Public API, /v1
Request: POST /v1/transliterate
{
  "text": "7asan 3abdallah",
  "input_format": "arabizi",
  "max_results": 5
}
Response: 200
{
  "id": "tr_example",
  "object": "transliteration",
  "source_script": "latn",
  "target_script": "arab",
  "results": [
    {
      "text": "حسن عبدالله",
      "rank": 1,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "7asan",
          "output": "حسن",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "input:arabizi",
          "rule_id": "rules:AZ-7,AZ-A,AZ-S,AZ-A",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "3abdallah",
          "output": "عبدالله",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "حصن عبدالله",
      "rank": 2,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "7asan",
          "output": "حصن",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "input:arabizi",
          "rule_id": "rules:AZ-7,AZ-A,AZ-S,AZ-A",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "3abdallah",
          "output": "عبدالله",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "حسان عبدالله",
      "rank": 3,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "7asan",
          "output": "حسان",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "input:arabizi",
          "rule_id": "rules:AZ-7,AZ-A,AZ-S,AZ-A",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "3abdallah",
          "output": "عبدالله",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "حاسن عبدالله",
      "rank": 4,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "7asan",
          "output": "حاسن",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "input:arabizi",
          "rule_id": "rules:AZ-7,AZ-A,AZ-S,AZ-A",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "3abdallah",
          "output": "عبدالله",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    },
    {
      "text": "حصان عبدالله",
      "rank": 5,
      "band": "low",
      "abstained": false,
      "abstain_reasons": [],
      "tokens": [
        {
          "span": [
            0,
            1
          ],
          "input": "7asan",
          "output": "حصان",
          "role": "given",
          "role_confidence": 0.8,
          "attributes": [],
          "layer": "L2",
          "pack_id": "input:arabizi",
          "rule_id": "rules:AZ-7,AZ-A,AZ-S,AZ-A",
          "source": "",
          "entity_type": "",
          "convention": "none",
          "review_state": "draft",
          "band": "low",
          "band_reason": "rule_only"
        },
        {
          "span": [
            1,
            2
          ],
          "input": "3abdallah",
          "output": "عبدالله",
          "role": "family",
          "role_confidence": 0.7,
          "attributes": [],
          "layer": "L1",
          "pack_id": "lexicon:legacy",
          "rule_id": "entry",
          "source": "male_names",
          "entity_type": "person",
          "convention": "none",
          "review_state": "legacy",
          "band": "medium",
          "band_reason": "lexicon_variant_other_convention_or_unreviewed"
        }
      ]
    }
  ],
  "tokens": null,
  "hints": {
    "dialect": "auto",
    "orthography": "auto",
    "source": "default",
    "applied": "none"
  },
  "warnings": [],
  "engine_version": "1.0.0",
  "band": "low",
  "abstained": false,
  "abstain_reasons": [],
  "versions": {
    "pipeline": "v2",
    "engine_version": "1.0.0",
    "lexicon_version": "0b3f1cc017398b31ddaf0a8e05beb1c0893c2d1088638adb8e98f89a4486aaec",
    "normalisation_sha256": "fa8f8b250e791da816fb5d27fd15014ec0250004ff32fc94f39afbb90d957aa0",
    "arbiter_sha256": "9eab6ad56e64fffb5e45bafb4de57d26419091fc90c2df435843d45045b7651d",
    "l0_table_sha256": "0c725f75ea5e7ca7353a0afd169daaf844f710d63688c1d7244a69085ff6e4c1",
    "packs_ruleset_hash": "6579ff21becb90aa3918e703d55467ac9c8de4237b0f36a302fd3922712c00d1",
    "packs_manifest_count": "23",
    "conventions_hash": "dcf2413393ddc7ff522c975fdb2b656b390e8a84153dbc9d9d91154224a107ad",
    "practice_packs": "on",
    "l1_source": "legacy",
    "lexicon_hash": "legacy",
    "heldout_rows_removed": "0",
    "l3_hash": "off",
    "llm_mode": "off",
    "llm_policy_hash": "1b0337a3162e25026e6cab626d4149d1f59216495aaacacc8aa8da21875b3d43",
    "llm_policy_version": "1.0.0",
    "prompts_hash": "d0664ab0726925a295ef56c531c037ea153812b5cc8ec51dae443b1c7633d6aa",
    "bands": "path-based",
    "ruleset_hash": "2f6f291d21df02001e35e464df86214bbf116f527f08a99948813e90b4785874"
  },
  "units": 1
}

What to notice

  • Digits stand for Arabic letters, as typed in chat.
  • Without input_format arabizi, digits in a name are refused.

Digits as letters

7 stands for ح and 3 for ع, so 7asan 3abdallah becomes Arabic script.

Variants

The spellings a name is likely to take, in both scripts, ranked and typed. Use them to widen a search so one spelling finds the others.

Variants in both scripts

Standard variants: the spellings a name is likely to take, typed, in both scripts.

Public API, /v1
Request: POST /v1/variants
{
  "text": "جمال قاسم",
  "target_scripts": [
    "latn",
    "arab"
  ],
  "max_variants": 10
}
Response: 200
{
  "id": "va_example",
  "object": "variants",
  "mode": "standard",
  "variants": [
    {
      "text": "Jamale Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 1
    },
    {
      "text": "Jamal Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 2
    },
    {
      "text": "Jamale Qasm",
      "script": "latn",
      "type": "transliteration",
      "rank": 3
    },
    {
      "text": "Jamal Qasm",
      "script": "latn",
      "type": "transliteration",
      "rank": 4
    },
    {
      "text": "Jmal Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 5
    },
    {
      "text": "jmāl Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 6
    },
    {
      "text": "Jamale qāsm",
      "script": "latn",
      "type": "transliteration",
      "rank": 7
    },
    {
      "text": "ǧmāl Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 8
    },
    {
      "text": "Jamal qāsm",
      "script": "latn",
      "type": "transliteration",
      "rank": 9
    },
    {
      "text": "Gamal Kassem",
      "script": "latn",
      "type": "transliteration",
      "rank": 10
    }
  ],
  "phonetic_keys": null,
  "truncated": false,
  "hints": {
    "dialect": "auto",
    "orthography": "auto",
    "source": "default",
    "applied": "none"
  },
  "warnings": [
    "SAME_SCRIPT_VARIANTS_UNAVAILABLE"
  ],
  "engine_version": "1.0.0",
  "units": 1
}

What to notice

  • Variants are ranked and typed, in both scripts.
  • Use them to widen a search so one spelling finds the others.

Normalise

Clean a name before you store or compare it. Normalise removes hidden characters, tatweel and doubled spaces, turns Persian and look-alike letters into standard Arabic, and splits the name into words, so the same name typed twice is stored the same way.

Normalise

Clean input, tokens and, with return_arabic_and_latin, the other script. Name-part roles arrive with the engine.

Public API, /v1
Request: POST /v1/normalise
{
  "text": "  محمد   خليل ",
  "return_arabic_and_latin": true
}
Response: 200
{
  "id": "no_example",
  "object": "normalisation",
  "normalised": "محمد خليل",
  "matching_key": null,
  "script": "arab",
  "tokens": [
    {
      "text": "محمد",
      "role": "unknown",
      "kept": true
    },
    {
      "text": "خليل",
      "role": "unknown",
      "kept": true
    }
  ],
  "parts": {
    "given": null,
    "father": null,
    "grandfather": null,
    "family": null
  },
  "parts_confidence": "low",
  "transliterated_parts": {
    "script": "latn",
    "text": "Mohamad Khalil",
    "tokens": [
      "Mohamad",
      "Khalil"
    ],
    "given": null,
    "father": null,
    "grandfather": null,
    "family": null
  },
  "warnings": [
    "NAME_PARTS_UNAVAILABLE"
  ],
  "engine_version": "1.0.0",
  "units": 2
}

What to notice

  • Extra spaces are folded and the input is cleaned before anything else.
  • With return_arabic_and_latin, the other script comes back too.

Match

Two names in any script: a score, a decision and the reason for each token pair, 1 unit per pair.

Arabic against Latin

One name in Arabic script, one in Latin script. Each token pair carries its relation and the reason for it.

Public API, /v1
Request: POST /v1/match
{
  "name_a": {
    "text": "محمد الخوري"
  },
  "name_b": {
    "text": "Mohamad El Khoury"
  },
  "country_hint": "LB"
}
Response: 200
{
  "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
}

What to notice

  • The score and the decision come first; the decision uses the default thresholds of the scoring version.
  • Each token pair names its relation and its reason codes.

Family name first

The same tokens in another order. TOKEN_REORDER says the order changed; in this scoring version the change alone does not lower the score.

Public API, /v1
Request: POST /v1/match
{
  "name_a": {
    "text": "Rami Haddad"
  },
  "name_b": {
    "text": "Haddad Rami"
  }
}
Response: 200
{
  "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
}

What to notice

  • TOKEN_REORDER reports that the order changed.
  • Tokens are paired across the change in order.

Family name first, order ignored

The same pair with ignore_token_order: the order change is no longer reported.

Public API, /v1
Request: POST /v1/match
{
  "name_a": {
    "text": "Rami Haddad"
  },
  "name_b": {
    "text": "Haddad Rami"
  },
  "options": {
    "ignore_token_order": true
  }
}
Response: 200
{
  "id": "mt_example",
  "object": "match",
  "score": 1,
  "decision": "match",
  "thresholds": {
    "match": 0.982,
    "possible": 0.583
  },
  "reasons": [
    "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
}

What to notice

  • With ignore_token_order, TOKEN_REORDER leaves the reasons.

A different given name

Two given names that sound alike but are different names. The decision is possible, not match, and the token carries PHONETIC_EQUAL.

Public API, /v1
Request: POST /v1/match
{
  "name_a": {
    "text": "Hassan Haddad"
  },
  "name_b": {
    "text": "Hussein Haddad"
  }
}
Response: 200
{
  "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
}

What to notice

  • Hassan and Hussein sound alike but are different given names: possible, not match.
  • A possible decision sits between the two thresholds.

Your thresholds, no alignment

Your own thresholds decide the band, and explain false leaves the per-token alignment out.

Public API, /v1
Request: POST /v1/match
{
  "name_a": {
    "text": "رامي حداد"
  },
  "name_b": {
    "text": "Rami Haddad"
  },
  "thresholds": {
    "match": 0.95,
    "possible": 0.5
  },
  "options": {
    "explain": false
  }
}
Response: 200
{
  "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
}

What to notice

  • Thresholds in the request replace the defaults for this call.
  • With explain false, alignment is null.

Names, not people

A score says how likely two strings are spellings of the same name. It never says two records are the same person.

Try a pair

Compare two names of your own, in either script, without an account.

Open Match in the playground

Matching and scores guide

Run these with your key.

1,000 free calls a month. Test keys answer from fixtures and are never billed.