tetrak_translit.syr.fold

The Syriac fold: one consonantal index form for every spelling of a word.

For what a fold is for, see tetrak_translit.fold. Syriac is the first script here that is normally written without vowels, and the romanisations disagree most about exactly what the script leaves out. ALA-LC supplies the vowels of a dictionary (Penqítā, Qúrbānā); a romanisation by West Syriac pronunciation writes Fenqīthō and Qūrbōnō, with o for ALA-LC’s ā and the soft consonants spelled out; an East Syriac one, Ḥūdrā; a popular one, Qurbono. And the script writes ܦܢܩܝܬܐ, ܩܘܪܒܢܐ. The one thing all of them share is the consonants, so the key is the consonants.

So the rules are: Syriac is rendered through ALA-LC – the 2012 consonant table, frozen here as the other folds freeze theirs – with any vowel points it carries. Both sides are lowercased, with diacritics and the half rings ʾ and ʿ gone (so alaph and ʿē are dropped, as most romanisations drop them), and š kept apart from s and h and written c in the key, a letter nothing else leaves. Latin alone then has its spellings reduced: sh to š, the spelled-out soft consonants of the West romanisations (th, ph, kh, gh, dh, bh) and ch to their letters, f to p and c to k – never the Syriac side, whose ܕܗ is d and h, not a soft d. Then, on both sides, q becomes k and every vowel is removed, and with them w, y, j and v, which are waw and yod – the letters that also write long vowels, so that ú and ܘ meet. ḥ and h become one, ṭ and t, ṣ and s, q and k. Doubled letters are collapsed and anything that is not a letter or digit is removed: da-qdām is ܕܩܕܡ, one word, as the script writes it.

The key is deliberately coarse. Words that differ only in their matres or in alaph and ʿē share it (ܥܠ, on, and ܠܐ, not), which costs little in a search over titles and names and is the price of matching any romanisation at all.

Known gaps: Greek and Latin forms of names (Edessa for ܐܘܪܗܝ, Nisibis for ܢܨܝܒܝܢ), translated names (Bar Hebraeus, Isaac without the ḥ of ܐܝܣܚܩ), and Arabic in Syriac letters, whose romanisation writes j for ܓ. The test set in tests/data/syr_fold_cases.tsv is the published claim.

Functions

fold_token(token[, context])

Fold one whitespace-free token, Syriac or Latin, to its key.