Arabic to Latin
Arabic in, the ranked Latin rendering out, with the engine version.
{
"text": "خالد عبد الله",
"target_script": "latn",
"max_results": 5
}{
"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.
