Release 3.0.0
Browse filesFiles changed (7)
14 unmodified lines151617181920212223124 unmodified lines14814915015115215315454 unmodified lines20921021121221321421521621721821922022114 unmodified lines\---## \[2.1.0] — 2026-10-18### Added124 unmodified lines* Two map invariants, enforced in CI:* a replacement may not begin with its own variant unless the rule carries`nosfx`;* a variant may not start with a character that cannot begin a Uyghur word.* `check\\\_new\\\_rules.py` reports the same two conditions as `PREFIX` and`UNFIREABLE`.54 unmodified lines`ىيە` standard. 163 confirmed directly against \[4], 1,082 by class rule,5 exceptions recorded where \[4] mapped toward `ى`.* `normalizer/imla\\\_loan\\\_map.tsv` — 873 rules. Loanword shape per the rule proseof \[4] §V.3 (hiatus) and §IX.2.1–4 (initial clusters), arbitrated word by wordagainst \[1] and \[2]. The example word lists inside the rule prose carrytranscription noise and were not used as evidence.* 769 rules in the initial build.* 95 country, capital and language names added 2026-08-17, aligned from \[3]against \[4].* 9 loanword forms added 2026-08-18.* `tests/test\\\_suffix.py`, `tests/test\\\_maps.py` — 46 tests. Map invariants andpipeline idempotence run in CI on every push.14 unmodified lines1516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061124 unmodified lines18618718818919019119254 unmodified lines24724824925025125225325425525625725825914 unmodified lines\---## \[3.0.0] — 2026-10-23MAJOR because rule targets changed (see Fixed): text those rules rewrote underthe previous release now comes out differently.### Added- `normalizer/calque_map.tsv` — 22 rules (85 to 107), from [4], [1] and [2],reviewed against the scans; the evidence row of each is in a comment above it.Military ranks and units (`جياڭلىڭ` → `ھەربىي قوماندان`,`جۈنتۈەن` → `كورپۇس`; [4] and [1] print the latter as`جۈنتۇەن`, so both forms are covered), food (`دۇفۇ` →`پۇرچاق ئۇيۇتمىسى`, `تاتلىقياڭيۇ` → `تاتلىق بەرەڭگى`) and`پىڭفاڭ` → `كىۋادرات`.- Korea. `چاۋشيەن`, the name the PRC country tables use for North Korea,becomes `شىمالىي كورېيە`; Korea in general becomes `كورېيە`:`چاۋشيەن يېرىم ئارىلى`, `چاۋشيەن تىلى`, `چاۋشيەنچە`,`چاۋشيەن يېزىقى`, `چاۋشيەن مىللىتى`, `چاۋشيەن ئۇرۇشى`,`چاۋشيەنشۇناس` and two plant names. `چاۋشيەنچى` covers the raisedstem (`چاۋشيەنچىدە` → `كورېيەچىدە`), and `چاۋشيەنزۇ` (朝鲜族) becomes`كورېيەلىك`.- `بەنگۇڭتىڭ` (办公厅) → `باش ئىشخانا`, as against 办公室 = `ئىشخانا`;flagged `raise`, so `بەنگۇڭتىڭى` → `باش ئىشخانىسى`.### Fixed- `normalizer/calque_map.tsv`: targets that were transcription errors.**These change output.**- `چىڭسەي` → `يېشىللۈك` corrected to → `يېشىلكۆك` ([4] D_13425).- `لېيتېنانت` corrected to `لېيتېنات`, as printed in [2]D90-4-10128 and [1] D01-11860, in `جۇڭۋېي` → `لېيتېنات`,`شاۋۋېي` → `كىچىك لېيتېنات` and `جۇڭجياڭ` →`گېنېرال لېيتېنات` (previously hyphenated).### Changed- `tests/data/lexicon_snapshot.tsv.gz` rebuilt from the current headwordlists: 49,614 verified forms (was 36,433).- `normalizer/provenance.tsv` regenerated.## \[2.1.0] — 2026-10-18### Added124 unmodified lines* Two map invariants, enforced in CI:* a replacement may not begin with its own variant unless the rule carries`nosfx`;* a variant may not start with a character that cannot begin a Uyghur word.* `check\\\_new\\\_rules.py` reports the same two conditions as `PREFIX` and`UNFIREABLE`.54 unmodified lines`ىيە` standard. 163 confirmed directly against \[4], 1,082 by class rule,5 exceptions recorded where \[4] mapped toward `ى`.* `normalizer/imla\\\_loan\\\_map.tsv` — 873 rules. Loanword shape per the rule proseof \[4] §V.3 (hiatus) and §IX.2.1–4 (initial clusters), arbitrated word by wordagainst \[1] and \[2]. The example word lists inside the rule prose carrytranscription noise and were not used as evidence.* 769 rules in the initial build.* 95 country, capital and language names added 2026-08-17, aligned from \[3]against \[4].* 9 loanword forms added 2026-08-18.* `tests/test\\\_suffix.py`, `tests/test\\\_maps.py` — 46 tests. Map invariants andpipeline idempotence run in CI on every push.
32 unmodified lines333435363732 unmodified lineslicense: MITlicense-url: "https://github.com/UyghurReferenceTexts/uyghur-normalizer/blob/main/LICENSE"doi: "10.5281/zenodo.22000836"version: 2.1.0date-released: "2026-10-18"32 unmodified lines333435363732 unmodified lineslicense: MITlicense-url: "https://github.com/UyghurReferenceTexts/uyghur-normalizer/blob/main/LICENSE"doi: "10.5281/zenodo.22000836"version: 3.0.0date-released: "2026-10-23"
22 unmodified lines2324252627282910 unmodified lines4041424344454622 unmodified lines# uyghur-normalizerRelease 2.1.0 (2026-10-18).> **Mirror.** The canonical repository is> [github.com/UyghurReferenceTexts/uyghur-normalizer](https://github.com/UyghurReferenceTexts/uyghur-normalizer).10 unmodified linesNormalizes 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+.```bashpython uyghur_normalizer.py --in text.txt # scan: report only22 unmodified lines2324252627282910 unmodified lines4041424344454622 unmodified lines# uyghur-normalizerRelease 3.0.0 (2026-10-23).> **Mirror.** The canonical repository is> [github.com/UyghurReferenceTexts/uyghur-normalizer](https://github.com/UyghurReferenceTexts/uyghur-normalizer).10 unmodified linesNormalizes Uyghur (ئۇيغۇر) text to the 2009 orthographic standard,and replaces terminology calqued from Chinese with Uyghur equivalents.No dependencies and no network. Python 3.9+.```bashpython uyghur_normalizer.py --in text.txt # scan: report only
7 unmodified lines891011121314151635 unmodified lines52535455565758596055 unmodified lines11611711811912012112212312 unmodified lines13613713813914014114214330 unmodified lines1741751767 unmodified lines# only. Inflected forms are needed ONLY where suffix concatenation gives the# wrong result — those are marked EXPLICIT below.## 85 rules. Sources: hand-seeded (incl. the web) + calque_pinyin_miner over# prc-laws-bilingual and prc-primary-documents (51); 34 added on 2026-10-18# from the dictionaries, each with its evidence row in a comment above it# ([4] imla 2009 = / [1] izahliq 2011 ← / [2] izahliq 1990s ← cross-references,# or the definition of a [خەن] entry), reviewed against the scans.35 unmodified linesجۈنشىنجاڭ باش سېرژانتجۈنشجاڭ باش سېرژانتشاڭجياڭ ئالىي گېنېرالشاڭۋېي كاپىتانجۇڭۋېي لېيتېنانتشاۋۋېي كىچىك لېيتېنانتشاڭشى يۇقىرى سېرژانتجۇڭشى ئوتتۇرا سېرژانتجۈنشى سېرژانت55 unmodified linesيۈەنشۇەيلىك مارشاللىق# [1] D01-12266; [4] D_11893جياڭگۇەن ھەربىي ئەمەلدار# [1] D01-11860جۇڭجياڭ گېنېرال-لېيتېنانت# [4] D_06452شاڭشياۋ پولكوۋنىك# [4] D_0631712 unmodified linesبەسەيلىك يېسسىۋېلەكلىك# [4] D_03774; [1] D01-03900بەسەي يېسسىۋېلەك# [4] D_13425چىڭسەي يېشىللۈك# [4] D_11613; [2] D90-2-05957جۈسەي كۈدە# [4] D_06988; [1] D01-0719930 unmodified linesدۇنخۇاڭ دۇھان# reviewer; variant of شياڭگاڭ aboveشىياڭگاڭ خوڭكوڭ7 unmodified lines891011121314151635 unmodified lines5253545556575859606155 unmodified lines11711811912012112212312412 unmodified lines13713813914014114214314430 unmodified lines1751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302317 unmodified lines# only. Inflected forms are needed ONLY where suffix concatenation gives the# wrong result — those are marked EXPLICIT below.## 107 rules. Sources: hand-seeded (incl. the web) + calque_pinyin_miner over# prc-laws-bilingual and prc-primary-documents (51); 34 added on 2026-10-18# and 22 on 2026-10-23 from the dictionaries, each with its evidence row in a comment above it# ([4] imla 2009 = / [1] izahliq 2011 ← / [2] izahliq 1990s ← cross-references,# or the definition of a [خەن] entry), reviewed against the scans.35 unmodified linesجۈنشىنجاڭ باش سېرژانتجۈنشجاڭ باش سېرژانتشاڭجياڭ ئالىي گېنېرال# 2026-10-23: لېيتېنانت corrected to لېيتېنات, as printed in [2] D90-4-10128 and [1] D01-11860شاڭۋېي كاپىتانجۇڭۋېي لېيتېناتشاۋۋېي كىچىك لېيتېناتشاڭشى يۇقىرى سېرژانتجۇڭشى ئوتتۇرا سېرژانتجۈنشى سېرژانت55 unmodified linesيۈەنشۇەيلىك مارشاللىق# [1] D01-12266; [4] D_11893جياڭگۇەن ھەربىي ئەمەلدار# [1] D01-11860 (target corrected 2026-10-23 to the printed گېنېرال لېيتېنات)جۇڭجياڭ گېنېرال لېيتېنات# [4] D_06452شاڭشياۋ پولكوۋنىك# [4] D_0631712 unmodified linesبەسەيلىك يېسسىۋېلەكلىك# [4] D_03774; [1] D01-03900بەسەي يېسسىۋېلەك# [4] D_13425 (target corrected 2026-10-23: يېشىللۈك was an OCR misspelling)چىڭسەي يېشىلكۆك# [4] D_11613; [2] D90-2-05957جۈسەي كۈدە# [4] D_06988; [1] D01-0719930 unmodified linesدۇنخۇاڭ دۇھان# reviewer; variant of شياڭگاڭ aboveشىياڭگاڭ خوڭكوڭ# ==== 2026-10-23: from the dictionaries (22 rules) ====# ---- military ranks and units ----# [4] D_11894جياڭلىڭ ھەربىي قوماندان# [4] D_11682جىتۇەنجۈن ئارمىيە گۇرۇپپىسى# [4] D_11634; target [4] D_24416جۈنتۈەن كورپۇس# [1] D01-12004, the spelling printed there; target [4] D_24416جۈنتۇەن كورپۇس# [4] D_11635; target [4] D_24416جۈنجاڭ كورپۇس كوماندىرى# [4] D_11686جىداۋيۈەن يېتەكچى# ---- Korea: the state is شىمالىي كورېيە; Korea in general (peninsula, language, script, people, war, plants) is كورېيە ----# [4] D_12363; [1] D01-12777; the PRC country tables of 2006 and 2011 use it for North Koreaچاۋشيەن شىمالىي كورېيە# reviewerچاۋشيەن يېرىم ئارىلى كورېيە يېرىم ئارىلى# [2] D90-2-06878چاۋشيەن تىلى كورېيە تىلى# [4] D_12364چاۋشيەنچە كورېيەچە# raised stem of چاۋشيەنچە before a suffix (چاۋشيەنچىدە)چاۋشيەنچى كورېيەچى# [4] D_12363 (sub-entry)چاۋشيەن يېزىقى كورېيە يېزىقى# reviewerچاۋشيەن مىللىتى كورېيە مىللىتى# reviewerچاۋشيەن ئۇرۇشى كورېيە ئۇرۇشى# [4] D_12365; [1] D01-12779چاۋشيەنشۇناس كورېيەشۇناس# [4] D_12363 (sub-entry)چاۋشيەن سۆگىتى كورېيە سۆگىتى# [2] D90-2-06879چاۋشيەن مالىنىسى كورېيە مالىنىسى# [2] D90-2-06880; [1] D01-12778 (朝鲜族); target: reviewerچاۋشيەنزۇ كورېيەلىك# ---- food and plants ----# [4] D_07416; target spelled as [4] D_03719تاتلىقياڭيۇ تاتلىق بەرەڭگى# [1] D01-16007; target [4] D_06577 (sub-entry)دۇفۇ پۇرچاق ئۇيۇتمىسى# ---- other ----# 办公厅, as against 办公室 = ئىشخانا ([4] D_34884); reviewer. raise: باش ئىشخانىسى, باش ئىشخانىدابەنگۇڭتىڭ باش ئىشخانا raise# [4] D_07210; target [1] D02-05242پىڭفاڭ كىۋادرات
123version https://git-lfs.github.com/spec/v1oid sha256:a7b76b96c2d25e9f0d411df0581f3ab4da9e228850feea0336e0ecc13ed14150size 840107123version https://git-lfs.github.com/spec/v1oid sha256:76443e16ac0e8e70ab1ecf27f7270bd6a3d58296bd217074b48628e593088007size 838406
88 unmodified lines8990919293949588 unmodified linesimport unicodedatafrom collections import Counter, OrderedDict__version__ = '2.1.0'# ---------------------------------------------------------------------------# Character classes88 unmodified lines8990919293949588 unmodified linesimport unicodedatafrom collections import Counter, OrderedDict__version__ = '3.0.0'# ---------------------------------------------------------------------------# Character classes
CHANGELOG.md+44-6
CITATION.cff+2-2
README.md+2-2
normalizer/calque_map.tsv+63-8
normalizer/provenance.tsv
tests/data/lexicon_snapshot.tsv.gz+2-2
uyghur_normalizer.py+1-1