@polyglot-bundles/tl-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/tl-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/tl-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/tl-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
+ ~26 consonants, 16 vowels
25
+
26
+ ## License
27
+
28
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/tl-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": {
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/tl/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,382 +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: "e",
19
- id: "e",
20
- charType: "vowel",
21
- ipa: "ɛ",
22
- name: "E",
23
- length: "short"
24
- },
25
- {
26
- char: "i",
27
- id: "i",
28
- charType: "vowel",
29
- ipa: "i",
30
- name: "I",
31
- length: "short"
32
- },
33
- {
34
- char: "o",
35
- id: "o",
36
- charType: "vowel",
37
- ipa: "ɔ",
38
- name: "O",
39
- length: "short"
40
- },
41
- {
42
- char: "u",
43
- id: "u",
44
- charType: "vowel",
45
- ipa: "u",
46
- name: "U",
47
- length: "short"
48
- },
49
- {
50
- char: "á",
51
- id: "a_long",
52
- charType: "vowel",
53
- ipa: "aː",
54
- name: "A (long)",
55
- length: "long"
56
- },
57
- {
58
- char: "é",
59
- id: "e_long",
60
- charType: "vowel",
61
- ipa: "eː",
62
- name: "E (long)",
63
- length: "long"
64
- },
65
- {
66
- char: "í",
67
- id: "i_long",
68
- charType: "vowel",
69
- ipa: "iː",
70
- name: "I (long)",
71
- length: "long"
72
- },
73
- {
74
- char: "ó",
75
- id: "o_long",
76
- charType: "vowel",
77
- ipa: "oː",
78
- name: "O (long)",
79
- length: "long"
80
- },
81
- {
82
- char: "ú",
83
- id: "u_long",
84
- charType: "vowel",
85
- ipa: "uː",
86
- name: "U (long)",
87
- length: "long"
88
- },
89
- {
90
- char: "ai",
91
- id: "ai",
92
- charType: "vowel",
93
- ipa: "ai",
94
- name: "AI",
95
- length: "short"
96
- },
97
- {
98
- char: "au",
99
- id: "au",
100
- charType: "vowel",
101
- ipa: "au",
102
- name: "AU",
103
- length: "short"
104
- },
105
- {
106
- char: "ei",
107
- id: "ei",
108
- charType: "vowel",
109
- ipa: "ɛi",
110
- name: "EI",
111
- length: "short"
112
- },
113
- {
114
- char: "oi",
115
- id: "oi",
116
- charType: "vowel",
117
- ipa: "ɔi",
118
- name: "OI",
119
- length: "short"
120
- },
121
- {
122
- char: "ui",
123
- id: "ui",
124
- charType: "vowel",
125
- ipa: "ui",
126
- name: "UI",
127
- length: "short"
128
- }
129
- ], r = [
130
- {
131
- char: "b",
132
- id: "b",
133
- charType: "consonant",
134
- ipa: "b",
135
- name: "B",
136
- voicing: "voiced",
137
- articulation: "stop",
138
- place: "labial"
139
- },
140
- {
141
- char: "p",
142
- id: "p",
143
- charType: "consonant",
144
- ipa: "p",
145
- name: "P",
146
- voicing: "voiceless",
147
- articulation: "stop",
148
- place: "labial"
149
- },
150
- {
151
- char: "m",
152
- id: "m",
153
- charType: "consonant",
154
- ipa: "m",
155
- name: "M",
156
- voicing: "nasal",
157
- articulation: "nasal",
158
- place: "labial"
159
- },
160
- {
161
- char: "f",
162
- id: "f_foreign",
163
- charType: "consonant",
164
- ipa: "f",
165
- name: "F (foreign)",
166
- voicing: "voiceless",
167
- articulation: "fricative",
168
- place: "labial"
169
- },
170
- {
171
- char: "v",
172
- id: "v_foreign",
173
- charType: "consonant",
174
- ipa: "v",
175
- name: "V (foreign)",
176
- voicing: "voiced",
177
- articulation: "fricative",
178
- place: "labial"
179
- },
180
- {
181
- char: "w",
182
- id: "w",
183
- charType: "consonant",
184
- ipa: "w",
185
- name: "W",
186
- voicing: "voiced",
187
- articulation: "approximant",
188
- place: "labial"
189
- },
190
- {
191
- char: "t",
192
- id: "t",
193
- charType: "consonant",
194
- ipa: "t",
195
- name: "T",
196
- voicing: "voiceless",
197
- articulation: "stop",
198
- place: "dental"
199
- },
200
- {
201
- char: "d",
202
- id: "d",
203
- charType: "consonant",
204
- ipa: "d",
205
- name: "D",
206
- voicing: "voiced",
207
- articulation: "stop",
208
- place: "dental"
209
- },
210
- {
211
- char: "s",
212
- id: "s",
213
- charType: "consonant",
214
- ipa: "s",
215
- name: "S",
216
- voicing: "voiceless",
217
- articulation: "fricative",
218
- place: "alveolar"
219
- },
220
- {
221
- char: "z",
222
- id: "z_foreign",
223
- charType: "consonant",
224
- ipa: "z",
225
- name: "Z (foreign)",
226
- voicing: "voiced",
227
- articulation: "fricative",
228
- place: "alveolar"
229
- },
230
- {
231
- char: "n",
232
- id: "n",
233
- charType: "consonant",
234
- ipa: "n",
235
- name: "N",
236
- voicing: "nasal",
237
- articulation: "nasal",
238
- place: "alveolar"
239
- },
240
- {
241
- char: "l",
242
- id: "l",
243
- charType: "consonant",
244
- ipa: "l",
245
- name: "L",
246
- voicing: "lateral",
247
- articulation: "lateral",
248
- place: "alveolar"
249
- },
250
- {
251
- char: "r",
252
- id: "r",
253
- charType: "consonant",
254
- ipa: "r",
255
- name: "R",
256
- voicing: "trill",
257
- articulation: "trill",
258
- place: "alveolar"
259
- },
260
- {
261
- char: "y",
262
- id: "y",
263
- charType: "consonant",
264
- ipa: "j",
265
- name: "Y",
266
- voicing: "voiced",
267
- articulation: "approximant",
268
- place: "palatal"
269
- },
270
- {
271
- char: "j",
272
- id: "j_foreign",
273
- charType: "consonant",
274
- ipa: "dʒ",
275
- name: "J (foreign)",
276
- voicing: "voiced",
277
- articulation: "affricate",
278
- place: "palatal"
279
- },
280
- {
281
- char: "k",
282
- id: "k",
283
- charType: "consonant",
284
- ipa: "k",
285
- name: "K",
286
- voicing: "voiceless",
287
- articulation: "stop",
288
- place: "velar"
289
- },
290
- {
291
- char: "g",
292
- id: "g",
293
- charType: "consonant",
294
- ipa: "ɡ",
295
- name: "G",
296
- voicing: "voiced",
297
- articulation: "stop",
298
- place: "velar"
299
- },
300
- {
301
- char: "ng",
302
- id: "ng",
303
- charType: "consonant",
304
- ipa: "ŋ",
305
- name: "NG",
306
- voicing: "nasal",
307
- articulation: "nasal",
308
- place: "velar"
309
- },
310
- {
311
- char: "h",
312
- id: "h",
313
- charType: "consonant",
314
- ipa: "h",
315
- name: "H",
316
- voicing: "voiceless",
317
- articulation: "fricative",
318
- place: "glottal"
319
- },
320
- {
321
- char: "q",
322
- id: "q_foreign",
323
- charType: "consonant",
324
- ipa: "k",
325
- name: "Q (foreign)",
326
- voicing: "voiceless",
327
- articulation: "stop",
328
- place: "velar"
329
- },
330
- {
331
- char: "c",
332
- id: "c_foreign",
333
- charType: "consonant",
334
- ipa: "k",
335
- name: "C (foreign)",
336
- voicing: "voiceless",
337
- articulation: "stop",
338
- place: "velar"
339
- },
340
- {
341
- char: "x",
342
- id: "x_foreign",
343
- charType: "consonant",
344
- ipa: "ks",
345
- name: "X (foreign)",
346
- voicing: "voiceless",
347
- articulation: "stop",
348
- place: "velar"
349
- },
350
- {
351
- char: "b",
352
- id: "b_fricative",
353
- charType: "consonant",
354
- ipa: "β",
355
- name: "B (fricative)",
356
- voicing: "voiced",
357
- articulation: "fricative",
358
- place: "labial"
359
- },
360
- {
361
- char: "d",
362
- id: "d_fricative",
363
- charType: "consonant",
364
- ipa: "ð",
365
- name: "D (fricative)",
366
- voicing: "voiced",
367
- articulation: "fricative",
368
- place: "dental"
369
- },
370
- {
371
- char: "g",
372
- id: "g_fricative",
373
- charType: "consonant",
374
- ipa: "ɣ",
375
- name: "G (fricative)",
376
- voicing: "voiced",
377
- articulation: "fricative",
378
- place: "velar"
379
- }
380
- ], i = [...n, ...r];
381
- //#endregion
382
- export { t as isConsonant, e as isVowel, i as tagalogAllCharacters, r as tagalogConsonants, n as tagalogVowels };
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- import { isConsonant as e, isVowel as t, tagalogAllCharacters as n, tagalogConsonants as r, tagalogVowels as i } from "./characters.js";
2
- export { e as isConsonant, t as isVowel, n as tagalogAllCharacters, r as tagalogConsonants, i as tagalogVowels };
@@ -1,44 +0,0 @@
1
- /**
2
- * Tagalog Character Types
3
- *
4
- * Type definitions for Tagalog characters (Latin script).
5
- * Tagalog has 20 letters: 5 vowels, 15 consonants.
6
- */
7
- /**
8
- * Base character info
9
- */
10
- type TagalogCharacterBaseInfo = {
11
- char: string;
12
- id: string;
13
- display?: string;
14
- audio?: string;
15
- notes?: string;
16
- };
17
- /**
18
- * Tagalog Vowels
19
- */
20
- export type TagalogVowelsInfo = {
21
- charType: "vowel";
22
- ipa: string;
23
- name: string;
24
- length?: "short" | "long";
25
- } & TagalogCharacterBaseInfo;
26
- /**
27
- * Tagalog Consonants
28
- */
29
- export type TagalogConsonantsInfo = {
30
- charType: "consonant";
31
- ipa: string;
32
- name: string;
33
- articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
34
- voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "affricate" | "fricative";
35
- place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar";
36
- } & TagalogCharacterBaseInfo;
37
- export type TagalogCharacter = TagalogVowelsInfo | TagalogConsonantsInfo;
38
- export declare function isVowel(character: TagalogCharacter): character is TagalogVowelsInfo;
39
- export declare function isConsonant(character: TagalogCharacter): character is TagalogConsonantsInfo;
40
- export declare const tagalogVowels: TagalogVowelsInfo[];
41
- export declare const tagalogConsonants: TagalogConsonantsInfo[];
42
- export declare const tagalogAllCharacters: (TagalogVowelsInfo | TagalogConsonantsInfo)[];
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,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,CAAC;CACxF,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,EAmB5C,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,EAgCpD,CAAC;AAMF,eAAO,MAAM,oBAAoB,+CAGhC,CAAC"}
@@ -1,2 +0,0 @@
1
- export { tagalogVowels, tagalogConsonants, tagalogAllCharacters, type TagalogVowelsInfo, type TagalogConsonantsInfo, type TagalogCharacter, 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"}