@polyglot-bundles/ne-lang 0.1.5 → 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/ne-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/ne-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/ne-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
+ ~46 consonants, 20 vowels
25
+
26
+ ## License
27
+
28
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/ne-lang",
3
- "version": "0.1.5",
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": {
24
+ "vite-plugin-dts": "^4.5.4",
25
+ "vitest": "^4.1.4",
20
26
  "@polyglot-bundles/lang-tooling": "0.0.0",
21
- "@polyglot-bundles/content-shared": "0.5.3"
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/ne/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,614 +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: "अ",
11
- id: "a",
12
- charType: "vowel",
13
- ipa: "ə",
14
- name: "अ",
15
- length: "short"
16
- },
17
- {
18
- char: "इ",
19
- id: "i",
20
- charType: "vowel",
21
- ipa: "ɪ",
22
- name: "इ",
23
- length: "short"
24
- },
25
- {
26
- char: "उ",
27
- id: "u",
28
- charType: "vowel",
29
- ipa: "ʊ",
30
- name: "उ",
31
- length: "short"
32
- },
33
- {
34
- char: "आ",
35
- id: "aa",
36
- charType: "vowel",
37
- ipa: "aː",
38
- name: "आ",
39
- length: "long"
40
- },
41
- {
42
- char: "ई",
43
- id: "ii",
44
- charType: "vowel",
45
- ipa: "iː",
46
- name: "ई",
47
- length: "long"
48
- },
49
- {
50
- char: "ऊ",
51
- id: "uu",
52
- charType: "vowel",
53
- ipa: "uː",
54
- name: "ऊ",
55
- length: "long"
56
- },
57
- {
58
- char: "ए",
59
- id: "e",
60
- charType: "vowel",
61
- ipa: "ɛ",
62
- name: "ए",
63
- length: "short"
64
- },
65
- {
66
- char: "ओ",
67
- id: "o",
68
- charType: "vowel",
69
- ipa: "ɔ",
70
- name: "ओ",
71
- length: "short"
72
- },
73
- {
74
- char: "औ",
75
- id: "au",
76
- charType: "vowel",
77
- ipa: "ɔʊ",
78
- name: "औ",
79
- length: "short"
80
- },
81
- {
82
- char: "ऐ",
83
- id: "ai",
84
- charType: "vowel",
85
- ipa: "ɛɪ",
86
- name: "ऐ",
87
- length: "short"
88
- },
89
- {
90
- char: "ा",
91
- id: "aa_matra",
92
- charType: "vowel",
93
- ipa: "aː",
94
- name: "ा (aa matra)",
95
- length: "long"
96
- },
97
- {
98
- char: "ि",
99
- id: "i_matra",
100
- charType: "vowel",
101
- ipa: "i",
102
- name: "ि (i matra)",
103
- length: "short"
104
- },
105
- {
106
- char: "ी",
107
- id: "ii_matra",
108
- charType: "vowel",
109
- ipa: "iː",
110
- name: "ी (ii matra)",
111
- length: "long"
112
- },
113
- {
114
- char: "ु",
115
- id: "u_matra",
116
- charType: "vowel",
117
- ipa: "u",
118
- name: "ु (u matra)",
119
- length: "short"
120
- },
121
- {
122
- char: "ू",
123
- id: "uu_matra",
124
- charType: "vowel",
125
- ipa: "uː",
126
- name: "ू (uu matra)",
127
- length: "long"
128
- },
129
- {
130
- char: "े",
131
- id: "e_matra",
132
- charType: "vowel",
133
- ipa: "ɛ",
134
- name: "े (e matra)",
135
- length: "short"
136
- },
137
- {
138
- char: "ो",
139
- id: "o_matra",
140
- charType: "vowel",
141
- ipa: "ɔ",
142
- name: "ो (o matra)",
143
- length: "short"
144
- },
145
- {
146
- char: "ौ",
147
- id: "au_matra",
148
- charType: "vowel",
149
- ipa: "ɔʊ",
150
- name: "ौ (au matra)",
151
- length: "short"
152
- },
153
- {
154
- char: "ै",
155
- id: "ai_matra",
156
- charType: "vowel",
157
- ipa: "ɛɪ",
158
- name: "ै (ai matra)",
159
- length: "short"
160
- }
161
- ], r = [
162
- {
163
- char: "क",
164
- id: "ka",
165
- charType: "consonant",
166
- ipa: "k",
167
- name: "क",
168
- voicing: "voiceless",
169
- articulation: "stop",
170
- place: "velar"
171
- },
172
- {
173
- char: "ख",
174
- id: "kha",
175
- charType: "consonant",
176
- ipa: "kʰ",
177
- name: "ख",
178
- voicing: "voiceless",
179
- articulation: "stop",
180
- place: "velar"
181
- },
182
- {
183
- char: "ग",
184
- id: "ga",
185
- charType: "consonant",
186
- ipa: "ɡ",
187
- name: "ग",
188
- voicing: "voiced",
189
- articulation: "stop",
190
- place: "velar"
191
- },
192
- {
193
- char: "घ",
194
- id: "gha",
195
- charType: "consonant",
196
- ipa: "ɡʰ",
197
- name: "घ",
198
- voicing: "voiced",
199
- articulation: "stop",
200
- place: "velar"
201
- },
202
- {
203
- char: "ङ",
204
- id: "nga",
205
- charType: "consonant",
206
- ipa: "ŋ",
207
- name: "ङ",
208
- voicing: "nasal",
209
- articulation: "nasal",
210
- place: "velar"
211
- },
212
- {
213
- char: "च",
214
- id: "cha",
215
- charType: "consonant",
216
- ipa: "tʃ",
217
- name: "च",
218
- voicing: "voiceless",
219
- articulation: "stop",
220
- place: "palatal"
221
- },
222
- {
223
- char: "छ",
224
- id: "chha",
225
- charType: "consonant",
226
- ipa: "tʃʰ",
227
- name: "छ",
228
- voicing: "voiceless",
229
- articulation: "stop",
230
- place: "palatal"
231
- },
232
- {
233
- char: "ज",
234
- id: "ja",
235
- charType: "consonant",
236
- ipa: "dʒ",
237
- name: "ज",
238
- voicing: "voiced",
239
- articulation: "stop",
240
- place: "palatal"
241
- },
242
- {
243
- char: "झ",
244
- id: "jha",
245
- charType: "consonant",
246
- ipa: "dʒʰ",
247
- name: "झ",
248
- voicing: "voiced",
249
- articulation: "stop",
250
- place: "palatal"
251
- },
252
- {
253
- char: "ञ",
254
- id: "nya",
255
- charType: "consonant",
256
- ipa: "ɲ",
257
- name: "ञ",
258
- voicing: "nasal",
259
- articulation: "nasal",
260
- place: "palatal"
261
- },
262
- {
263
- char: "ट",
264
- id: "tta",
265
- charType: "consonant",
266
- ipa: "ʈ",
267
- name: "ट",
268
- voicing: "voiceless",
269
- articulation: "stop",
270
- place: "retroflex"
271
- },
272
- {
273
- char: "ठ",
274
- id: "ttha",
275
- charType: "consonant",
276
- ipa: "ʈʰ",
277
- name: "ठ",
278
- voicing: "voiceless",
279
- articulation: "stop",
280
- place: "retroflex"
281
- },
282
- {
283
- char: "ड",
284
- id: "dda",
285
- charType: "consonant",
286
- ipa: "ɖ",
287
- name: "ड",
288
- voicing: "voiced",
289
- articulation: "stop",
290
- place: "retroflex"
291
- },
292
- {
293
- char: "ढ",
294
- id: "ddha",
295
- charType: "consonant",
296
- ipa: "ɖʰ",
297
- name: "ढ",
298
- voicing: "voiced",
299
- articulation: "stop",
300
- place: "retroflex"
301
- },
302
- {
303
- char: "ण",
304
- id: "nna",
305
- charType: "consonant",
306
- ipa: "ɳ",
307
- name: "ण",
308
- voicing: "nasal",
309
- articulation: "nasal",
310
- place: "retroflex"
311
- },
312
- {
313
- char: "त",
314
- id: "ta",
315
- charType: "consonant",
316
- ipa: "t",
317
- name: "त",
318
- voicing: "voiceless",
319
- articulation: "stop",
320
- place: "dental"
321
- },
322
- {
323
- char: "थ",
324
- id: "tha",
325
- charType: "consonant",
326
- ipa: "tʰ",
327
- name: "थ",
328
- voicing: "voiceless",
329
- articulation: "stop",
330
- place: "dental"
331
- },
332
- {
333
- char: "द",
334
- id: "da",
335
- charType: "consonant",
336
- ipa: "d",
337
- name: "द",
338
- voicing: "voiced",
339
- articulation: "stop",
340
- place: "dental"
341
- },
342
- {
343
- char: "ध",
344
- id: "dha",
345
- charType: "consonant",
346
- ipa: "dʰ",
347
- name: "ध",
348
- voicing: "voiced",
349
- articulation: "stop",
350
- place: "dental"
351
- },
352
- {
353
- char: "न",
354
- id: "na",
355
- charType: "consonant",
356
- ipa: "n",
357
- name: "न",
358
- voicing: "nasal",
359
- articulation: "nasal",
360
- place: "dental"
361
- },
362
- {
363
- char: "प",
364
- id: "pa",
365
- charType: "consonant",
366
- ipa: "p",
367
- name: "प",
368
- voicing: "voiceless",
369
- articulation: "stop",
370
- place: "labial"
371
- },
372
- {
373
- char: "फ",
374
- id: "pha",
375
- charType: "consonant",
376
- ipa: "pʰ",
377
- name: "फ",
378
- voicing: "voiceless",
379
- articulation: "stop",
380
- place: "labial"
381
- },
382
- {
383
- char: "ब",
384
- id: "ba",
385
- charType: "consonant",
386
- ipa: "b",
387
- name: "ब",
388
- voicing: "voiced",
389
- articulation: "stop",
390
- place: "labial"
391
- },
392
- {
393
- char: "भ",
394
- id: "bha",
395
- charType: "consonant",
396
- ipa: "bʰ",
397
- name: "भ",
398
- voicing: "voiced",
399
- articulation: "stop",
400
- place: "labial"
401
- },
402
- {
403
- char: "म",
404
- id: "ma",
405
- charType: "consonant",
406
- ipa: "m",
407
- name: "म",
408
- voicing: "nasal",
409
- articulation: "nasal",
410
- place: "labial"
411
- },
412
- {
413
- char: "य",
414
- id: "ya",
415
- charType: "consonant",
416
- ipa: "j",
417
- name: "य",
418
- voicing: "approximant",
419
- articulation: "approximant",
420
- place: "palatal"
421
- },
422
- {
423
- char: "र",
424
- id: "ra",
425
- charType: "consonant",
426
- ipa: "r",
427
- name: "र",
428
- voicing: "trill",
429
- articulation: "trill",
430
- place: "retroflex"
431
- },
432
- {
433
- char: "ल",
434
- id: "la",
435
- charType: "consonant",
436
- ipa: "l",
437
- name: "ल",
438
- voicing: "lateral",
439
- articulation: "lateral",
440
- place: "dental"
441
- },
442
- {
443
- char: "व",
444
- id: "va",
445
- charType: "consonant",
446
- ipa: "ʋ",
447
- name: "व",
448
- voicing: "approximant",
449
- articulation: "approximant",
450
- place: "labial"
451
- },
452
- {
453
- char: "श",
454
- id: "sha",
455
- charType: "consonant",
456
- ipa: "ʃ",
457
- name: "श",
458
- voicing: "voiceless",
459
- articulation: "fricative",
460
- place: "palatal"
461
- },
462
- {
463
- char: "ष",
464
- id: "ssa",
465
- charType: "consonant",
466
- ipa: "ʂ",
467
- name: "ष",
468
- voicing: "voiceless",
469
- articulation: "fricative",
470
- place: "retroflex"
471
- },
472
- {
473
- char: "स",
474
- id: "sa",
475
- charType: "consonant",
476
- ipa: "s",
477
- name: "स",
478
- voicing: "voiceless",
479
- articulation: "fricative",
480
- place: "dental"
481
- },
482
- {
483
- char: "ह",
484
- id: "ha",
485
- charType: "consonant",
486
- ipa: "h",
487
- name: "ह",
488
- voicing: "voiceless",
489
- articulation: "fricative",
490
- place: "glottal"
491
- },
492
- {
493
- char: "ळ",
494
- id: "lla",
495
- charType: "consonant",
496
- ipa: "ɭ",
497
- name: "ळ",
498
- voicing: "lateral",
499
- articulation: "lateral",
500
- place: "retroflex"
501
- },
502
- {
503
- char: "क्ष",
504
- id: "ksha",
505
- charType: "consonant",
506
- ipa: "kʃ",
507
- name: "क्ष",
508
- voicing: "voiceless",
509
- articulation: "stop",
510
- place: "velar"
511
- },
512
- {
513
- char: "ज्ञ",
514
- id: "gya",
515
- charType: "consonant",
516
- ipa: "dʒɲ",
517
- name: "ज्ञ",
518
- voicing: "voiced",
519
- articulation: "stop",
520
- place: "palatal"
521
- },
522
- {
523
- char: "ऱ",
524
- id: "rra",
525
- charType: "consonant",
526
- ipa: "ɽ",
527
- name: "ऱ",
528
- voicing: "trill",
529
- articulation: "trill",
530
- place: "retroflex"
531
- },
532
- {
533
- char: "ऴ",
534
- id: "lla_palatal",
535
- charType: "consonant",
536
- ipa: "ʎ",
537
- name: "ऴ",
538
- voicing: "lateral",
539
- articulation: "lateral",
540
- place: "palatal"
541
- },
542
- {
543
- char: "फ़",
544
- id: "fa",
545
- charType: "consonant",
546
- ipa: "f",
547
- name: "फ़",
548
- voicing: "voiceless",
549
- articulation: "fricative",
550
- place: "labial"
551
- },
552
- {
553
- char: "ज़",
554
- id: "za",
555
- charType: "consonant",
556
- ipa: "z",
557
- name: "ज़",
558
- voicing: "voiced",
559
- articulation: "fricative",
560
- place: "palatal"
561
- },
562
- {
563
- char: "ख़",
564
- id: "kha_farsi",
565
- charType: "consonant",
566
- ipa: "x",
567
- name: "ख़",
568
- voicing: "voiceless",
569
- articulation: "fricative",
570
- place: "velar"
571
- },
572
- {
573
- char: "ग़",
574
- id: "gha_farsi",
575
- charType: "consonant",
576
- ipa: "ɣ",
577
- name: "ग़",
578
- voicing: "voiced",
579
- articulation: "fricative",
580
- place: "velar"
581
- },
582
- {
583
- char: "ड़",
584
- id: "dda_dot",
585
- charType: "consonant",
586
- ipa: "ɽ",
587
- name: "ड़",
588
- voicing: "voiced",
589
- articulation: "stop",
590
- place: "retroflex"
591
- },
592
- {
593
- char: "ढ़",
594
- id: "ddha_dot",
595
- charType: "consonant",
596
- ipa: "ɽʰ",
597
- name: "ढ़",
598
- voicing: "voiced",
599
- articulation: "stop",
600
- place: "retroflex"
601
- },
602
- {
603
- char: "ङ्क",
604
- id: "nga_ka",
605
- charType: "consonant",
606
- ipa: "ŋk",
607
- name: "ङ्क",
608
- voicing: "nasal",
609
- articulation: "stop",
610
- place: "velar"
611
- }
612
- ], i = [...n, ...r];
613
- //#endregion
614
- export { t as isConsonant, e as isVowel, i as nepaliAllCharacters, r as nepaliConsonants, n as nepaliVowels };
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import { isConsonant as e, isVowel as t, nepaliAllCharacters as n, nepaliConsonants as r, nepaliVowels as i } from "./characters.js";
2
- export { e as isConsonant, t as isVowel, n as nepaliAllCharacters, r as nepaliConsonants, i as nepaliVowels };
@@ -1,44 +0,0 @@
1
- /**
2
- * Nepali Character Types
3
- *
4
- * Type definitions for Nepali characters (Devanagari script).
5
- * Nepali has 47 characters: 11 vowels, 36 consonants.
6
- */
7
- /**
8
- * Base character info
9
- */
10
- type NepaliCharacterBaseInfo = {
11
- char: string;
12
- id: string;
13
- display?: string;
14
- audio?: string;
15
- notes?: string;
16
- };
17
- /**
18
- * Nepali Vowels (Swaraku)
19
- */
20
- export type NepaliVowelsInfo = {
21
- charType: "vowel";
22
- ipa: string;
23
- name: string;
24
- length?: "short" | "long";
25
- } & NepaliCharacterBaseInfo;
26
- /**
27
- * Nepali Consonants (Vyanjanaku)
28
- */
29
- export type NepaliConsonantsInfo = {
30
- charType: "consonant";
31
- ipa: string;
32
- name: string;
33
- articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill";
34
- voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative";
35
- place: "velar" | "palatal" | "retroflex" | "dental" | "labial" | "glottal";
36
- } & NepaliCharacterBaseInfo;
37
- export type NepaliCharacter = NepaliVowelsInfo | NepaliConsonantsInfo;
38
- export declare function isVowel(character: NepaliCharacter): character is NepaliVowelsInfo;
39
- export declare function isConsonant(character: NepaliCharacter): character is NepaliConsonantsInfo;
40
- export declare const nepaliVowels: NepaliVowelsInfo[];
41
- export declare const nepaliConsonants: NepaliConsonantsInfo[];
42
- export declare const nepaliAllCharacters: (NepaliVowelsInfo | NepaliConsonantsInfo)[];
43
- export {};
44
- //# sourceMappingURL=characters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../../../../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC7B,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,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,GAAG,uBAAuB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,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,CAAC;IACnF,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,CAAC;IAC9F,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC5E,GAAG,uBAAuB,CAAC;AAG5B,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAGtE,wBAAgB,OAAO,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,IAAI,gBAAgB,CAEjF;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,IAAI,oBAAoB,CAEzF;AAMD,eAAO,MAAM,YAAY,EAAE,gBAAgB,EAuB1C,CAAC;AAMF,eAAO,MAAM,gBAAgB,EAAE,oBAAoB,EAqDlD,CAAC;AAMF,eAAO,MAAM,mBAAmB,6CAG/B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { nepaliVowels, nepaliConsonants, nepaliAllCharacters, type NepaliVowelsInfo, type NepaliConsonantsInfo, type NepaliCharacter, 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,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,OAAO,EACP,WAAW,GACZ,MAAM,iBAAiB,CAAC"}