cillegio commited on
Commit
3b409a1
·
1 Parent(s): b8a600a

Correct Turkmen and Gagauz alphabets; set licence (#1)

Browse files

- Correct Turkmen and Gagauz alphabets; set licence (caff54766a7dc3a9bea97fdecdfc16471efcce22)

Files changed (4) hide show
  1. README.md +1 -0
  2. containment.csv +1 -1
  3. gl_pairs.csv +2 -2
  4. grapheme_sets.py +30 -9
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  language:
3
  - az
4
  - kk
 
1
  ---
2
+ license: cc-by-4.0
3
  language:
4
  - az
5
  - kk
containment.csv CHANGED
@@ -5,7 +5,7 @@ ky,ru,3,0,True,yes
5
  tt,ru,6,0,True,yes
6
  ba,ru,9,0,True,yes
7
  tg,ru,6,4,False,no
8
- tk,tr,6,4,False,no
9
  gag,tr,3,1,False,mostly
10
  uz,tr,3,7,False,no
11
  ba,tt,4,1,False,mostly
 
5
  tt,ru,6,0,True,yes
6
  ba,ru,9,0,True,yes
7
  tg,ru,6,4,False,no
8
+ tk,tr,5,4,False,no
9
  gag,tr,3,1,False,mostly
10
  uz,tr,3,7,False,no
11
  ba,tt,4,1,False,mostly
gl_pairs.csv CHANGED
@@ -5,8 +5,8 @@ ky,ru,"same script, dominant neighbour",3,ң ү ө
5
  tt,ru,"same script, dominant neighbour",6,җ ң ү һ ә ө
6
  ba,ru,"same script, dominant neighbour",9,ғ ҙ ҡ ң ҫ ү һ ә ө
7
  tg,ru,"same script, dominant neighbour",6,ғ қ ҳ ҷ ӣ ӯ
8
- tk,tr,"same script, dominant neighbour",6,w ä é ý ň ž
9
- gag,tr,"same script, dominant neighbour",3,ä ê ț
10
  uz,tr,"same script, related Latin Turkic",3,q x ʻ
11
  ba,tt,two low-resource languages,4,ғ ҙ ҡ ҫ
12
  ca,es,"same script, dominant neighbour",2,· ç
 
5
  tt,ru,"same script, dominant neighbour",6,җ ң ү һ ә ө
6
  ba,ru,"same script, dominant neighbour",9,ғ ҙ ҡ ң ҫ ү һ ә ө
7
  tg,ru,"same script, dominant neighbour",6,ғ қ ҳ ҷ ӣ ӯ
8
+ tk,tr,"same script, dominant neighbour",5,w ä ý ň ž
9
+ gag,tr,"same script, dominant neighbour",3,ä ê ţ
10
  uz,tr,"same script, related Latin Turkic",3,q x ʻ
11
  ba,tt,two low-resource languages,4,ғ ҙ ҡ ҫ
12
  ca,es,"same script, dominant neighbour",2,· ç
grapheme_sets.py CHANGED
@@ -23,8 +23,29 @@ Three structurally different cases appear, and they are not equally interesting:
23
  handful that actually separate them, which is exactly where a metric
24
  earns its keep -- and where it may fail.
25
 
26
- Alphabets are the standard modern orthographies. Marked (v) where verified
27
- against a published alphabet; the rest should be checked before publication.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  """
29
  from __future__ import annotations
30
 
@@ -35,18 +56,18 @@ ALPHABETS: dict[str, str] = {
35
  # --- Latin ---------------------------------------------------------
36
  "tr": "abcçdefgğhıijklmnoöprsştuüvyz", # (v)
37
  "az": "abcçdeəfgğhxıijkqlmnoöprsştuüvyz", # (v)
38
- "tk": "aäbçdeéfghijžklmnňoöprsştuüwyýz", # Turkmen
39
- "uz": "abdefghijklmnopqrstuvxyzoʻgʻ", # Uzbek Latin
40
- "gag": "aäbcçdeêfghıijklmnoöprsştțuüvyz", # Gagauz
41
  "es": "abcdefghijklmnñopqrstuvwxyz",
42
  "ca": "abcçdefghijklmnopqrstuvwxyz·",
43
  # --- Cyrillic ------------------------------------------------------
44
  "ru": "абвгдеёжзийклмнопрстуфхцчшщъыьэюя", # (v)
45
  "kk": "аәбвгғдеёжзийкқлмнңоөпрстуұүфхһцчшщъыіьэюя", # Kazakh (v)
46
- "ky": "абвгдеёжзийклмнңоөпрстуүфхцчшщъыьэюя", # Kyrgyz
47
- "tt": "аәбвгдеёжҗзийклмнңоөпрстуүфхһцчшщъыьэюя", # Tatar
48
- "ba": "аәбвгғдеёжзийкҡлмнңоөпрҫстуүфхһцчшщъыьэюяҙ", # Bashkir
49
- "tg": "абвгғдеёжзиӣйкқлмнопрстуӯфхҳчҷшъэюя", # Tajik
50
  }
51
 
52
  # target -> the better-resourced language whose orthography a multilingual model
 
23
  handful that actually separate them, which is exactly where a metric
24
  earns its keep -- and where it may fail.
25
 
26
+ Alphabets are the standard modern orthographies. All are marked (v): each has
27
+ been checked against a promulgating instrument where one is accessible and
28
+ against Unicode CLDR exemplar sets otherwise.
29
+
30
+ Four conventions, each of which changes a published number if taken the other
31
+ way:
32
+
33
+ officially promulgated alphabets, not usage-based inventories. Kyrgyz, Tatar
34
+ and Bashkir formally contain all 33 Russian letters, several of which
35
+ (ц, щ, ь) occur almost only in Russian loanwords. A usage-based inventory
36
+ would drop them and the containment result below would fail.
37
+
38
+ Tajik follows the 1998 decree, which removed ц, щ, ы and ь. That is why
39
+ Russian is not contained in Tajik.
40
+
41
+ Uzbek is the 1995 Latin alphabet, with the digraphs sh, ch and ng modelled as
42
+ character sequences rather than atomic letters. A revised 28-letter
43
+ alphabet was approved in September 2026; once in force it changes G_L for
44
+ uz/tr to {q, x, ʼ} and the reverse set from seven letters to three.
45
+
46
+ Gagauz ţ is U+0163 with cedilla, matching ç and ş, not the comma-below U+021B
47
+ that Romanian typographic practice would suggest. They are distinct code
48
+ points and a set difference over the wrong one is wrong.
49
  """
50
  from __future__ import annotations
51
 
 
56
  # --- Latin ---------------------------------------------------------
57
  "tr": "abcçdefgğhıijklmnoöprsştuüvyz", # (v)
58
  "az": "abcçdeəfgğhxıijkqlmnoöprsştuüvyz", # (v)
59
+ "tk": "aäbçdefghijžklmnňoöprsştuüwyýz", # Turkmen, TDS 565:1999 (v)
60
+ "uz": "abdefghijklmnopqrstuvxyzoʻgʻ", # Uzbek Latin, 1995 (v)
61
+ "gag": "aäbcçdeêfghıijklmnoöprsştţuüvyz", # Gagauz, cedilla U+0163 (v)
62
  "es": "abcdefghijklmnñopqrstuvwxyz",
63
  "ca": "abcçdefghijklmnopqrstuvwxyz·",
64
  # --- Cyrillic ------------------------------------------------------
65
  "ru": "абвгдеёжзийклмнопрстуфхцчшщъыьэюя", # (v)
66
  "kk": "аәбвгғдеёжзийкқлмнңоөпрстуұүфхһцчшщъыіьэюя", # Kazakh (v)
67
+ "ky": "абвгдеёжзийклмнңоөпрстуүфхцчшщъыьэюя", # Kyrgyz (v)
68
+ "tt": "аәбвгдеёжҗзийклмнңоөпрстуүфхһцчшщъыьэюя", # Tatar (v)
69
+ "ba": "аәбвгғдеёжзийкҡлмнңоөпрҫстуүфхһцчшщъыьэюяҙ", # Bashkir (v)
70
+ "tg": "абвгғдеёжзиӣйкқлмнопрстуӯфхҳчҷшъэюя", # Tajik (v)
71
  }
72
 
73
  # target -> the better-resourced language whose orthography a multilingual model