Dataset Viewer
Auto-converted to Parquet Duplicate
map
stringclasses
4 values
variant
stringlengths
3
45
replacement
stringlengths
3
46
flags
stringclasses
2 values
origin
stringclasses
543 values
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
[2] D90-1-03770
exact
ئەمەلىيلەشتۈرمەك
2,009
D_02812
064_col2.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
[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,011
D02-12778
1163_2L.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
[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
[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
[2] D90-1-03767
exact
ئەمەلىيەتچى
2,009
D_02806
064_col1.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
[2] D90-2-06020
exact
جىددىيلىك
2,009
D_11692
255_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
[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,011
D01-18596
606_2L.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,011
D02-08703
1016_1R.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
[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
[2] D90-6-02644
exact
ئىزمىلىمەك
2,011
D02-15518
1269_2L.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
[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
[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
[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
[2] D90-2-09157
exact
خۇشاللىق
2,009
D_14044
303_col3.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
[2] D90-3-02458
exact
رەڭگىروي
2,009
D_15872
342_col2.png
yes
null
usage_map.tsv
قەلەمتۇراچ
قەلەمتىراش
null
[2] D90-4-01854
exact
قەلەمتىراش
2,009
D_03802
085_col1.png
yes
null
usage_map.tsv
مۇلجالىماق
مۆلچەرلىمەك
null
[2] D90-5-02422
exact
مۆلچەرلىمەك
2,009
D_28948
640_col1.png
yes
null
usage_map.tsv
مەرەكلىمەك
مۇبارەكلىمەك
null
[2] D90-5-00968
exact
مۇبارەكلىمەك
2,011
D02-08203
998_2L.png
yes
null
usage_map.tsv
يالاڭدىماق
يالاڭلىماق
null
[2] D90-6-05412
exact
يالاڭلىماق
2,009
D_35915
801_col1.png
yes
null
usage_map.tsv
يېقىندىماق
يېقىنلىماق
null
[2] D90-6-08095
exact
يېقىنلىماق
2,009
D_37013
830_col1.png
yes
null
usage_map.tsv
پەيدىن-پەي
پەيدىنپەي
null
[2] D90-1-08561
exact
پەيدىنپەي
2,009
D_06257
135_col2.png
yes
null
usage_map.tsv
چىڭگىلىماچ
جىڭگىلىماچ
null
[2] D90-2-08165
exact
جىڭگىلىماچ
2,011
D01-12151
390_2L.png
yes
null
usage_map.tsv
ھىتىرقىماق
يېتىرقىماق
null
[2] D90-5-06362
exact
يېتىرقىماق
2,011
D02-18177
1375_1R.png
yes
null
usage_map.tsv
ھۆتمىتۆشۈك
ئۆتمىتۆشۈك
null
[2] D90-5-06057
exact
ئۆتمىتۆشۈك
2,011
D02-13097
1176_1R.png
yes
null
usage_map.tsv
ھۆزۈرخالىق
ئۆزرىخاھلىق
null
[2] D90-5-06108
exact
ئۆزرىخاھلىق
2,009
D_32575
725_col2.png
yes
null
usage_map.tsv
ھۇشقۇرتماق
ئۈشقىرتماق
null
[2] D90-5-06042
exact
ئۈشقىرتماق
2,009
D_33026
735_col3.png
yes
null
usage_map.tsv
ئابايامقى
ئابايىقى
null
[2] D90-1-00011
exact
ئابايىقى
2,009
D_00009
001_col1.png
yes
null
usage_map.tsv
ئابۇچەشمە
ئابىچەشمە
null
[2] D90-1-00054
exact
ئابىچەشمە
2,009
D_00039
002_col1.png
yes
null
usage_map.tsv
ئارىسالدا
ئارىسالدى
null
[2] D90-1-00909
exact
ئارىسالدى
2,009
D_00729
016_col1.png
yes
null
usage_map.tsv
ئازىلىماق
ئارزۇلىماق
null
[2] D90-1-01048
exact
ئارزۇلىماق
2,009
D_00606
014_col1.png
yes
null
usage_map.tsv
ئاپىدىيان
ئارپىبەدىيان
null
[2] D90-1-00139
exact
ئارپىبەدىيان
2,009
D_00531
012_col3.png
yes
null
usage_map.tsv
ئاچتۇرماق
ئاچۇرماق
null
[2] D90-1-00393
exact
ئاچۇرماق
2,009
D_00330
007_col3.png
yes
null
usage_map.tsv
ئاچقۇزماق
ئاچۇرماق
null
[2] D90-1-00434
exact
ئاچۇرماق
2,009
D_00330
007_col3.png
yes
null
usage_map.tsv
ئىتتىرمەك
ئىتتەرمەك
null
[2] D90-6-01966
exact
ئىتتەرمەك
2,009
D_34286
762_col3.png
yes
null
usage_map.tsv
ئىرجايماق
ھىجايماق
null
[2] D90-6-02465
exact
ھىجايماق
2,011
D02-11489
1113_2L.png
yes
null
usage_map.tsv
ئىستاتىكا
ستاتىستىكا
null
[2] D90-6-02723
exact
ئىستاتىستىكا
2,009
D_34652
772_col1.png
yes
null
usage_map.tsv
ئىشتىرمەك
ئىتتەرمەك
null
[2] D90-6-03189
exact
ئىتتەرمەك
2,009
D_34286
762_col3.png
yes
null
usage_map.tsv
ئىلناشماق
ئىلىنىشماق
null
[2] D90-6-03919
exact
ئىلىنىشماق
2,009
D_35202
785_col1.png
yes
null
usage_map.tsv
ئۇردۇرماق
ئۇرغۇزماق
null
[2] D90-5-07889
exact
ئۇرغۇزماق
2,009
D_31968
710_col3.png
yes
null
usage_map.tsv
ئۇشقىتماق
ئۇشقىرتماق
null
[2] D90-5-08157
exact
ئۇشقىرتماق
2,009
D_32121
714_col2.png
yes
null
usage_map.tsv
ئەتىمالىم
ئېھتىمال
null
[2] D90-1-02862
exact
ئېھتىمال
2,011
D02-14996
1247_1R.png
yes
null
usage_map.tsv
ئەرتىسلىك
ئارتىسلىق
null
[2] D90-1-03057
exact
ئارتىسلىق
2,009
D_00557
013_col1.png
yes
null
usage_map.tsv
ئەمىلىيەت
ئەمەلىيەت
null
[2] D90-1-03765
exact
ئەمەلىيەت
2,009
D_02802
064_col1.png
yes
null
usage_map.tsv
ئەنگۈشتەر
ئەڭگۈشتەر
null
[2] D90-1-03865
exact
ئەڭگۈشتەر
2,009
D_02700
062_col2.png
yes
null
usage_map.tsv
ئەيھەنناس
ئەييۇھەنناس
null
[2] D90-1-04002
exact
ئەييۇھەنناس
2,009
D_03044
068_col3.png
yes
null
usage_map.tsv
ئەۋىدىمەك
ئەدىمەك
null
[2] D90-1-03947
exact
ئەدىمەك
2,009
D_02266
053_col1.png
yes
null
usage_map.tsv
باردۇرماق
بارغۇزماق
null
[2] D90-1-04183
exact
بارغۇزماق
2,009
D_03175
071_col3.png
yes
null
usage_map.tsv
بومبايماق
دومبايماق
null
[2] D90-1-05863
exact
دومبايماق
2,009
D_15006
323_col2.png
yes
null
usage_map.tsv
بۇتناشماق
باتناشماق
null
[2] D90-1-06000
exact
باتناشماق
2,009
D_03069
069_col2.png
yes
null
usage_map.tsv
جاھاننامە
جاھاننەما
null
[2] D90-2-05484
exact
جاھاننەما
2,011
D01-11559
373_2L.png
yes
null
usage_map.tsv
دۈكىرىمەك
دۈركىرىمەك
null
[2] D90-3-01498
exact
دۈركىرىمەك
2,011
D01-16132
518_2L.png
yes
null
usage_map.tsv
دۈگجەيمەك
دۈگجۈمەك
null
[2] D90-3-01499
exact
دۈگجۈمەك
2,009
D_15244
329_col1.png
yes
null
usage_map.tsv
دۈگدۈيمەك
دۈگدەيمەك
null
[2] D90-3-01507
exact
دۈگدەيمەك
2,009
D_15246
329_col1.png
yes
null
usage_map.tsv
دەستۇرخان
داستىخان
null
[2] D90-3-00687
exact
داستىخان
2,009
D_14365
310_col1.png
yes
null
usage_map.tsv
سىقىرىماق
سىرقىرىماق
null
[2] D90-3-06881
exact
سىرقىرىماق
2,009
D_18742
405_col2.png
yes
null
usage_map.tsv
سىپىلىماق
سىيپىلىماق
null
[2] D90-3-06692
exact
سىيپىلىماق
2,009
D_19078
413_col1.png
yes
null
End of preview. Expand in Data Studio

uyghur-normalizer

Release 2.1.0 (2026-10-18).

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.

Two files, no dependencies, no network. Python 3.9+.

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.


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

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
59