Dataset Viewer
Auto-converted to Parquet Duplicate
map
stringclasses
4 values
variant
stringlengths
3
45
replacement
stringlengths
3
46
flags
stringclasses
3 values
origin
stringlengths
11
15
⌀
evidence
stringclasses
3 values
attested_as
stringlengths
3
22
⌀
source
float64
2.01k
2.01k
⌀
row_id
stringlengths
7
9
⌀
scan
stringlengths
10
12
⌀
verified
stringclasses
2 values
verdict
float64
usage_map.tsv
ئاشكارىلىۋىتىپتو
ئاشكارىلىۋېتىپتۇ
null
web web-009
none
null
null
null
null
null
null
usage_map.tsv
ئەمىلىيلەشتۈرمەك
ئەمەلىيلەشتۈرمەك
null
[2] D90-1-03770
exact
ئەمەلىيلەشتۈرمەك
2,009
D_02812
064_col2.png
yes
null
usage_map.tsv
داۋاملاشتۇرىلىدۇ
داۋاملاشتۇرۇلىدۇ
null
web web-163
stem
داۋاملاشتۇرۇل
2,009
D_14540
313_col3.png
yes
null
usage_map.tsv
پەسكارغا چۈشمەك
پەسكويغا چۈشمەك
null
[2] D90-1-08375
exact
پەسكويغا چۈشمەك
2,009
D_06110
132_col1.png
yes
null
usage_map.tsv
ئالاقىلاشقاندا
ئالاقىلەشكەندە
null
web web-014
stem
ئالاقىلەش
2,009
D_01380
033_col2.png
yes
null
usage_map.tsv
ئەمىلىيەتچىلىك
ئەمەلىيەتچىلىك
null
[2] D90-1-03768
exact
ئەمەلىيەتچىلىك
2,009
D_02808
064_col2.png
yes
null
usage_map.tsv
تۆۋە-ئىستىغپار
توۋا-ئىستىغپار
null
[2] D90-2-03718
exact
توۋا-ئىستىغپار
2,009
D_09425
205_col3.png
yes
null
usage_map.tsv
پۇخادىن چىقماق
پىغاندىن چىقماق
null
[2] D90-1-09065
exact
پىغاندىن چىقماق
2,009
D_07186
154_col3.png
yes
null
usage_map.tsv
ئاسارە-ئەتىقە
ئاسارئەتىقە
null
[2] D90-1-01051
exact
ئاسارئەتىقە
2,009
D_00854
019_col2.png
yes
null
usage_map.tsv
ئوسماقچىلىماق
ئاسماقچىلىماق
null
[2] D90-5-09943
exact
ئاسماقچىلىماق
2,009
D_00963
022_col2.png
yes
null
usage_map.tsv
ئۇقۇشماسچىلىق
ئۇقۇشماسلىق
null
[2] D90-5-08177
exact
ئۇقۇشماسلىق
2,009
D_32142
714_col3.png
yes
null
usage_map.tsv
ئەبىدىل-ئەبەت
ئەبەدىلئەبەد
null
[2] D90-1-02723
exact
ئەبەدىلئەبەد
2,009
D_02069
049_col1.png
yes
null
usage_map.tsv
ئەمىلىيلەشمەك
ئەمەلىيلەشمەك
null
[2] D90-1-03769
exact
ئەمەلىيلەشمەك
2,009
D_02811
064_col2.png
yes
null
usage_map.tsv
تالانتىلىقكەن
تالانتلىقكەن
null
web web-097
stem
تالانتلىق
2,009
D_07956
172_col1.png
yes
null
usage_map.tsv
رومانىتىكىلىق
رومانتىكىلىق
null
web web-190
exact
رومانتىكىلىق
2,009
D_15978
344_col2.png
yes
null
usage_map.tsv
رۇبائىلىرىدىن
رۇبائىيلىرىدىن
null
web web-192
stem
رۇبائىي
2,009
D_16012
345_col2.png
yes
null
usage_map.tsv
چالغۇلاشتۇردۇ
چالغۇلاشتۇرىدۇ
null
web web-126
none
null
null
null
null
null
null
usage_map.tsv
ئاسقاق-چولاق
ئاقساق-چولاق
null
[2] D90-1-01201
exact
ئاقساق-چولاق
2,009
D_01175
029_col2.png
yes
null
usage_map.tsv
ئەمىلىيەتسىز
ئەمەلىيەتسىز
null
[2] D90-1-03766
exact
ئەمەلىيەتسىز
2,009
D_02809
064_col2.png
yes
null
usage_map.tsv
رازىمەنچىلىك
رازىمەنلىك
null
[2] D90-3-02187
exact
رازىمەنلىك
2,009
D_15692
338_col3.png
yes
null
usage_map.tsv
سالاگەرچىلىك
سالاگەرلىك
null
[2] D90-3-04078
exact
سالاگەرلىك
2,011
D01-18013
586_2L.png
yes
null
usage_map.tsv
ئارخېلوگىيە
ئارخېئولوگىيە
null
[2] D90-1-00771
exact
ئارخېئولوگىيە
2,009
D_00580
013_col2.png
yes
null
usage_map.tsv
ئاسقاقلىماق
ئاقساقلىماق
null
[2] D90-1-01203
exact
ئاقساقلىماق
2,009
D_01176
029_col2.png
yes
null
usage_map.tsv
ئاشپەزچىلىك
ئاشپەزلىك
null
[2] D90-1-01285
exact
ئاشپەزلىك
2,009
D_00989
023_col1.png
yes
null
usage_map.tsv
ئاقىلانىلىق
ئاقىلانىلىك
null
web web-010
exact
ئاقىلانىلىك
2,009
D_01226
030_col2.png
yes
null
usage_map.tsv
ئاقپىشمىلاق
ئاقپىشماق
null
[2] D90-1-01716
exact
ئاقپىشماق
2,011
D01-01113
039_2L.png
yes
null
usage_map.tsv
ئالايتۇرماق
ئالايتماق
null
[2] D90-1-01937
exact
ئالايتماق
2,009
D_01407
034_col1.png
yes
null
usage_map.tsv
ئانارزارلىق
ئانارلىق
null
[2] D90-1-02373
exact
ئانارلىق
2,009
D_01753
041_col3.png
yes
null
usage_map.tsv
ئاچقۇزۇلماق
ئاچۇرۇلماق
null
[2] D90-1-00435
exact
ئاچۇرۇلماق
2,009
D_00331
007_col3.png
yes
null
usage_map.tsv
ئەخمىقانلىق
ئەخمىقانىلىك
null
web web-026
exact
ئەخمىقانىلىك
2,009
D_02264
053_col1.png
yes
null
usage_map.tsv
ئەمىلىيەتچى
ئەمەلىيەتچى
null
[2] D90-1-03767
exact
ئەمەلىيەتچى
2,009
D_02806
064_col1.png
yes
null
usage_map.tsv
ئەۋارىچىلىق
ئاۋارىچىلىك
null
web web-034
exact
ئاۋارىچىلىك
2,009
D_01874
043_col3.png
yes
null
usage_map.tsv
ئەۋرىشىملىق
ئەۋرىشىملىك
null
web web-035
exact
ئەۋرىشىملىك
2,009
D_02972
067_col2.png
yes
null
usage_map.tsv
ئەۋزەيلىمەك
ئەزۋەيلىمەك
null
[2] D90-1-03935
exact
ئەزۋەيلىمەك
2,009
D_02456
056_col3.png
yes
null
usage_map.tsv
باسماللىماق
باسماقدىماق
null
[2] D90-1-04346
exact
باسماقدىماق
2,009
D_03271
073_col3.png
yes
null
usage_map.tsv
باپكارچىلىق
باپكارلىق
null
[2] D90-1-04038
exact
باپكارلىق
2,009
D_03057
069_col2.png
yes
null
usage_map.tsv
تاپشۇرۇغىدا
تاپشۇرۇقىدا
null
web web-082
stem
تاپشۇرۇق
2,009
D_07381
159_col1.png
yes
null
usage_map.tsv
تاپشۇرۋالاي
تاپشۇرۇۋالاي
null
web web-083
stem
تاپشۇر
2,009
D_07378
159_col1.png
yes
null
usage_map.tsv
تاپشۇرۋىتىپ
تاپشۇرۇۋېتىپ
null
web web-084
stem
تاپشۇر
2,009
D_07378
159_col1.png
yes
null
usage_map.tsv
جىددىيچىلىك
جىددىيلىك
null
[2] D90-2-06020
exact
جىددىيلىك
2,009
D_11692
255_col2.png
yes
null
usage_map.tsv
جۇپلەشتۈرۈپ
جۈپلەشتۈرۈپ
null
web web-115
stem
جۈپلەشتۈر
2,009
D_11585
253_col2.png
yes
null
usage_map.tsv
خوسۇسىيەتكە
خۇسۇسىيەتكە
null
web web-146
stem
خۇسۇسىيەت
2,009
D_14030
303_col2.png
yes
null
usage_map.tsv
خولۇم-خوشنا
قولۇم-قوشنا
null
[2] D90-2-09014
exact
قولۇم-قوشنا
2,009
D_37400
486_col2.png
yes
null
usage_map.tsv
دانخورەكتىن
دانىخورەكتىن
null
web web-161
stem
دانىخورەك
2,009
D_14507
313_col1.png
yes
null
usage_map.tsv
دىياگىنوزدا
دىياگنوزدا
null
web web-177
stem
دىياگنوز
2,009
D_15601
336_col3.png
yes
null
usage_map.tsv
رىياسەتچلىك
رىياسەتچىلىك
null
web web-198
exact
رىياسەتچىلىك
2,009
D_16188
348_col3.png
yes
null
usage_map.tsv
رېمنوتچىلار
رېمونتچىلار
null
web web-196
stem
رېمونتچى
2,009
D_16115
347_col1.png
yes
null
usage_map.tsv
زەرگەرچىلىك
زەرگەرلىك
null
[2] D90-3-03189
exact
زەرگەرلىك
2,009
D_16365
352_col3.png
yes
null
usage_map.tsv
سالپى-ساياق
سالپا-ساياق
null
[2] D90-3-04129
exact
سالپا-ساياق
2,009
D_17016
368_col1.png
yes
null
usage_map.tsv
سەندۈرۈلمەك
سەنتۈرۈلمەك
null
[2] D90-3-04886
exact
سەنتۈرۈلمەك
2,009
D_17560
378_col2.png
yes
null
usage_map.tsv
سەيپۇڭچىلىك
سەيپۇڭلۇق
null
[2] D90-3-04989
exact
سەيپۇڭلۇق
2,011
D01-22126
609_2L.png
yes
null
usage_map.tsv
قانتۇرۇقلۇق
قاڭتۇرۇقلۇق
null
[2] D90-4-01354
exact
قاڭتۇرۇقلۇق
2,009
D_21533
468_col1.png
yes
null
usage_map.tsv
كىيگۈزۈشمەك
كىيدۈرۈشمەك
null
[2] D90-4-08224
exact
كىيدۈرۈشمەك
2,009
D_25942
573_col3.png
yes
null
usage_map.tsv
كىيگۈزۈلمەك
كىيدۈرۈلمەك
null
[2] D90-4-08225
exact
كىيدۈرۈلمەك
2,009
D_25943
573_col3.png
yes
null
usage_map.tsv
كۆچۈرگۈزمەك
كۆچۈرتمەك
null
[2] D90-4-06415
exact
كۆچۈرتمەك
2,009
D_24816
546_col2.png
yes
null
usage_map.tsv
مۆلجەللىمەك
مۆلچەرلىمەك
null
[2] D90-5-02623
exact
مۆلچەرلىمەك
2,009
D_28948
640_col1.png
yes
null
usage_map.tsv
مۇۋاپىقىيەت
مۇۋەپپەقىيەت
null
[2] D90-5-02563
exact
مۇۋەپپەقىيەت
2,009
D_28901
639_col1.png
yes
null
usage_map.tsv
يىرگىنىشلىك
يىرگىنچلىك
null
[2] D90-6-08446
exact
يىرگىنچلىك
2,009
D_37157
833_col3.png
yes
null
usage_map.tsv
يۇمچەكلىمەك
يۇمچاقلىماق
null
[2] D90-6-07088
exact
يۇمچاقلىماق
2,011
D02-17758
1360_1R.png
yes
null
usage_map.tsv
يېقىنداشماق
يېقىنلاشماق
null
[2] D90-6-08094
exact
يېقىنلاشماق
2,009
D_37015
830_col1.png
yes
null
usage_map.tsv
پەۋقۇلئاددا
پەۋقۇلئاددە
null
web web-067
exact
پەۋقۇلئاددە
2,009
D_06244
135_col1.png
yes
null
usage_map.tsv
ئابۇ ھايات
ئابىھايات
null
[2] D90-1-00058
exact
ئابىھايات
2,009
D_00046
002_col1.png
yes
null
usage_map.tsv
ئابۇكەۋسەر
ئابىكەۋسەر
null
[2] D90-1-00055
exact
ئابىكەۋسەر
2,009
D_00044
002_col1.png
yes
null
usage_map.tsv
ئالغۇچىلىق
ئالغۇچىلىك
null
web web-015
stem
ئالغۇچى
2,009
D_01503
036_col3.png
yes
null
usage_map.tsv
ئالىيجاناپ
ئالىيجاناب
null
web web-017
exact
ئالىيجاناب
2,009
D_01635
039_col1.png
yes
null
usage_map.tsv
ئاھالىسىغا
ئاھالىسىگە
null
web web-020
stem
ئاھا
2,011
D01-01748
060_1R.png
yes
null
usage_map.tsv
ئىزمىلىماق
ئىزمىلىمەك
null
[2] D90-6-02644
exact
ئىزمىلىمەك
2,009
D_34585
770_col3.png
yes
null
usage_map.tsv
ئىغاڭلىماق
ئىرغاڭلىماق
null
[2] D90-6-03363
exact
ئىرغاڭلىماق
2,009
D_34493
769_col1.png
yes
null
usage_map.tsv
ئىككىنەنچى
ئىككىنچى
null
[2] D90-6-03673
exact
ئىككىنچى
2,009
D_35011
781_col1.png
yes
null
usage_map.tsv
ئىگەللىمەك
ئىگىلىمەك
null
[2] D90-6-03726
exact
ئىگىلىمەك
2,009
D_35050
781_col3.png
yes
null
usage_map.tsv
ئۇشقۇيتماق
ئۇشقىرتماق
null
[2] D90-5-08156
exact
ئۇشقىرتماق
2,009
D_32121
714_col2.png
yes
null
usage_map.tsv
ئەتتىگەندە
ئەتىگەندە
null
web web-024
stem
ئەتىگەن
2,009
D_02200
051_col3.png
yes
null
usage_map.tsv
ئەمىلىيلىك
ئەمەلىيلىك
null
[2] D90-1-03772
exact
ئەمەلىيلىك
2,011
D01-02789
095_1R.png
yes
null
usage_map.tsv
ئەندىلىكتە
ئەمدىلىكتە
null
[2] D90-1-03842
exact
ئەمدىلىكتە
2,009
D_02827
064_col3.png
yes
null
usage_map.tsv
ئەندىلەتىن
ئەمدىلەتىن
null
[2] D90-1-03843
exact
ئەمدىلەتىن
2,009
D_02826
064_col3.png
yes
null
usage_map.tsv
ئەندەرىمەك
ئۆندەرىمەك
null
[2] D90-1-03816
exact
ئۆندەرىمەك
2,009
D_32853
731_col1.png
yes
null
usage_map.tsv
ئەگرىسوناي
ئەگرىسۇناي
null
web web-033
exact
ئەگرىسۇناي
2,009
D_02672
061_col3.png
yes
null
usage_map.tsv
بارغانسىرى
بارغانسېرى
null
web web-040
exact
بارغانسېرى
2,009
D_03173
071_col2.png
yes
null
usage_map.tsv
باشقىچىراق
باشقىچىرەك
null
web web-042
none
null
null
null
null
null
null
usage_map.tsv
باھادىرلىق
باتۇرلۇق
null
[2] D90-1-05020
exact
باتۇرلۇق
2,009
D_03075
069_col3.png
yes
null
usage_map.tsv
بومبايتماق
دومبايتماق
null
[2] D90-1-05862
exact
دومبايتماق
2,009
D_15007
323_col2.png
yes
null
usage_map.tsv
بىلجىرىماق
بىلجىرلىماق
null
[2] D90-1-07202
exact
بىلجىرلىماق
2,009
D_05166
112_col2.png
yes
null
usage_map.tsv
بۇدرۇققىنا
بۇدرۇققىنە
null
web web-053
stem
بۇدرۇق
2,009
D_04271
094_col1.png
yes
null
usage_map.tsv
بەش مالتاق
باش بارماق
null
[2] D90-1-05344
exact
باش بارماق
2,009
D_03285
074_col1.png
yes
null
usage_map.tsv
بەلدىرەڭگە
بەردەنكە
null
[2] D90-1-05426
exact
بەردەنكە
2,011
D01-03852
130_2L.png
yes
null
usage_map.tsv
تاتلىققىنا
تاتلىققىنە
null
web web-085
stem
تاتلىق
2,009
D_01109
025_col3.png
yes
null
usage_map.tsv
تاختىمۆشۈك
تاختىمۈشۈك
null
web web-086
exact
تاختىمۈشۈك
2,009
D_07466
160_col3.png
yes
null
usage_map.tsv
تاساددىبىي
تاسادىپىي
null
web web-092
exact
تاسادىپىي
2,009
D_07664
165_col2.png
yes
null
usage_map.tsv
تاللىۋىلىپ
تاللىۋېلىپ
null
web web-098
none
null
null
null
null
null
null
usage_map.tsv
تاپشۇرشىدۇ
تاپشۇرۇشىدۇ
null
web web-081
stem
تاپشۇرۇش
2,009
D_07378
159_col1.png
yes
null
usage_map.tsv
خوتونپەرەس
خوتۇنپەرەس
null
web web-143
stem
خوتۇن
2,009
D_13893
300_col3.png
yes
null
usage_map.tsv
خىرىستالغا
خىرۇستالغا
null
web web-156
stem
خىرۇستال
2,009
D_14188
306_col2.png
yes
null
usage_map.tsv
خۇدۇكسىنىپ
خۇدۈكسىنىپ
null
web web-144
stem
خۇدۈكسىن
2,009
D_14004
302_col3.png
yes
null
usage_map.tsv
خۇشالچىلىق
خۇشاللىق
null
[2] D90-2-09157
exact
خۇشاللىق
2,009
D_14044
303_col3.png
yes
null
usage_map.tsv
خۈنۈكلىشىپ
خۇنۈكلىشىپ
null
web web-149
stem
خۇنۈك
2,009
D_14099
304_col3.png
yes
null
usage_map.tsv
خېزمەتچىسى
خىزمەتچىسى
null
web web-157
stem
خىزمەتچى
2,009
D_14197
306_col2.png
yes
null
usage_map.tsv
دارىلئاجىز
دارىلئاجىزىن
nosfx
[2] D90-3-00138
exact
دارىلئاجىزىن
2,009
D_14353
310_col1.png
yes
null
usage_map.tsv
دىخانلارچە
دېھقانلارچە
null
web web-175
stem
دېھقان
2,009
D_15367
332_col1.png
yes
null
usage_map.tsv
رېسىتۇرانى
رېستورانى
null
web web-194
stem
رېستوران
2,009
D_16087
346_col3.png
yes
null
usage_map.tsv
رەڭگى-روھى
رەڭگىروي
null
[2] D90-3-02458
exact
رەڭگىروي
2,009
D_15872
342_col2.png
yes
null
End of preview. Expand in Data Studio

uyghur-normalizer

Release 4.0.0 (2026-11-29).

Mirror. The canonical repository is github.com/UyghurReferenceTexts/uyghur-normalizer. Please open issues and pull requests there, and cite the Zenodo DOI below. The dataset viewer shows normalizer/provenance.tsv: every rule of the four maps with the dictionary row and scan image that attest it.

DOI SWH ORCID License: MIT License: CC BY 4.0

Normalizes Uyghur (ئۇيغۇر) text to the 2009 orthographic standard, and replaces terminology calqued from Chinese with Uyghur equivalents.

No dependencies and no network. Python 3.10+.

python uyghur_normalizer.py --in text.txt            # scan: report only
python uyghur_normalizer.py --in text.txt --apply    # write text_fixed.txt

It never edits in place, and by default it writes nothing at all.

Companion dataset: uyghur-headword-lists (Hugging Face), the audited headword lists of the dictionaries below. Every map in this repository is checked against them.


What it does

Three passes, in a fixed order:

pass map fixes
1 calque_map.tsv terminology calqued from Chinese
2 era_map.tsv pre-2009 spellings
3 imla_loan_map.tsv loanword shape under the 2009 reform

The order is load-bearing. Pass 1 runs first so its replacements are themselves normalized by passes 2–3; pass 3 consumes pass 2's output.

Each pass can be switched off (--no-calque, --no-era, --no-loan). That matters more than it sounds: pass 1 makes editorial changes, and someone correcting OCR on a 1980s manuscript may want the orthography fixed and the vocabulary of the period left exactly as printed.

Two more passes are opt-in. Pass 0 corrects common misuses of words, from the 6-volume dictionary [2]; see Pass 0. Pass 4 handles forms produced by a specific machine-translation model; see Pass 4.

Orthographic authority

The standard followed throughout is the 2009 orthography dictionary, Hazirqi zaman Uyghur edebiy tilining imla lughiti (imla we teleppuz qa'idisi) — reference [4] below. Its rule prose and its word list are two parts of one book, and where they disagree the word list wins: the example lists inside the rule prose carry transcription noise and were not used as evidence.

The explanatory dictionaries [1] and [2] are used to arbitrate and to confirm that a form is actually attested. The 2006 Uyghur–Chinese dictionary [3] is the opposite kind of source: its table of countries, capitals and currencies records the older spellings of those names, so it supplies the left-hand side of a rule, never the right. Its headwords have not been used.

The target is the codified 2009 standard, not contemporary web or diaspora usage. The clearest case is the ـىيە class: this tool produces تېررىتورىيەسى, not the widely-seen تېررىتورىيىسى. If you want to match how Uyghur is written online today, this is the wrong tool.


Suffixes

A rule matches at a word boundary and may be followed by suffixes. Concatenating the replacement and the suffix is wrong whenever the two sides differ in vowel harmony, final-consonant voicing, or vowel-versus-consonant ending:

زۇڭتۇڭلار  →  پىرېزىدېنتلار    wrong, needs -لەر
گۇڭشېدە    →  كوممۇنادە        wrong, needs -دا
داشۆگە     →  ئالىي مەكتەپگە   wrong, needs -كە

So the suffix is re-derived morpheme by morpheme against the replacement. There are three outcomes:

  • safe — both sides agree, so concatenation cannot change any allomorph.
  • rewrite — they disagree and every morpheme is recognized; correct allomorphs are emitted.
  • decline — a morpheme is unrecognized, or the replacement carries no harmony-bearing vowel. The text is left untouched and the case is reported.

Declining is deliberate. A normalizer that guesses is worse than one that says it doesn't know, because a plausible wrong form is harder to find later than an unchanged one. Everything declined is printed, and --review writes it to CSV so the cases can be added to a map explicitly.

Rule flags

An optional third column carries per-rule flags:

variant<TAB>standard<TAB>flags

nosfx — fire only on the bare form. Use when the replacement is already inflected:

سوغۇق ئۇرۇش	سوغۇقچىلىق ئۇرۇشى	nosfx

Without it, سوغۇق ئۇرۇشى matches this rule with ى captured as a suffix, and the possessive is applied a second time.

raise — the replacement's final ا/ە raises to ى before a suffix (ئامېرىكا + دا → ئامېرىكىدا).

Raising is off by default, which is a deliberate and slightly surprising choice. The rule is real and productive, but the exceptions are not marginal: the ـىيە class does not raise, and in a 2009-imla map it dominates. In the era map shipped here, 362 of the 364 ە-final replacements are in classes that must not raise. Turning raising on globally would mean:

پارتىيى + لەر  →  پارتىيىلەر

— the rule returning its own input, silently undoing the reform it exists to enforce while the report still claims a substitution. So it is opt-in, per rule.

Raising between suffixes (تىبەت + تا + مۇ → تىبەتتىمۇ) is always on and is not affected by the flag: only the locative and dative end in ا/ە, and only مۇ can follow them, so that case is narrow and well attested.

poss — the replacement is a possessive compound that already ends in the 3rd-person possessive, while the variant is a bare noun:

دۈيجاڭ	ئەترەت باشلىقى	poss

A possessive on the variant is absorbed (دۈيجاڭى‎ → ئەترەت باشلىقى‎, not …باشلىقىسى‎), and case endings follow the possessive (دۈيجاڭغا‎ → ئەترەت باشلىقىغا‎). A plural, ‑لىق‎, ‑چى‎ or ‑سىز‎ would have to go inside the compound (ئەترەت باشلىقلىرى‎), which the tool cannot derive safely, so it declines and reports. Give such forms a rule of their own:

دۈيجاڭلار	ئەترەت باشلىقلىرى	poss

Pass 0: common misuses

The 6-volume izahliq lughet [2] lists common misuses as their own headwords and marks the correct form with توغرىسى, e.g. ئاپارات‎ → ئاپپارات‎. normalizer/usage_map.tsv turns those entries into rules:

python uyghur_normalizer.py --in text.txt --usage --apply

A second, smaller source is a list of common misspellings circulated online, each written "(X ئەمەس) Y" (tools/usage_web_pairs.tsv), transcribed and checked by hand against the images.

It is off by default because it corrects word choice rather than spelling, and would also "correct" a regional or literary form used on purpose.

Pass 0 runs before pass 1, so a pre-2009 spelling in [2]'s correct form is normalized by passes 2–3: گىراپا‎ → گرافىك‎ → گىرافىك‎.

The map is generated by tools/build_usage_map.py, not edited by hand. A pair is left out when its wrong form is a headword of [4] or [1] or a word inside one (ئال‎ "take", گۈندە‎ in ئارا گۈندە‎), when it has three letters or fewer, or when its correct form is not attested in [4] or [1]. Every rule's correct form is attested in a row of [4] or [1] checked against the scan; normalizer/provenance.tsv gives the row and the [2] entry it came from. Where [2]'s form is correct but older than [4] and [1], the newer form is set in tools/usage_target_overrides.tsv.


Pass 4: model-specific fixes

Machine translation models produce forms that are not in their fine-tuning data and cannot be fixed by correcting that data. The finding this pass exists for: a rule was added to calque_map.tsv, the training corpus was verified at 100% compliance — zero occurrences of the wrong form — and every checkpoint still emitted it. Fine-tuning did not overwrite what the base model had already learned.

Correcting the corpus cannot fix a form that was never in the corpus. That requires an output-side pass:

python uyghur_normalizer.py --in output.txt --fix-map my_fixes.tsv --apply

There is no default path, and no map of this kind ships enabled. These rules describe one model, not the language. examples/output_fix_map.examples.tsv shows the shape and the level of evidence expected — every rule cites the checkpoint and the measured cost. Yours will be different, because your base model is different.

Do not add these rules to calque_map.tsv. A corpus-compliance check counts occurrences in the corpus; adding forms that were never there makes the check report violations that do not exist.


Vetting new rules

check_new_rules.py audits a batch of proposed rules before any of them reach a map. It writes nothing to the maps: a clean TSV of what is safe to append, and a CSV of everything a human has to decide.

python check_new_rules.py --xlsx new_terms.xlsx \
    --maps normalizer/*_map.tsv \
    --target-map normalizer/imla_loan_map.tsv \
    --out-dir review

Codes: REVERSE (an existing map already rewrites the other way — one of the two is wrong), CONFLICT, CHAIN, DUPLICATE, NAMING (word counts differ, so it is a terminology change rather than an orthographic one), SUBSTRING, SHORT, HYGIENE.

CHAIN is scoped to a single map on purpose. Passes run calque → era → imla_loan, so era producing a form that imla_loan then rewrites is the design. A chain within one map is a real defect, and it is often subtler than it looks. A worked example from this repo's own history: a dictionary batch proposed both

كىنگستون → كىڭستون      (Kingston, Jamaica)
كىڭستون  → كىڭستوۋن     (Kingstown, St Vincent)

The 2011 spelling of Kingston is identical to the 2006 spelling of Kingstown. No rule ordering can separate them, and the second rule would corrupt every correctly-spelled Kingston. It was dropped. String rewriting has limits, and the useful thing a tool can do is find them before a human does.


Input formats

Plain text, .jsonl (rewrites translation.ug), and EN: / UG: benchmark blocks (only UG: lines are touched) are detected automatically.

Arabic presentation forms are folded and text is NFC-normalized on load, so badly-encoded OCR output still matches.


Tests

python -m unittest discover -s tests -v

tests/test_suffix.py covers the morphology. tests/test_maps.py enforces the invariants on the map data itself: no duplicate left-hand sides, no rule mapping a form to itself, no map rewriting into its own left-hand side, NFC throughout, no padded fields, recognized flags only, every rule fires on its own input, and the pipeline is idempotent — normalizing twice equals normalizing once.

The idempotence test is the one that catches real damage. It is how the Kingston collision above was found.

tests/test_lexicon.py runs the pipeline over every headword and sub-entry of [4] and [1] (tests/data/lexicon_snapshot.tsv.gz, built from uyghur-headword-lists). Those are already in the target orthography, so nothing may change. Only rows checked by hand against the scan can fail the test: the remaining rows were extracted by a model trained on web Uyghur, which may have written a web form the book does not print. Hits on those are reported instead, and tools/lexicon_review.py writes them out with their row ids and scan images. Genuine exceptions are listed, with their scans, in tests/data/lexicon_exceptions.tsv.

After the headword lists change, rebuild the derived files:

python tools/build_lexicon_snapshot.py --imla <2009 xlsx> --izahliq <2011 vol1> <2011 vol2>
python tools/build_usage_map.py --vol1990 <vol1> ... <vol6>
python tools/build_provenance.py

Limitations

  • Rules are literal strings, so a form the map has never seen is not corrected.
  • Vowel raising alters the stem, so ئامېرىكىدا does not match a rule whose left-hand side is ئامېرىكا. Inflected forms may need their own entries.
  • Raised suffix allomorphs are not recognized on the input side: شىزاڭدىمۇ is declined rather than derived, and wants an explicit entry.
  • The tool has no idea what a word means. ئۈزۈك سەپ and مىللىي دۆلەت are terminological preferences, not corrections, and reasonable translators disagree. Read calque_map.tsv before trusting it on your text.

Maps as data

The maps are the substance here; the script is a few hundred lines of regex around them. They were built word by word against the sources below, and the 2009 word list was treated as final throughout. Frequency-zero rules are kept: a rule that has never fired is dormant, not wrong.


Sources

The spelling rules (passes 0, 2 and 3) are traceable to these four books. The terminology rules of pass 1 come from the corpora listed after them.

[1] ھازىرقى زامان ئۇيغۇر تىلىنىڭ ئىزاھلىق لۇغىتى (قىسقارتىلمىسى) Hazirqi zaman Uyghur tilining izahliq lughiti (qisqartilmisi). Sh.U.A.R. Milletler Til-Yéziq Xizmiti Komitéti (comp.); chief compilers Hemdulla Abdurehman Imam, Perhat Nur, Esqer Abduqadir. Shinjang Xelq Neshriyati, Ürümchi, 2011. ISBN 978-7-228-13933-0. (1st ed. 1999, chief editors Abliz Yaqup and Ghenizat Gheyurani.) → Attestation and arbitration.

[2] ئۇيغۇر ئەدەبىي تىلىنىڭ ئىزاھلىق لۇغىتى، 1–6 توم Uyghur edebiy tilining izahliq lughiti, vols. 1–6. Compilers Abliz Yaqup, Ghenizat Gheyurani, Ismail Qadir, Hemdulla Abduraxman, Perhat Nur, Abliz Emet, Esqer Abduqadir, Abduzahir Tahir, Ablikim Réhimjan, Zayit Héwil. Milletler Neshriyati, Beijing, 1990–1999. ISBN 7-105-00928-4 (vol. 1, 1990); 7-105-01431-8 (vol. 2, 1991); 7-105-01692-2 (vol. 3, 1992); 7-105-02248-5 (vol. 4, 1994); 7-105-02578-6 (vol. 5, 1996); 7-105-03227-8 (vol. 6, 1999). → Attestation for words absent from [1]. Source of the usage map (pass 0).

[3] ئۇيغۇرچە - خەنزۇچە لۇغەت Uyghurche–Xenzuche lughet. Sh.U.A.R. Milletler Til-Yéziq Xizmiti Komitéti (comp.); responsible editor Yaqup Muhemmetrozi. Milletler Neshriyati, Beijing, 2006. ISBN 7-105-07803-0. → Its table of countries, capitals and currencies only: the pre-reform spellings on the left-hand side of the country and capital rules in imla_loan_map.tsv, aligned against [4]. The dictionary's headwords have not been extracted or used.

[4] ھازىرقى زامان ئۇيغۇر ئەدەبىي تىلىنىڭ ئىملا لۇغىتى (ئىملا ۋە تەلەپپۇز قائىدىسى) Hazirqi zaman Uyghur edebiy tilining imla lughiti (imla we teleppuz qa'idisi). Mirsultan Osmanof, Tahir Abduweli, Abdughappar Abduraxman, Memet'éli Abdurehim, Anargül Abdurehim, Enwer Exmet. Shinjang Xelq Neshriyati, Ürümchi, 2009. ISBN 978-7-228-12817-4. The orthographic standard followed throughout this repository. The rule prose cited in the map headers as the imla qa'idisi is the introductory section of this book, not a separate work.

None of these are distributed here. They are in print, and a correction is far easier to act on if it cites one of them by page.

Corpora. The terminology of calque_map.tsv (pass 1) does not come from [3]. Its first rules were mined from the parallel Chinese–Uyghur law texts of prc-laws-bilingual. A few were added during the audit of [1], [2] and [4], from prc-primary-documents and from the web. The rules added on 2026-10-18 rest on cross-references and [خەن] entries in [1], [2] and [4]; the evidence row of each is given in a comment above it.


Contributing and corrections

A correction is more valuable than a new rule, and both are welcome.

If you think a rule is wrong, open an issue. Include the form, the rule as it stands, what you think it should be, and a citation — book and page from the list above. "This looks wrong to me" is a fine issue too, but it will sit until someone can check it against a dictionary.

If you want to add rules, run them through check_new_rules.py first and say in the pull request what it reported. Rules that arrive already vetted get merged; rules that arrive as a raw list get vetted by whoever reviews them, which is slower.

Whether a form is correct is a discussion, not a patch. Open the issue before the pull request. The tests will tell you if a rule breaks the map; they cannot tell you if a rule is bad Uyghur.


License

Code (uyghur_normalizer.py, check_new_rules.py, tests/*.py, tools/*.py): MIT.

Data (normalizer/*.tsv, examples/*.tsv, tests/data/, tools/*.tsv): CC BY 4.0.

Downloads last month
158