@laeng/th 0.1.0

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/dist/ids.d.ts ADDED
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Canonical Thai Character IDs
3
+ *
4
+ * This file exports the canonical IDs used across Thai language learning content.
5
+ * These IDs are the source of truth for @syllst/th and other packages.
6
+ */
7
+ /**
8
+ * Thai consonant IDs in standard order
9
+ */
10
+ export declare const THAI_CONSONANT_IDS: readonly ["chicken", "egg", "bottle", "buffalo", "person", "bell", "snake", "plate", "cymbals", "elephant", "chain", "tree", "woman", "headdress", "goad", "pedestal", "montho", "elder", "monk", "child", "turtle", "bag", "soldier", "flag", "mouse", "leaf", "fish", "bee", "lid", "tray", "tooth", "ship", "horse", "ogre", "boat", "monkey", "ring", "pavilion", "hermit", "tiger", "box", "kite", "bowl", "owl"];
11
+ /**
12
+ * Thai vowel IDs - using descriptive names for readability
13
+ * Format: vowel-{sound} for simple vowels, vowel-{combination} for complex
14
+ */
15
+ export declare const THAI_VOWEL_IDS: readonly ["vowel-a", "vowel-i", "vowel-ue", "vowel-u", "vowel-e", "vowel-ae", "vowel-o", "vowel-oe", "vowel-ao", "vowel-aa", "vowel-ii", "vowel-uee", "vowel-uu", "vowel-ee", "vowel-aae", "vowel-oo", "vowel-oee", "vowel-aw", "vowel-ai-mai-muan", "vowel-ai-mai-malai", "vowel-ao-i", "vowel-ia", "vowel-uea", "vowel-ua", "vowel-rue", "vowel-ruee", "vowel-lue", "vowel-luee", "vowel-am", "vowel-iu", "vowel-eo", "vowel-aeo", "vowel-uai", "vowel-uan"];
16
+ /**
17
+ * Thai tone mark IDs - using Thai names
18
+ * Both short form (mai-ek) and long form (tone-mai-ek) are valid
19
+ */
20
+ export declare const THAI_TONE_IDS: readonly ["mai-ek", "mai-tho", "mai-tri", "mai-chattawa", "tone-mai-ek", "tone-mai-tho", "tone-mai-tri", "tone-mai-chattawa"];
21
+ /**
22
+ * Thai number IDs (0-9) with num- prefix for clarity
23
+ */
24
+ export declare const THAI_NUMBER_IDS: readonly ["num-zero", "num-one", "num-two", "num-three", "num-four", "num-five", "num-six", "num-seven", "num-eight", "num-nine"];
25
+ /**
26
+ * Thai symbol IDs - using Thai names
27
+ */
28
+ export declare const THAI_SYMBOL_IDS: readonly ["nikkhahit", "thanthakhat", "maihun-akat", "maiyamok", "paiyannoi", "phinthu", "etc"];
29
+ /**
30
+ * All Thai character IDs grouped by type
31
+ */
32
+ export declare const THAI_CHAR_IDS: {
33
+ readonly consonants: readonly ["chicken", "egg", "bottle", "buffalo", "person", "bell", "snake", "plate", "cymbals", "elephant", "chain", "tree", "woman", "headdress", "goad", "pedestal", "montho", "elder", "monk", "child", "turtle", "bag", "soldier", "flag", "mouse", "leaf", "fish", "bee", "lid", "tray", "tooth", "ship", "horse", "ogre", "boat", "monkey", "ring", "pavilion", "hermit", "tiger", "box", "kite", "bowl", "owl"];
34
+ readonly vowels: readonly ["vowel-a", "vowel-i", "vowel-ue", "vowel-u", "vowel-e", "vowel-ae", "vowel-o", "vowel-oe", "vowel-ao", "vowel-aa", "vowel-ii", "vowel-uee", "vowel-uu", "vowel-ee", "vowel-aae", "vowel-oo", "vowel-oee", "vowel-aw", "vowel-ai-mai-muan", "vowel-ai-mai-malai", "vowel-ao-i", "vowel-ia", "vowel-uea", "vowel-ua", "vowel-rue", "vowel-ruee", "vowel-lue", "vowel-luee", "vowel-am", "vowel-iu", "vowel-eo", "vowel-aeo", "vowel-uai", "vowel-uan"];
35
+ readonly tones: readonly ["mai-ek", "mai-tho", "mai-tri", "mai-chattawa", "tone-mai-ek", "tone-mai-tho", "tone-mai-tri", "tone-mai-chattawa"];
36
+ readonly numbers: readonly ["num-zero", "num-one", "num-two", "num-three", "num-four", "num-five", "num-six", "num-seven", "num-eight", "num-nine"];
37
+ readonly symbols: readonly ["nikkhahit", "thanthakhat", "maihun-akat", "maiyamok", "paiyannoi", "phinthu", "etc"];
38
+ };
39
+ export type ThaiConsonantId = typeof THAI_CONSONANT_IDS[number];
40
+ export type ThaiVowelId = typeof THAI_VOWEL_IDS[number];
41
+ export type ThaiToneId = typeof THAI_TONE_IDS[number];
42
+ export type ThaiNumberId = typeof THAI_NUMBER_IDS[number];
43
+ export type ThaiSymbolId = typeof THAI_SYMBOL_IDS[number];
44
+ export type ThaiCharacterId = ThaiConsonantId | ThaiVowelId | ThaiToneId | ThaiNumberId | ThaiSymbolId;
45
+ //# sourceMappingURL=ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB,wZA6CrB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,cAAc,gcAwCjB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,aAAa,+HAShB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe,mIAWlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe,iGAQlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAGX,MAAM,MAAM,eAAe,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAE1D,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,WAAW,GACX,UAAU,GACV,YAAY,GACZ,YAAY,CAAC"}
package/dist/ids.js ADDED
@@ -0,0 +1,221 @@
1
+ const e = [
2
+ "chicken",
3
+ // ก
4
+ "egg",
5
+ // ข
6
+ "bottle",
7
+ // ฃ (obsolete)
8
+ "buffalo",
9
+ // ค
10
+ "person",
11
+ // ฅ (obsolete)
12
+ "bell",
13
+ // ฆ
14
+ "snake",
15
+ // ง
16
+ "plate",
17
+ // จ
18
+ "cymbals",
19
+ // ฉ
20
+ "elephant",
21
+ // ช
22
+ "chain",
23
+ // ซ
24
+ "tree",
25
+ // ฌ
26
+ "woman",
27
+ // ญ
28
+ "headdress",
29
+ // ฎ
30
+ "goad",
31
+ // ฏ
32
+ "pedestal",
33
+ // ฐ
34
+ "montho",
35
+ // ฑ
36
+ "elder",
37
+ // ฒ
38
+ "monk",
39
+ // ณ
40
+ "child",
41
+ // ด
42
+ "turtle",
43
+ // ต
44
+ "bag",
45
+ // ถ
46
+ "soldier",
47
+ // ท
48
+ "flag",
49
+ // ธ
50
+ "mouse",
51
+ // น
52
+ "leaf",
53
+ // บ
54
+ "fish",
55
+ // ป
56
+ "bee",
57
+ // ผ
58
+ "lid",
59
+ // ฝ
60
+ "tray",
61
+ // พ
62
+ "tooth",
63
+ // ฟ
64
+ "ship",
65
+ // ภ
66
+ "horse",
67
+ // ม
68
+ "ogre",
69
+ // ย
70
+ "boat",
71
+ // ร
72
+ "monkey",
73
+ // ล
74
+ "ring",
75
+ // ว
76
+ "pavilion",
77
+ // ศ
78
+ "hermit",
79
+ // ษ
80
+ "tiger",
81
+ // ส
82
+ "box",
83
+ // ห
84
+ "kite",
85
+ // ฬ
86
+ "bowl",
87
+ // อ
88
+ "owl"
89
+ // ฮ
90
+ ], o = [
91
+ // Short vowels
92
+ "vowel-a",
93
+ // ะ
94
+ "vowel-i",
95
+ // ิ
96
+ "vowel-ue",
97
+ // ึ
98
+ "vowel-u",
99
+ // ุ
100
+ "vowel-e",
101
+ // เ-ะ
102
+ "vowel-ae",
103
+ // แ-ะ
104
+ "vowel-o",
105
+ // โ-ะ
106
+ "vowel-oe",
107
+ // เ-าะ
108
+ "vowel-ao",
109
+ // เ-า
110
+ // Long vowels
111
+ "vowel-aa",
112
+ // า
113
+ "vowel-ii",
114
+ // ี
115
+ "vowel-uee",
116
+ // ือ
117
+ "vowel-uu",
118
+ // ู
119
+ "vowel-ee",
120
+ // เ-
121
+ "vowel-aae",
122
+ // แ-
123
+ "vowel-oo",
124
+ // โ-
125
+ "vowel-oee",
126
+ // เ-อ
127
+ "vowel-aw",
128
+ // ็อ / -อ
129
+ // Diphthongs
130
+ "vowel-ai-mai-muan",
131
+ // ใ-
132
+ "vowel-ai-mai-malai",
133
+ // ไ-
134
+ "vowel-ao-i",
135
+ // -าว short
136
+ "vowel-ia",
137
+ // เ-ีย
138
+ "vowel-uea",
139
+ // เ-ือ
140
+ "vowel-ua",
141
+ // -ัว
142
+ // Special vowels
143
+ "vowel-rue",
144
+ // ฤ
145
+ "vowel-ruee",
146
+ // ฤๅ
147
+ "vowel-lue",
148
+ // ฦ
149
+ "vowel-luee",
150
+ // ฦๅ
151
+ "vowel-am",
152
+ // -ำ
153
+ // Combination vowels
154
+ "vowel-iu",
155
+ // -ิว
156
+ "vowel-eo",
157
+ // เ-ว
158
+ "vowel-aeo",
159
+ // แ-ว
160
+ "vowel-uai",
161
+ // -วย
162
+ "vowel-uan"
163
+ // -วน
164
+ ], a = [
165
+ "mai-ek",
166
+ // ่ ไม้เอก (short form)
167
+ "mai-tho",
168
+ // ้ ไม้โท
169
+ "mai-tri",
170
+ // ๊ ไม้ตรี
171
+ "mai-chattawa",
172
+ // ๋ ไม้จัตวา
173
+ "tone-mai-ek",
174
+ // ่ ไม้เอก (long form)
175
+ "tone-mai-tho",
176
+ // ้ ไม้โท
177
+ "tone-mai-tri",
178
+ // ๊ ไม้ตรี
179
+ "tone-mai-chattawa"
180
+ // ๋ ไม้จัตวา
181
+ ], l = [
182
+ "num-zero",
183
+ "num-one",
184
+ "num-two",
185
+ "num-three",
186
+ "num-four",
187
+ "num-five",
188
+ "num-six",
189
+ "num-seven",
190
+ "num-eight",
191
+ "num-nine"
192
+ ], n = [
193
+ "nikkhahit",
194
+ // -ํ (anikhahit)
195
+ "thanthakhat",
196
+ // -์ (silencer/gaaran)
197
+ "maihun-akat",
198
+ // -ั (shortener)
199
+ "maiyamok",
200
+ // ๆ (repetition)
201
+ "paiyannoi",
202
+ // ฯ (abbreviation)
203
+ "phinthu",
204
+ // ฺ (subscript marker)
205
+ "etc"
206
+ // ฯลฯ
207
+ ], t = {
208
+ consonants: e,
209
+ vowels: o,
210
+ tones: a,
211
+ numbers: l,
212
+ symbols: n
213
+ };
214
+ export {
215
+ t as THAI_CHAR_IDS,
216
+ e as THAI_CONSONANT_IDS,
217
+ l as THAI_NUMBER_IDS,
218
+ n as THAI_SYMBOL_IDS,
219
+ a as THAI_TONE_IDS,
220
+ o as THAI_VOWEL_IDS
221
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @gicho/th - Thai Language Foundation Data
3
+ *
4
+ * This package provides the foundational data for Thai language learning:
5
+ * - Character data (consonants, vowels, tones, numbers, symbols)
6
+ * - Canonical IDs for cross-package consistency
7
+ * - Type definitions for Thai characters
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { thaiConsonants, thaiVowels } from "@gicho/th";
12
+ * import { THAI_CHAR_IDS } from "@gicho/th/ids";
13
+ * import type { ThaiConsonantsInfo } from "@gicho/th/types";
14
+ * ```
15
+ */
16
+ export { thaiConsonants, thaiVowels, thaiTones, thaiNumbers, thaiSymbols, } from './characters';
17
+ export { THAI_CONSONANT_IDS, THAI_VOWEL_IDS, THAI_TONE_IDS, THAI_NUMBER_IDS, THAI_SYMBOL_IDS, THAI_CHAR_IDS, } from './ids';
18
+ export type { ThaiConsonantsInfo, ThaiVowelsInfo, ThaiTonesInfo, ThaiNumbersInfo, ThaiSymbolsInfo, ThaiCharacter, } from './types';
19
+ export { isVowel, isConsonant, isTone, isNumber, isSymbol, getDisplayCharacter, } from './types';
20
+ export type { ThaiConsonantId, ThaiVowelId, ThaiToneId, ThaiNumberId, ThaiSymbolId, ThaiCharacterId, } from './ids';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,GACZ,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,GACd,MAAM,OAAO,CAAC;AAGf,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,OAAO,EACP,WAAW,EACX,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,GAChB,MAAM,OAAO,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import { thaiConsonants as t, thaiNumbers as I, thaiSymbols as _, thaiTones as e, thaiVowels as i } from "./characters.js";
2
+ import { THAI_CHAR_IDS as r, THAI_CONSONANT_IDS as S, THAI_NUMBER_IDS as T, THAI_SYMBOL_IDS as n, THAI_TONE_IDS as A, THAI_VOWEL_IDS as m } from "./ids.js";
3
+ import { getDisplayCharacter as H, isConsonant as N, isNumber as h, isSymbol as l, isTone as C, isVowel as O } from "./types.js";
4
+ export {
5
+ r as THAI_CHAR_IDS,
6
+ S as THAI_CONSONANT_IDS,
7
+ T as THAI_NUMBER_IDS,
8
+ n as THAI_SYMBOL_IDS,
9
+ A as THAI_TONE_IDS,
10
+ m as THAI_VOWEL_IDS,
11
+ H as getDisplayCharacter,
12
+ N as isConsonant,
13
+ h as isNumber,
14
+ l as isSymbol,
15
+ C as isTone,
16
+ O as isVowel,
17
+ t as thaiConsonants,
18
+ I as thaiNumbers,
19
+ _ as thaiSymbols,
20
+ e as thaiTones,
21
+ i as thaiVowels
22
+ };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Thai Character Types
3
+ *
4
+ * Type definitions for Thai characters, vowels, consonants, tones, numbers, and symbols.
5
+ */
6
+ type ThaiCharacterBaseInfo = {
7
+ char: string;
8
+ id: string;
9
+ display?: string;
10
+ audio?: string;
11
+ notes?: string;
12
+ };
13
+ export type ThaiConsonantsInfo = {
14
+ charType: "consonant";
15
+ meaning: string;
16
+ thaiName: string;
17
+ romanName: string;
18
+ class: "low" | "middle" | "high";
19
+ initialPronunciation: string;
20
+ finalPronunciation: string;
21
+ } & ThaiCharacterBaseInfo;
22
+ export type ThaiVowelsInfo = {
23
+ charType: "vowel";
24
+ pronunciation: string;
25
+ thaiName?: string;
26
+ romanName?: string;
27
+ length?: "short" | "long";
28
+ type?: string;
29
+ } & ThaiCharacterBaseInfo;
30
+ export type ThaiTonesInfo = {
31
+ charType: "tone";
32
+ thaiName: string;
33
+ romanName: string;
34
+ meaning: string;
35
+ } & ThaiCharacterBaseInfo;
36
+ export type ThaiNumbersInfo = {
37
+ charType: "number";
38
+ meaning: string;
39
+ pronunciation: string;
40
+ display?: string;
41
+ } & ThaiCharacterBaseInfo;
42
+ export type ThaiSymbolsInfo = {
43
+ charType: "symbol";
44
+ meaning: string;
45
+ pronunciation?: string;
46
+ thaiName?: string;
47
+ romanName?: string;
48
+ } & ThaiCharacterBaseInfo;
49
+ export type ThaiCharacter = ThaiVowelsInfo | ThaiConsonantsInfo | ThaiTonesInfo | ThaiNumbersInfo | ThaiSymbolsInfo;
50
+ export declare function isVowel(character: ThaiCharacter): character is ThaiVowelsInfo;
51
+ export declare function isConsonant(character: ThaiCharacter): character is ThaiConsonantsInfo;
52
+ export declare function isTone(character: ThaiCharacter): character is ThaiTonesInfo;
53
+ export declare function isNumber(character: ThaiCharacter): character is ThaiNumbersInfo;
54
+ export declare function isSymbol(character: ThaiCharacter): character is ThaiSymbolsInfo;
55
+ /**
56
+ * Get the display character for a Thai character (vowel or consonant)
57
+ * Vowels have a .display attribute, consonants fall back to .char
58
+ */
59
+ export declare function getDisplayCharacter(character: ThaiCharacter): string;
60
+ export {};
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,KAAK,qBAAqB,GAAG;IAC3B,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,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,WAAW,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACjC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;CAC5B,GAAG,qBAAqB,CAAC;AAE1B,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,qBAAqB,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,qBAAqB,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC;AAG1B,MAAM,MAAM,aAAa,GACrB,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAGpB,wBAAgB,OAAO,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,IAAI,cAAc,CAE7E;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,IAAI,kBAAkB,CAErF;AAED,wBAAgB,MAAM,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,IAAI,aAAa,CAE3E;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,IAAI,eAAe,CAE/E;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,IAAI,eAAe,CAE/E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,CAEpE"}
package/dist/types.js ADDED
@@ -0,0 +1,26 @@
1
+ function r(n) {
2
+ return n.charType === "vowel";
3
+ }
4
+ function e(n) {
5
+ return n.charType === "consonant";
6
+ }
7
+ function o(n) {
8
+ return n.charType === "tone";
9
+ }
10
+ function t(n) {
11
+ return n.charType === "number";
12
+ }
13
+ function u(n) {
14
+ return n.charType === "symbol";
15
+ }
16
+ function i(n) {
17
+ return n.display ?? n.char;
18
+ }
19
+ export {
20
+ i as getDisplayCharacter,
21
+ e as isConsonant,
22
+ t as isNumber,
23
+ u as isSymbol,
24
+ o as isTone,
25
+ r as isVowel
26
+ };
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@laeng/th",
3
+ "version": "0.1.0",
4
+ "description": "Thai language foundation data - characters, transcriptions, and vocabulary",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./characters": {
14
+ "types": "./dist/characters/index.d.ts",
15
+ "import": "./dist/characters/index.js"
16
+ },
17
+ "./types": {
18
+ "types": "./dist/types/index.d.ts",
19
+ "import": "./dist/types/index.js"
20
+ },
21
+ "./ids": {
22
+ "types": "./dist/ids.d.ts",
23
+ "import": "./dist/ids.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "dependencies": {},
30
+ "devDependencies": {
31
+ "vite": "^5.4.0",
32
+ "vite-plugin-dts": "^4.0.0"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "keywords": [
38
+ "thai",
39
+ "language-learning",
40
+ "laeng",
41
+ "characters",
42
+ "transcriptions",
43
+ "vocabulary"
44
+ ],
45
+ "license": "MIT",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/fustilio/polyglot-bundles",
49
+ "directory": "packages/th/laeng"
50
+ },
51
+ "scripts": {
52
+ "build": "vite build",
53
+ "clean": "rm -rf dist",
54
+ "lint": "eslint src",
55
+ "test": "vitest run"
56
+ }
57
+ }