@polyglot-bundles/uk-lang 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @polyglot-bundles/uk-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/uk-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/uk-lang/characters";
13
+ ```
14
+
15
+ ## Available exports
16
+
17
+ | Export | Contents |
18
+ |--------|---------|
19
+ | `.` | Re-exports everything |
20
+ | `./characters` | Character inventory (arrays / keyed objects with `char` field) |
21
+ | `./types` | All exported TypeScript types |
22
+
23
+ ## Data
24
+
25
+ ~26 consonants, 9 vowels
26
+
27
+ ## License
28
+
29
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/uk-lang",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,6 +8,14 @@
8
8
  ".": {
9
9
  "import": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts"
11
+ },
12
+ "./characters": {
13
+ "types": "./dist/characters.d.ts",
14
+ "import": "./dist/characters.js"
15
+ },
16
+ "./types": {
17
+ "types": "./dist/types.d.ts",
18
+ "import": "./dist/types.js"
11
19
  }
12
20
  },
13
21
  "files": [
@@ -18,8 +26,9 @@
18
26
  },
19
27
  "devDependencies": {
20
28
  "vite-plugin-dts": "^4.5.4",
29
+ "vitest": "^4.1.4",
21
30
  "@polyglot-bundles/lang-tooling": "0.0.0",
22
- "@polyglot-bundles/content-shared": "0.5.4"
31
+ "@polyglot-bundles/content-shared": "0.5.6"
23
32
  },
24
33
  "repository": {
25
34
  "type": "git",
@@ -27,6 +36,8 @@
27
36
  "directory": "packages/uk/lang"
28
37
  },
29
38
  "scripts": {
30
- "build": "vite build"
39
+ "build": "vite build",
40
+ "test": "vitest run",
41
+ "typecheck": "tsc --noEmit"
31
42
  }
32
43
  }
@@ -1,6 +0,0 @@
1
- import { UkrainianConsonantsInfo, UkrainianVowelsInfo } from './types';
2
- export declare const ukrainianVowels: UkrainianVowelsInfo[];
3
- export declare const ukrainianConsonants: UkrainianConsonantsInfo[];
4
- export declare const ukrainianAllCharacters: (UkrainianVowelsInfo | UkrainianConsonantsInfo)[];
5
- export { isVowel, isConsonant, type UkrainianCharacter } from './types.js';
6
- //# sourceMappingURL=characters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../src/characters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,eAAe,EAAE,mBAAmB,EAgEhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,uBAAuB,EA4QxD,CAAC;AAEF,eAAO,MAAM,sBAAsB,mDAGlC,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,330 +0,0 @@
1
- import { isConsonant as e, isVowel as t } from "./types.js";
2
- //#region src/characters.ts
3
- var n = [
4
- {
5
- char: "а",
6
- id: "a",
7
- charType: "vowel",
8
- name: "а",
9
- ipa: "a"
10
- },
11
- {
12
- char: "е",
13
- id: "e",
14
- charType: "vowel",
15
- name: "е",
16
- ipa: "ɛ"
17
- },
18
- {
19
- char: "и",
20
- id: "y",
21
- charType: "vowel",
22
- name: "и",
23
- ipa: "ɪ"
24
- },
25
- {
26
- char: "і",
27
- id: "i",
28
- charType: "vowel",
29
- name: "і",
30
- ipa: "i"
31
- },
32
- {
33
- char: "о",
34
- id: "o",
35
- charType: "vowel",
36
- name: "о",
37
- ipa: "o"
38
- },
39
- {
40
- char: "у",
41
- id: "u",
42
- charType: "vowel",
43
- name: "у",
44
- ipa: "u"
45
- },
46
- {
47
- char: "є",
48
- id: "ye",
49
- charType: "vowel",
50
- name: "є",
51
- ipa: "je"
52
- },
53
- {
54
- char: "ю",
55
- id: "yu",
56
- charType: "vowel",
57
- name: "ю",
58
- ipa: "ju"
59
- },
60
- {
61
- char: "я",
62
- id: "ya",
63
- charType: "vowel",
64
- name: "я",
65
- ipa: "ja"
66
- }
67
- ], r = [
68
- {
69
- char: "б",
70
- id: "be",
71
- charType: "consonant",
72
- name: "бе",
73
- ipa: "b",
74
- voicing: "voiced",
75
- articulation: "stop",
76
- place: "labial"
77
- },
78
- {
79
- char: "в",
80
- id: "ve",
81
- charType: "consonant",
82
- name: "ве",
83
- ipa: "v",
84
- voicing: "voiced",
85
- articulation: "fricative",
86
- place: "labial"
87
- },
88
- {
89
- char: "м",
90
- id: "me",
91
- charType: "consonant",
92
- name: "еме",
93
- ipa: "m",
94
- voicing: "nasal",
95
- articulation: "nasal",
96
- place: "labial"
97
- },
98
- {
99
- char: "п",
100
- id: "pe",
101
- charType: "consonant",
102
- name: "пе",
103
- ipa: "p",
104
- voicing: "voiceless",
105
- articulation: "stop",
106
- place: "labial"
107
- },
108
- {
109
- char: "ф",
110
- id: "fe",
111
- charType: "consonant",
112
- name: "еф",
113
- ipa: "f",
114
- voicing: "voiceless",
115
- articulation: "fricative",
116
- place: "labial"
117
- },
118
- {
119
- char: "д",
120
- id: "de",
121
- charType: "consonant",
122
- name: "де",
123
- ipa: "d",
124
- voicing: "voiced",
125
- articulation: "stop",
126
- place: "dental"
127
- },
128
- {
129
- char: "з",
130
- id: "ze",
131
- charType: "consonant",
132
- name: "зе",
133
- ipa: "z",
134
- voicing: "voiced",
135
- articulation: "fricative",
136
- place: "alveolar"
137
- },
138
- {
139
- char: "т",
140
- id: "te",
141
- charType: "consonant",
142
- name: "те",
143
- ipa: "t",
144
- voicing: "voiceless",
145
- articulation: "stop",
146
- place: "dental"
147
- },
148
- {
149
- char: "с",
150
- id: "se",
151
- charType: "consonant",
152
- name: "ес",
153
- ipa: "s",
154
- voicing: "voiceless",
155
- articulation: "fricative",
156
- place: "alveolar"
157
- },
158
- {
159
- char: "ц",
160
- id: "tse",
161
- charType: "consonant",
162
- name: "це",
163
- ipa: "ts",
164
- voicing: "voiceless",
165
- articulation: "fricative",
166
- place: "alveolar"
167
- },
168
- {
169
- char: "дз",
170
- id: "dze",
171
- charType: "consonant",
172
- name: "дзе",
173
- ipa: "dz",
174
- voicing: "voiced",
175
- articulation: "fricative",
176
- place: "alveolar"
177
- },
178
- {
179
- char: "л",
180
- id: "le",
181
- charType: "consonant",
182
- name: "ел",
183
- ipa: "l",
184
- voicing: "lateral",
185
- articulation: "lateral",
186
- place: "alveolar"
187
- },
188
- {
189
- char: "н",
190
- id: "ne",
191
- charType: "consonant",
192
- name: "ен",
193
- ipa: "n",
194
- voicing: "nasal",
195
- articulation: "nasal",
196
- place: "alveolar"
197
- },
198
- {
199
- char: "р",
200
- id: "re",
201
- charType: "consonant",
202
- name: "ер",
203
- ipa: "r",
204
- voicing: "trill",
205
- articulation: "trill",
206
- place: "alveolar"
207
- },
208
- {
209
- char: "є",
210
- id: "ye_palatal",
211
- charType: "consonant",
212
- name: "є (palatalizing)",
213
- ipa: "j",
214
- voicing: "voiced",
215
- articulation: "approximant",
216
- place: "palatal"
217
- },
218
- {
219
- char: "ю",
220
- id: "yu_palatal",
221
- charType: "consonant",
222
- name: "ю (palatalizing)",
223
- ipa: "j",
224
- voicing: "voiced",
225
- articulation: "approximant",
226
- place: "palatal"
227
- },
228
- {
229
- char: "я",
230
- id: "ya_palatal",
231
- charType: "consonant",
232
- name: "я (palatalizing)",
233
- ipa: "j",
234
- voicing: "voiced",
235
- articulation: "approximant",
236
- place: "palatal"
237
- },
238
- {
239
- char: "ї",
240
- id: "yi",
241
- charType: "consonant",
242
- name: "ї",
243
- ipa: "j",
244
- voicing: "voiced",
245
- articulation: "approximant",
246
- place: "palatal"
247
- },
248
- {
249
- char: "г",
250
- id: "he",
251
- charType: "consonant",
252
- name: "ге",
253
- ipa: "ɦ",
254
- voicing: "voiced",
255
- articulation: "fricative",
256
- place: "velar"
257
- },
258
- {
259
- char: "к",
260
- id: "ka",
261
- charType: "consonant",
262
- name: "ка",
263
- ipa: "k",
264
- voicing: "voiceless",
265
- articulation: "stop",
266
- place: "velar"
267
- },
268
- {
269
- char: "ґ",
270
- id: "ga",
271
- charType: "consonant",
272
- name: "ґа",
273
- ipa: "ɡ",
274
- voicing: "voiced",
275
- articulation: "stop",
276
- place: "velar"
277
- },
278
- {
279
- char: "х",
280
- id: "kha",
281
- charType: "consonant",
282
- name: "ха",
283
- ipa: "x",
284
- voicing: "voiceless",
285
- articulation: "fricative",
286
- place: "velar"
287
- },
288
- {
289
- char: "ч",
290
- id: "che",
291
- charType: "consonant",
292
- name: "че",
293
- ipa: "tʃ",
294
- voicing: "voiced",
295
- articulation: "affricate",
296
- place: "palatal"
297
- },
298
- {
299
- char: "ш",
300
- id: "sha",
301
- charType: "consonant",
302
- name: "ша",
303
- ipa: "ʃ",
304
- voicing: "voiceless",
305
- articulation: "fricative",
306
- place: "palatal"
307
- },
308
- {
309
- char: "ж",
310
- id: "zhe",
311
- charType: "consonant",
312
- name: "же",
313
- ipa: "ʒ",
314
- voicing: "voiced",
315
- articulation: "fricative",
316
- place: "palatal"
317
- },
318
- {
319
- char: "ґ",
320
- id: "hard_sign",
321
- charType: "consonant",
322
- name: "м'який знак",
323
- ipa: "",
324
- voicing: "voiceless",
325
- articulation: "stop",
326
- place: "glottal"
327
- }
328
- ], i = [...n, ...r];
329
- //#endregion
330
- export { e as isConsonant, t as isVowel, i as ukrainianAllCharacters, r as ukrainianConsonants, n as ukrainianVowels };
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { ukrainianVowels, ukrainianConsonants, ukrainianAllCharacters, isVowel, isConsonant, } from './characters.js';
2
- export type { UkrainianVowelsInfo, UkrainianConsonantsInfo, UkrainianCharacter } from './types.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,OAAO,EACP,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { isConsonant as e, isVowel as t } from "./types.js";
2
- import { ukrainianAllCharacters as n, ukrainianConsonants as r, ukrainianVowels as i } from "./characters.js";
3
- export { e as isConsonant, t as isVowel, n as ukrainianAllCharacters, r as ukrainianConsonants, i as ukrainianVowels };
package/dist/types.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * Ukrainian Character Types
3
- *
4
- * Type definitions for Ukrainian characters (Cyrillic script).
5
- * Ukrainian has 38 letters: 6 vowels and 32 consonants.
6
- */
7
- type UkrainianCharacterBaseInfo = {
8
- char: string;
9
- id: string;
10
- display?: string;
11
- audio?: string;
12
- notes?: string;
13
- };
14
- export type UkrainianVowelsInfo = {
15
- charType: "vowel";
16
- name: string;
17
- ipa: string;
18
- } & UkrainianCharacterBaseInfo;
19
- export type UkrainianConsonantsInfo = {
20
- charType: "consonant";
21
- name: string;
22
- ipa: string;
23
- articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
24
- voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative";
25
- place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal";
26
- } & UkrainianCharacterBaseInfo;
27
- export type UkrainianCharacter = UkrainianVowelsInfo | UkrainianConsonantsInfo;
28
- export declare function isVowel(character: UkrainianCharacter): character is UkrainianVowelsInfo;
29
- export declare function isConsonant(character: UkrainianCharacter): character is UkrainianConsonantsInfo;
30
- export {};
31
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,0BAA0B,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACjG,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,CAAC;IAC9F,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC3E,GAAG,0BAA0B,CAAC;AAG/B,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,uBAAuB,CAAC;AAG5B,wBAAgB,OAAO,CAAC,SAAS,EAAE,kBAAkB,GAAG,SAAS,IAAI,mBAAmB,CAEvF;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,kBAAkB,GAAG,SAAS,IAAI,uBAAuB,CAE/F"}
package/dist/types.js DELETED
@@ -1,9 +0,0 @@
1
- //#region src/types.ts
2
- function e(e) {
3
- return e.charType === "vowel";
4
- }
5
- function t(e) {
6
- return e.charType === "consonant";
7
- }
8
- //#endregion
9
- export { t as isConsonant, e as isVowel };