@polyglot-bundles/qu-lang 0.1.3 → 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,28 @@
1
+ # @polyglot-bundles/qu-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/qu-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/qu-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
+
22
+ ## Data
23
+
24
+ ~28 consonants, 21 vowels
25
+
26
+ ## License
27
+
28
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/qu-lang",
3
- "version": "0.1.3",
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,10 @@
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"
11
15
  }
12
16
  },
13
17
  "files": [
@@ -17,8 +21,10 @@
17
21
  "access": "public"
18
22
  },
19
23
  "devDependencies": {
20
- "@polyglot-bundles/content-shared": "0.5.3",
21
- "@polyglot-bundles/lang-tooling": "0.0.0"
24
+ "vite-plugin-dts": "^4.5.4",
25
+ "vitest": "^4.1.4",
26
+ "@polyglot-bundles/lang-tooling": "0.0.0",
27
+ "@polyglot-bundles/content-shared": "0.5.6"
22
28
  },
23
29
  "repository": {
24
30
  "type": "git",
@@ -26,6 +32,8 @@
26
32
  "directory": "packages/qu/lang"
27
33
  },
28
34
  "scripts": {
29
- "build": "vite build"
35
+ "build": "vite build",
36
+ "test": "vitest run",
37
+ "typecheck": "tsc --noEmit"
30
38
  }
31
39
  }
@@ -1,442 +0,0 @@
1
- //#region src/characters.ts
2
- function e(e) {
3
- return e.charType === "vowel";
4
- }
5
- function t(e) {
6
- return e.charType === "consonant";
7
- }
8
- var n = [
9
- {
10
- char: "a",
11
- id: "a",
12
- charType: "vowel",
13
- ipa: "a",
14
- name: "A",
15
- length: "short"
16
- },
17
- {
18
- char: "i",
19
- id: "i",
20
- charType: "vowel",
21
- ipa: "i",
22
- name: "I",
23
- length: "short"
24
- },
25
- {
26
- char: "u",
27
- id: "u",
28
- charType: "vowel",
29
- ipa: "u",
30
- name: "U",
31
- length: "short"
32
- },
33
- {
34
- char: "aa",
35
- id: "a_long",
36
- charType: "vowel",
37
- ipa: "aː",
38
- name: "A (long)",
39
- length: "long"
40
- },
41
- {
42
- char: "ii",
43
- id: "i_long",
44
- charType: "vowel",
45
- ipa: "iː",
46
- name: "I (long)",
47
- length: "long"
48
- },
49
- {
50
- char: "uu",
51
- id: "u_long",
52
- charType: "vowel",
53
- ipa: "uː",
54
- name: "U (long)",
55
- length: "long"
56
- },
57
- {
58
- char: "e",
59
- id: "e_loanword",
60
- charType: "vowel",
61
- ipa: "ɛ",
62
- name: "E (loanword)",
63
- length: "short"
64
- },
65
- {
66
- char: "o",
67
- id: "o_loanword",
68
- charType: "vowel",
69
- ipa: "o",
70
- name: "O (loanword)",
71
- length: "short"
72
- },
73
- {
74
- char: "ai",
75
- id: "ai",
76
- charType: "vowel",
77
- ipa: "ai",
78
- name: "AI",
79
- length: "short"
80
- },
81
- {
82
- char: "au",
83
- id: "au",
84
- charType: "vowel",
85
- ipa: "au",
86
- name: "AU",
87
- length: "short"
88
- },
89
- {
90
- char: "ia",
91
- id: "ia",
92
- charType: "vowel",
93
- ipa: "ia",
94
- name: "IA",
95
- length: "short"
96
- },
97
- {
98
- char: "iu",
99
- id: "iu",
100
- charType: "vowel",
101
- ipa: "iu",
102
- name: "IU",
103
- length: "short"
104
- },
105
- {
106
- char: "ua",
107
- id: "ua",
108
- charType: "vowel",
109
- ipa: "ua",
110
- name: "UA",
111
- length: "short"
112
- },
113
- {
114
- char: "ui",
115
- id: "ui",
116
- charType: "vowel",
117
- ipa: "ui",
118
- name: "UI",
119
- length: "short"
120
- },
121
- {
122
- char: "ea",
123
- id: "ea",
124
- charType: "vowel",
125
- ipa: "ea",
126
- name: "EA",
127
- length: "short"
128
- },
129
- {
130
- char: "ei",
131
- id: "ei",
132
- charType: "vowel",
133
- ipa: "ei",
134
- name: "EI",
135
- length: "short"
136
- },
137
- {
138
- char: "eu",
139
- id: "eu",
140
- charType: "vowel",
141
- ipa: "eu",
142
- name: "EU",
143
- length: "short"
144
- },
145
- {
146
- char: "oa",
147
- id: "oa",
148
- charType: "vowel",
149
- ipa: "oa",
150
- name: "OA",
151
- length: "short"
152
- },
153
- {
154
- char: "oi",
155
- id: "oi",
156
- charType: "vowel",
157
- ipa: "oi",
158
- name: "OI",
159
- length: "short"
160
- },
161
- {
162
- char: "ou",
163
- id: "ou",
164
- charType: "vowel",
165
- ipa: "ou",
166
- name: "OU",
167
- length: "short"
168
- }
169
- ], r = [
170
- {
171
- char: "p",
172
- id: "p",
173
- charType: "consonant",
174
- ipa: "p",
175
- name: "P",
176
- voicing: "voiceless",
177
- articulation: "stop",
178
- place: "labial"
179
- },
180
- {
181
- char: "b",
182
- id: "b",
183
- charType: "consonant",
184
- ipa: "b",
185
- name: "B",
186
- voicing: "voiced",
187
- articulation: "stop",
188
- place: "labial"
189
- },
190
- {
191
- char: "m",
192
- id: "m",
193
- charType: "consonant",
194
- ipa: "m",
195
- name: "M",
196
- voicing: "nasal",
197
- articulation: "nasal",
198
- place: "labial"
199
- },
200
- {
201
- char: "f",
202
- id: "f_loanword",
203
- charType: "consonant",
204
- ipa: "f",
205
- name: "F (loanword)",
206
- voicing: "voiceless",
207
- articulation: "fricative",
208
- place: "labial"
209
- },
210
- {
211
- char: "v",
212
- id: "v_loanword",
213
- charType: "consonant",
214
- ipa: "v",
215
- name: "V (loanword)",
216
- voicing: "voiced",
217
- articulation: "fricative",
218
- place: "labial"
219
- },
220
- {
221
- char: "t",
222
- id: "t",
223
- charType: "consonant",
224
- ipa: "t",
225
- name: "T",
226
- voicing: "voiceless",
227
- articulation: "stop",
228
- place: "dental"
229
- },
230
- {
231
- char: "d",
232
- id: "d_loanword",
233
- charType: "consonant",
234
- ipa: "d",
235
- name: "D (loanword)",
236
- voicing: "voiced",
237
- articulation: "stop",
238
- place: "dental"
239
- },
240
- {
241
- char: "s",
242
- id: "s",
243
- charType: "consonant",
244
- ipa: "s",
245
- name: "S",
246
- voicing: "voiceless",
247
- articulation: "fricative",
248
- place: "alveolar"
249
- },
250
- {
251
- char: "z",
252
- id: "z_loanword",
253
- charType: "consonant",
254
- ipa: "s",
255
- name: "Z (loanword)",
256
- voicing: "voiceless",
257
- articulation: "fricative",
258
- place: "alveolar"
259
- },
260
- {
261
- char: "n",
262
- id: "n",
263
- charType: "consonant",
264
- ipa: "n",
265
- name: "N",
266
- voicing: "nasal",
267
- articulation: "nasal",
268
- place: "alveolar"
269
- },
270
- {
271
- char: "l",
272
- id: "l",
273
- charType: "consonant",
274
- ipa: "l",
275
- name: "L",
276
- voicing: "lateral",
277
- articulation: "lateral",
278
- place: "alveolar"
279
- },
280
- {
281
- char: "r",
282
- id: "r",
283
- charType: "consonant",
284
- ipa: "r",
285
- name: "R",
286
- voicing: "trill",
287
- articulation: "trill",
288
- place: "alveolar"
289
- },
290
- {
291
- char: "ʈ",
292
- id: "rt",
293
- charType: "consonant",
294
- ipa: "ʈ",
295
- name: "RT",
296
- voicing: "voiceless",
297
- articulation: "stop",
298
- place: "retroflex"
299
- },
300
- {
301
- char: "ɳ",
302
- id: "rn",
303
- charType: "consonant",
304
- ipa: "ɳ",
305
- name: "RN",
306
- voicing: "nasal",
307
- articulation: "nasal",
308
- place: "retroflex"
309
- },
310
- {
311
- char: "c",
312
- id: "c",
313
- charType: "consonant",
314
- ipa: "tʃ",
315
- name: "C",
316
- voicing: "voiceless",
317
- articulation: "affricate",
318
- place: "palatal"
319
- },
320
- {
321
- char: "j",
322
- id: "j",
323
- charType: "consonant",
324
- ipa: "x",
325
- name: "J",
326
- voicing: "voiceless",
327
- articulation: "fricative",
328
- place: "velar"
329
- },
330
- {
331
- char: "ñ",
332
- id: "ñ",
333
- charType: "consonant",
334
- ipa: "ɲ",
335
- name: "Ñ",
336
- voicing: "nasal",
337
- articulation: "nasal",
338
- place: "palatal"
339
- },
340
- {
341
- char: "k",
342
- id: "k",
343
- charType: "consonant",
344
- ipa: "k",
345
- name: "K",
346
- voicing: "voiceless",
347
- articulation: "stop",
348
- place: "velar"
349
- },
350
- {
351
- char: "g",
352
- id: "g",
353
- charType: "consonant",
354
- ipa: "ɡ",
355
- name: "G",
356
- voicing: "voiced",
357
- articulation: "stop",
358
- place: "velar"
359
- },
360
- {
361
- char: "ŋ",
362
- id: "ng",
363
- charType: "consonant",
364
- ipa: "ŋ",
365
- name: "NG",
366
- voicing: "nasal",
367
- articulation: "nasal",
368
- place: "velar"
369
- },
370
- {
371
- char: "h",
372
- id: "h",
373
- charType: "consonant",
374
- ipa: "h",
375
- name: "H",
376
- voicing: "voiceless",
377
- articulation: "fricative",
378
- place: "glottal"
379
- },
380
- {
381
- char: "ʔ",
382
- id: "glottal_stop",
383
- charType: "consonant",
384
- ipa: "ʔ",
385
- name: "Glottal Stop",
386
- voicing: "voiceless",
387
- articulation: "stop",
388
- place: "glottal"
389
- },
390
- {
391
- char: "w",
392
- id: "w",
393
- charType: "consonant",
394
- ipa: "w",
395
- name: "W",
396
- voicing: "voiced",
397
- articulation: "approximant",
398
- place: "labial"
399
- },
400
- {
401
- char: "y",
402
- id: "y",
403
- charType: "consonant",
404
- ipa: "j",
405
- name: "Y",
406
- voicing: "voiced",
407
- articulation: "approximant",
408
- place: "palatal"
409
- },
410
- {
411
- char: "x",
412
- id: "x_loanword",
413
- charType: "consonant",
414
- ipa: "ks",
415
- name: "X (loanword)",
416
- voicing: "voiceless",
417
- articulation: "stop",
418
- place: "velar"
419
- },
420
- {
421
- char: "q",
422
- id: "q_foreign",
423
- charType: "consonant",
424
- ipa: "q",
425
- name: "Q (foreign)",
426
- voicing: "voiceless",
427
- articulation: "stop",
428
- place: "uvular"
429
- },
430
- {
431
- char: "f",
432
- id: "f_foreign",
433
- charType: "consonant",
434
- ipa: "f",
435
- name: "F (foreign)",
436
- voicing: "voiceless",
437
- articulation: "fricative",
438
- place: "labial"
439
- }
440
- ], i = [...n, ...r];
441
- //#endregion
442
- export { t as isConsonant, e as isVowel, i as quechuaAllCharacters, r as quechuaConsonants, n as quechuaVowels };
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import { isConsonant as e, isVowel as t, quechuaAllCharacters as n, quechuaConsonants as r, quechuaVowels as i } from "./characters.js";
2
- export { e as isConsonant, t as isVowel, n as quechuaAllCharacters, r as quechuaConsonants, i as quechuaVowels };
@@ -1,45 +0,0 @@
1
- /**
2
- * Quechua Character Types
3
- *
4
- * Type definitions for Quechua characters (Latin script).
5
- * Quechua has 24 letters: 3 vowels, 21 consonants.
6
- * Note: Spanish loanwords use 5 vowels (a, e, i, o, u).
7
- */
8
- /**
9
- * Base character info
10
- */
11
- type QuechuaCharacterBaseInfo = {
12
- char: string;
13
- id: string;
14
- display?: string;
15
- audio?: string;
16
- notes?: string;
17
- };
18
- /**
19
- * Quechua Vowels
20
- */
21
- export type QuechuaVowelsInfo = {
22
- charType: "vowel";
23
- ipa: string;
24
- name: string;
25
- length?: "short" | "long";
26
- } & QuechuaCharacterBaseInfo;
27
- /**
28
- * Quechua Consonants
29
- */
30
- export type QuechuaConsonantsInfo = {
31
- charType: "consonant";
32
- ipa: string;
33
- name: string;
34
- articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
35
- voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative" | "affricate";
36
- place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar" | "retroflex" | "uvular";
37
- } & QuechuaCharacterBaseInfo;
38
- export type QuechuaCharacter = QuechuaVowelsInfo | QuechuaConsonantsInfo;
39
- export declare function isVowel(character: QuechuaCharacter): character is QuechuaVowelsInfo;
40
- export declare function isConsonant(character: QuechuaCharacter): character is QuechuaConsonantsInfo;
41
- export declare const quechuaVowels: QuechuaVowelsInfo[];
42
- export declare const quechuaConsonants: QuechuaConsonantsInfo[];
43
- export declare const quechuaAllCharacters: (QuechuaVowelsInfo | QuechuaConsonantsInfo)[];
44
- export {};
45
- //# sourceMappingURL=characters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../../../../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC9B,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;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,GAAG,wBAAwB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,WAAW,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,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,GAAG,WAAW,CAAC;IAC5G,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;CACjH,GAAG,wBAAwB,CAAC;AAG7B,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,qBAAqB,CAAC;AAGzE,wBAAgB,OAAO,CAAC,SAAS,EAAE,gBAAgB,GAAG,SAAS,IAAI,iBAAiB,CAEnF;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,gBAAgB,GAAG,SAAS,IAAI,qBAAqB,CAE3F;AAMD,eAAO,MAAM,aAAa,EAAE,iBAAiB,EAyB5C,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,EAoCpD,CAAC;AAMF,eAAO,MAAM,oBAAoB,+CAGhC,CAAC"}
@@ -1,2 +0,0 @@
1
- export { quechuaVowels, quechuaConsonants, quechuaAllCharacters, type QuechuaVowelsInfo, type QuechuaConsonantsInfo, type QuechuaCharacter, isVowel, isConsonant, } from './characters.js';
2
- //# 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,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,OAAO,EACP,WAAW,GACZ,MAAM,iBAAiB,CAAC"}