glost 0.3.0 → 0.5.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.
Files changed (57) hide show
  1. package/README.md +253 -114
  2. package/dist/index.d.ts +29 -7
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +38 -23
  5. package/dist/index.js.map +1 -1
  6. package/dist/presets.d.ts +7 -0
  7. package/dist/presets.d.ts.map +1 -0
  8. package/dist/presets.js +7 -0
  9. package/dist/presets.js.map +1 -0
  10. package/dist/processor.d.ts +8 -0
  11. package/dist/processor.d.ts.map +1 -0
  12. package/dist/processor.js +7 -0
  13. package/dist/processor.js.map +1 -0
  14. package/dist/registry.d.ts +8 -0
  15. package/dist/registry.d.ts.map +1 -0
  16. package/dist/registry.js +7 -0
  17. package/dist/registry.js.map +1 -0
  18. package/package.json +27 -37
  19. package/src/index.ts +126 -68
  20. package/src/presets.ts +18 -0
  21. package/src/processor.ts +24 -0
  22. package/src/registry.ts +23 -0
  23. package/tsconfig.json +6 -3
  24. package/CHANGELOG.md +0 -151
  25. package/dist/example.d.ts +0 -10
  26. package/dist/example.d.ts.map +0 -1
  27. package/dist/example.js +0 -138
  28. package/dist/example.js.map +0 -1
  29. package/dist/guards.d.ts +0 -103
  30. package/dist/guards.d.ts.map +0 -1
  31. package/dist/guards.js +0 -264
  32. package/dist/guards.js.map +0 -1
  33. package/dist/nodes.d.ts +0 -163
  34. package/dist/nodes.d.ts.map +0 -1
  35. package/dist/nodes.js +0 -186
  36. package/dist/nodes.js.map +0 -1
  37. package/dist/types.d.ts +0 -379
  38. package/dist/types.d.ts.map +0 -1
  39. package/dist/types.js +0 -6
  40. package/dist/types.js.map +0 -1
  41. package/dist/utils.d.ts +0 -203
  42. package/dist/utils.d.ts.map +0 -1
  43. package/dist/utils.js +0 -497
  44. package/dist/utils.js.map +0 -1
  45. package/dist/validators.d.ts +0 -1876
  46. package/dist/validators.d.ts.map +0 -1
  47. package/dist/validators.js +0 -302
  48. package/dist/validators.js.map +0 -1
  49. package/src/__tests__/README.md +0 -20
  50. package/src/__tests__/example.test.ts +0 -43
  51. package/src/__tests__/example.ts +0 -186
  52. package/src/__tests__/mock-data.ts +0 -624
  53. package/src/guards.ts +0 -341
  54. package/src/nodes.ts +0 -327
  55. package/src/types.ts +0 -565
  56. package/src/utils.ts +0 -652
  57. package/src/validators.ts +0 -336
package/dist/nodes.js DELETED
@@ -1,186 +0,0 @@
1
- // ============================================================================
2
- // Node Factory Functions
3
- // ============================================================================
4
- /**
5
- * Create a GLOST word node
6
- *
7
- * @example
8
- * ```typescript
9
- * const word = createGLOSTWordNode({
10
- * value: "hello",
11
- * transcription: { ipa: { text: "həˈloʊ", system: "ipa" } },
12
- * metadata: { partOfSpeech: "interjection" },
13
- * lang: "en",
14
- * script: "latin"
15
- * });
16
- * ```
17
- */
18
- export function createGLOSTWordNode(options) {
19
- const { value, transcription, metadata, lang, script, extras } = options;
20
- return {
21
- type: "WordNode",
22
- lang,
23
- script,
24
- transcription,
25
- metadata,
26
- extras,
27
- children: [createGLOSTTextNode(value)],
28
- };
29
- }
30
- /**
31
- * Create a GLOST sentence node
32
- *
33
- * @example
34
- * ```typescript
35
- * const sentence = createGLOSTSentenceNode({
36
- * originalText: "Hello world",
37
- * lang: "en",
38
- * script: "latin",
39
- * children: [wordNode1, wordNode2]
40
- * });
41
- * ```
42
- */
43
- export function createGLOSTSentenceNode(options) {
44
- const { originalText, lang, script, children = [], transcription, extras, } = options;
45
- return {
46
- type: "SentenceNode",
47
- originalText,
48
- lang,
49
- script,
50
- transcription,
51
- children,
52
- extras,
53
- };
54
- }
55
- /**
56
- * Create a GLOST paragraph node
57
- */
58
- export function createGLOSTParagraphNode(children = [], extras) {
59
- return {
60
- type: "ParagraphNode",
61
- children,
62
- position: undefined,
63
- extras,
64
- };
65
- }
66
- /**
67
- * Create a GLOST root node
68
- *
69
- * @example
70
- * ```typescript
71
- * const root = createGLOSTRootNode({
72
- * lang: "en",
73
- * script: "latin",
74
- * children: [paragraphNode],
75
- * metadata: { title: "My Document" }
76
- * });
77
- * ```
78
- */
79
- export function createGLOSTRootNode(options) {
80
- const { lang, script, children = [], metadata, extras } = options;
81
- return {
82
- type: "RootNode",
83
- lang,
84
- script,
85
- metadata,
86
- children,
87
- position: undefined,
88
- extras,
89
- };
90
- }
91
- // ============================================================================
92
- // Helper Functions for Common Patterns
93
- // ============================================================================
94
- /**
95
- * Create a simple word node with basic transcription
96
- *
97
- * @example
98
- * ```typescript
99
- * const word = createSimpleWord({
100
- * text: "hello",
101
- * transliteration: "həˈloʊ",
102
- * system: "ipa",
103
- * partOfSpeech: "interjection"
104
- * });
105
- * ```
106
- */
107
- export function createSimpleWord(options) {
108
- const { text, transliteration, system = "ipa", partOfSpeech = "unknown" } = options;
109
- const transcription = {
110
- [system]: {
111
- text: transliteration,
112
- system: system,
113
- syllables: [text],
114
- },
115
- };
116
- const metadata = {
117
- partOfSpeech,
118
- };
119
- return createGLOSTWordNode({ value: text, transcription, metadata });
120
- }
121
- /**
122
- * Create a sentence from an array of words
123
- */
124
- export function createSentenceFromWords(words, lang, script, originalText) {
125
- const text = originalText ||
126
- words
127
- .map((w) => {
128
- // Extract text from word's Text node children
129
- const textNode = w.children.find((child) => child.type === "TextNode");
130
- return textNode ? textNode.value : "";
131
- })
132
- .join("");
133
- return createGLOSTSentenceNode({ originalText: text, lang, script, children: words });
134
- }
135
- /**
136
- * Create a paragraph from an array of sentences
137
- */
138
- export function createParagraphFromSentences(sentences) {
139
- return createGLOSTParagraphNode(sentences);
140
- }
141
- /**
142
- * Create a document from an array of paragraphs
143
- */
144
- export function createDocumentFromParagraphs(paragraphs, lang, script, metadata) {
145
- return createGLOSTRootNode({ lang, script, children: paragraphs, metadata });
146
- }
147
- // ============================================================================
148
- // NLCST Node Factory Functions
149
- // ============================================================================
150
- /**
151
- * Create a GLOST punctuation node
152
- */
153
- export function createGLOSTPunctuationNode(value) {
154
- return {
155
- type: "PunctuationNode",
156
- value,
157
- };
158
- }
159
- /**
160
- * Create a GLOST whitespace node
161
- */
162
- export function createGLOSTWhiteSpaceNode(value) {
163
- return {
164
- type: "WhiteSpaceNode",
165
- value,
166
- };
167
- }
168
- /**
169
- * Create a GLOST symbol node
170
- */
171
- export function createGLOSTSymbolNode(value) {
172
- return {
173
- type: "SymbolNode",
174
- value,
175
- };
176
- }
177
- /**
178
- * Create a GLOST text node
179
- */
180
- export function createGLOSTTextNode(value) {
181
- return {
182
- type: "TextNode",
183
- value,
184
- };
185
- }
186
- //# sourceMappingURL=nodes.js.map
package/dist/nodes.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../src/nodes.ts"],"names":[],"mappings":"AA4FA,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAA8B;IAChE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACzE,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,IAAI;QACJ,MAAM;QACN,aAAa;QACb,QAAQ;QACR,MAAM;QACN,QAAQ,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;KACvC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAkC;IAElC,MAAM,EACJ,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,QAAQ,GAAG,EAAE,EACb,aAAa,EACb,MAAM,GACP,GAAG,OAAO,CAAC;IACZ,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,YAAY;QACZ,IAAI;QACJ,MAAM;QACN,aAAa;QACb,QAAQ;QACR,MAAM;KACP,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,WAA4B,EAAE,EAC9B,MAAoB;IAEpB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Paragraph, Punctuation as NlcstPunctuation, Root as NlcstRoot, Sentence as NlcstSentence, Source as NlcstSource, Symbol as NlcstSymbol, Text as NlcstText, WhiteSpace as NlcstWhiteSpace, Word as NlcstWord } from "nlcst";
2
- /**
3
- * Linguistic level of a text segment
4
- */
5
- export type LinguisticLevel = "character" | "syllable" | "word" | "phrase" | "sentence" | "paragraph";
6
- /**
7
- * Context for pronunciation variants
8
- */
9
- export type PronunciationContext = "formal" | "informal" | "historical" | "regional" | "dialectal";
10
- /**
11
- * Transcription system identifiers
12
- */
13
- export type TranscriptionSystem = "rtgs" | "aua" | "paiboon" | "romaji" | "furigana" | "ipa" | "pinyin" | "hangul" | string;
14
- /**
15
- * Language codes following BCP-47 format (RFC 5646)
16
- * Format: language[-script][-region][-variant]
17
- * Examples: th-TH, ja-JP, zh-CN, ko-KR, en-US, fr-FR, de-DE
18
- */
19
- export type LanguageCode = "th-TH" | "th" | "ja-JP" | "ja" | "zh-CN" | "zh-TW" | "zh-HK" | "zh" | "ko-KR" | "ko-KP" | "ko" | "en-US" | "en-GB" | "en-CA" | "en-AU" | "en" | "fr-FR" | "fr-CA" | "fr-BE" | "fr" | "de-DE" | "de-AT" | "de-CH" | "de" | "es-ES" | "es-MX" | "es-AR" | "es" | "it-IT" | "it-CH" | "it" | "pt-PT" | "pt-BR" | "pt" | "ru-RU" | "ru" | "ar-SA" | "ar-EG" | "ar" | "hi-IN" | "hi" | string;
20
- /**
21
- * Script system identifiers
22
- */
23
- export type ScriptSystem = "thai" | "hiragana" | "katakana" | "kanji" | "hanzi" | "hangul" | "latin" | "mixed" | string;
24
- /**
25
- * Quick translations in different languages using BCP-47 format
26
- */
27
- export type QuickTranslations = {
28
- /** English translations */
29
- "en-US"?: string;
30
- "en-GB"?: string;
31
- "en"?: string;
32
- /** Thai translations */
33
- "th-TH"?: string;
34
- "th"?: string;
35
- /** Japanese translations */
36
- "ja-JP"?: string;
37
- "ja"?: string;
38
- /** Chinese translations */
39
- "zh-CN"?: string;
40
- "zh-TW"?: string;
41
- "zh"?: string;
42
- /** Korean translations */
43
- "ko-KR"?: string;
44
- "ko"?: string;
45
- /** French translations */
46
- "fr-FR"?: string;
47
- "fr-CA"?: string;
48
- "fr"?: string;
49
- /** German translations */
50
- "de-DE"?: string;
51
- "de"?: string;
52
- /** Spanish translations */
53
- "es-ES"?: string;
54
- "es-MX"?: string;
55
- "es"?: string;
56
- /** Custom language translations using BCP-47 format */
57
- [lang: string]: string | undefined;
58
- };
59
- /**
60
- * Extended metadata for enhanced functionality
61
- */
62
- export type ExtendedMetadata = {
63
- /** Quick translations in multiple languages */
64
- translations?: QuickTranslations;
65
- /** Difficulty level for learners */
66
- difficulty?: "beginner" | "intermediate" | "advanced";
67
- /** Frequency in common usage */
68
- frequency?: "rare" | "uncommon" | "common" | "very-common";
69
- /** Cultural notes */
70
- culturalNotes?: string;
71
- /** Related words or concepts */
72
- related?: string[];
73
- /** Example sentences */
74
- examples?: string[];
75
- /** Custom extensions */
76
- [key: string]: any;
77
- };
78
- /**
79
- * Extras field for extending GLOST nodes
80
- */
81
- export type GLOSTExtras = {
82
- /** Quick translations */
83
- translations?: QuickTranslations;
84
- /** Extended metadata */
85
- metadata?: ExtendedMetadata;
86
- /** Custom extensions */
87
- [key: string]: any;
88
- };
89
- /**
90
- * Pronunciation variant for a text segment
91
- */
92
- export type PronunciationVariant = {
93
- /** The variant text in the transcription system */
94
- text: string;
95
- /** Context where this variant is used */
96
- context: PronunciationContext;
97
- /** Additional notes about this variant */
98
- notes?: string;
99
- };
100
- /**
101
- * Transcription information for a text segment
102
- */
103
- export type TranscriptionInfo = {
104
- /** The transcription text */
105
- text: string;
106
- /** The transcription system used */
107
- system: TranscriptionSystem;
108
- /** Pronunciation variants */
109
- variants?: PronunciationVariant[];
110
- /** Tone information (for tonal languages) */
111
- tone?: number;
112
- /** Syllable breakdown */
113
- syllables?: string[];
114
- /** Additional phonetic information */
115
- phonetic?: string;
116
- };
117
- /**
118
- * Complete transliteration data for a text segment
119
- */
120
- export type TransliterationData = {
121
- /** Map of transcription systems to their data */
122
- [system: string]: TranscriptionInfo;
123
- };
124
- /**
125
- * Linguistic metadata for a text segment
126
- */
127
- export type LinguisticMetadata = {
128
- /** @deprecated Use extras.translations instead */
129
- meaning?: string;
130
- /** Part of speech */
131
- partOfSpeech: string;
132
- /** Usage notes */
133
- usage?: string;
134
- /** Etymology information */
135
- etymology?: string;
136
- /** Example usage */
137
- examples?: string[];
138
- /** Frequency information */
139
- frequency?: "high" | "medium" | "low";
140
- /** Formality level */
141
- formality?: "formal" | "neutral" | "informal";
142
- /** Register (academic, colloquial, etc.) */
143
- register?: string;
144
- /** @deprecated Use extras.translations instead */
145
- shortDefinition?: string;
146
- /** @deprecated Use extras.translations instead */
147
- fullDefinition?: string;
148
- /** @deprecated Use metadata enrichment extensions instead */
149
- difficulty?: "beginner" | "intermediate" | "advanced";
150
- };
151
- /**
152
- * Union type for all GLOST nodes
153
- */
154
- export type GLOSTNode = GLOSTWord | GLOSTSentence | GLOSTParagraph | GLOSTRoot | GLOSTText | GLOSTSymbol | GLOSTPunctuation | GLOSTWhiteSpace | GLOSTSource | GLOSTClause | GLOSTPhrase | GLOSTSyllable | GLOSTCharacter;
155
- /**
156
- * GLOST nodes that extend nlcst Literal (have a value property)
157
- */
158
- export type GLOSTLiteral = NlcstLiteral & {
159
- /** Language code for this node */
160
- lang?: LanguageCode;
161
- /** Script system used */
162
- script?: ScriptSystem;
163
- /** Linguistic level of this segment */
164
- level?: LinguisticLevel;
165
- /** Extras field for extensions */
166
- extras?: GLOSTExtras;
167
- };
168
- /**
169
- * GLOST Punctuation node (extends nlcst PunctuationNode)
170
- */
171
- export type GLOSTPunctuation = NlcstPunctuation & {};
172
- /**
173
- * GLOST WhiteSpace node (extends nlcst WhiteSpaceNode)
174
- */
175
- export type GLOSTWhiteSpace = NlcstWhiteSpace & {};
176
- /**
177
- * GLOST Symbol node (extends nlcst SymbolNode)
178
- */
179
- export type GLOSTSymbol = NlcstSymbol & {};
180
- /**
181
- * GLOST Text node (extends nlcst TextNode)
182
- */
183
- export type GLOSTText = NlcstText & {};
184
- /**
185
- * GLOST Source node (extends nlcst SourceNode)
186
- */
187
- export type GLOSTSource = NlcstSource & {};
188
- /**
189
- * Extended word node with transcription support
190
- * Extends nlcst WordNode and adds GLOST-specific properties
191
- */
192
- export type GLOSTWord = Omit<NlcstWord, "children"> & {
193
- /** Transcription data */
194
- transcription: TransliterationData;
195
- /** Linguistic metadata */
196
- metadata: LinguisticMetadata;
197
- /** @deprecated Use extras.translations instead */
198
- shortDefinition?: string;
199
- /** @deprecated Use extras.translations instead */
200
- fullDefinition?: string;
201
- /** @deprecated Use metadata enrichment extensions instead */
202
- difficulty?: "beginner" | "intermediate" | "advanced";
203
- /** Language code for this node */
204
- lang?: LanguageCode;
205
- /** Script system used */
206
- script?: ScriptSystem;
207
- /** Linguistic level of this segment */
208
- level?: LinguisticLevel;
209
- /** Extras field for extensions */
210
- extras?: GLOSTExtras;
211
- /** Children nodes - must contain at least one Text node */
212
- children: GLOSTWordContent[];
213
- };
214
- /**
215
- * Extended sentence node
216
- * Extends nlcst SentenceNode and adds GLOST-specific properties
217
- */
218
- export type GLOSTSentence = Omit<NlcstSentence, "children"> & {
219
- /** Language of the sentence */
220
- lang: LanguageCode;
221
- /** Script system used */
222
- script: ScriptSystem;
223
- /** Original text */
224
- originalText: string;
225
- /** Transcription data for the entire sentence */
226
- transcription?: TransliterationData;
227
- /** Extras field for extensions */
228
- extras?: GLOSTExtras;
229
- /** Children nodes - must be nlcst-compliant */
230
- children: GLOSTSentenceContent[];
231
- };
232
- /**
233
- * Extended paragraph node
234
- */
235
- export type GLOSTParagraph = Omit<NlcstParagraph, "children"> & {
236
- /** Language of the paragraph */
237
- lang?: LanguageCode;
238
- /** Script system used */
239
- script?: ScriptSystem;
240
- /** Extras field for extensions */
241
- extras?: GLOSTExtras;
242
- /** Children nodes - must be nlcst-compliant */
243
- children: GLOSTParagraphContent[];
244
- };
245
- /**
246
- * Extended root node
247
- */
248
- export type GLOSTRoot = Omit<NlcstRoot, "children"> & {
249
- /** Primary language of the document */
250
- lang: LanguageCode;
251
- /** Primary script system */
252
- script: ScriptSystem;
253
- /** Extras field for extensions */
254
- extras?: GLOSTExtras;
255
- /** Document metadata */
256
- metadata?: {
257
- title?: string;
258
- author?: string;
259
- date?: string;
260
- description?: string;
261
- };
262
- /** Children nodes - must be nlcst-compliant */
263
- children: GLOSTRootContent[];
264
- };
265
- /**
266
- * Clause node - represents grammatical clauses within sentences
267
- * Created by ClauseSegmenterExtension transformer
268
- */
269
- export type GLOSTClause = {
270
- type: "ClauseNode";
271
- /** Type of clause */
272
- clauseType: "main" | "subordinate" | "relative" | "adverbial";
273
- /** Children nodes - phrases, words, or punctuation */
274
- children: (GLOSTPhrase | GLOSTWord | GLOSTPunctuation)[];
275
- /** Language code for this clause */
276
- lang?: LanguageCode;
277
- /** Script system used */
278
- script?: ScriptSystem;
279
- /** Extras field for extensions */
280
- extras?: GLOSTExtras & {
281
- /** Whether this clause has been negated */
282
- isNegated?: boolean;
283
- /** Grammatical mood */
284
- mood?: "declarative" | "interrogative" | "imperative" | "conditional";
285
- /** Tense information */
286
- tense?: string;
287
- /** Original form before transformation */
288
- originalForm?: string;
289
- };
290
- };
291
- /**
292
- * Phrase node - groups words into grammatical phrases
293
- * Created by PhraseSegmenterExtension transformer
294
- */
295
- export type GLOSTPhrase = {
296
- type: "PhraseNode";
297
- /** Type of phrase */
298
- phraseType: "noun" | "verb" | "prepositional" | "adjectival" | "adverbial";
299
- /** Main word of the phrase (head) */
300
- headWord?: string;
301
- /** Children nodes - words or punctuation */
302
- children: (GLOSTWord | GLOSTPunctuation)[];
303
- /** Language code for this phrase */
304
- lang?: LanguageCode;
305
- /** Script system used */
306
- script?: ScriptSystem;
307
- /** Extras field for extensions */
308
- extras?: GLOSTExtras & {
309
- /** Grammatical role in the clause/sentence */
310
- role?: "subject" | "object" | "complement" | "modifier";
311
- };
312
- };
313
- /**
314
- * Syllable node - represents phonological syllable structure
315
- * Created by SyllableSegmenterExtension transformer (language-specific)
316
- */
317
- export type GLOSTSyllable = {
318
- type: "SyllableNode";
319
- /** Syllable structure information */
320
- structure: {
321
- /** Initial consonant(s) - Generic (e.g., "h" in "hello") */
322
- onset?: string;
323
- /** Vowel - Generic (e.g., "e" in "hello") */
324
- nucleus: string;
325
- /** Final consonant(s) - Generic (e.g., "l" in "hello") */
326
- coda?: string;
327
- /** Initial consonant (Thai: พยัญชนะต้น) */
328
- Ci?: string;
329
- /** Vowel (Thai: สระ) */
330
- V?: string;
331
- /** Final consonant (Thai: ตัวสะกด) */
332
- Cf?: string;
333
- /** Tone mark (Thai: วรรณยุกต์) */
334
- T?: string;
335
- };
336
- /** Children nodes - individual characters */
337
- children: GLOSTCharacter[];
338
- /** Language code for this syllable */
339
- lang?: LanguageCode;
340
- /** Script system used */
341
- script?: ScriptSystem;
342
- /** Tone number (for tonal languages like Thai, Mandarin) */
343
- tone?: number;
344
- /** Stress level (for stress languages like English) */
345
- stress?: "primary" | "secondary" | "unstressed";
346
- /** Extras field for extensions */
347
- extras?: GLOSTExtras;
348
- };
349
- /**
350
- * Character node - represents individual characters with linguistic roles
351
- * Created by SyllableSegmenterExtension or CharacterSegmenterExtension
352
- */
353
- export type GLOSTCharacter = {
354
- type: "CharacterNode";
355
- /** The character value (single character) */
356
- value: string;
357
- /** Linguistic role of the character */
358
- role?: "consonant" | "vowel" | "tone" | "diacritic" | "modifier";
359
- /** Placement in the syllable/word (renamed from 'position' to avoid conflict with unist Position) */
360
- placement?: "initial" | "medial" | "final" | "above" | "below" | "before" | "after";
361
- /** Language code for this character */
362
- lang?: LanguageCode;
363
- /** Script system used */
364
- script?: ScriptSystem;
365
- /** Extras field for extensions */
366
- extras?: GLOSTExtras & {
367
- /** Unicode code point (e.g., "U+0E04") */
368
- unicode?: string;
369
- /** Thai consonant class (high/mid/low) */
370
- class?: "high" | "mid" | "low";
371
- /** Phonological sound class */
372
- soundClass?: string;
373
- };
374
- };
375
- export type GLOSTRootContent = GLOSTParagraph | GLOSTSentence | GLOSTWord | GLOSTText | GLOSTSymbol | GLOSTPunctuation | GLOSTWhiteSpace | GLOSTSource;
376
- export type GLOSTParagraphContent = GLOSTSentence | GLOSTPunctuation | GLOSTSymbol | GLOSTWhiteSpace | GLOSTSource;
377
- export type GLOSTSentenceContent = GLOSTClause | GLOSTWord | GLOSTPunctuation | GLOSTSymbol | GLOSTWhiteSpace | GLOSTSource;
378
- export type GLOSTWordContent = GLOSTSyllable | GLOSTText | GLOSTSymbol | GLOSTPunctuation | GLOSTWhiteSpace | GLOSTSource;
379
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,SAAS,IAAI,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,IAAI,IAAI,SAAS,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,IAAI,WAAW,EAAE,IAAI,IAAI,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpR;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,UAAU,GACV,MAAM,GACN,QAAQ,GACR,UAAU,GACV,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,UAAU,GACV,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,KAAK,GACL,SAAS,GACT,QAAQ,GACR,UAAU,GACV,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAEpB,OAAO,GACP,IAAI,GAGJ,OAAO,GACP,I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AAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpF,uCAAuC;IACvC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,yBAAyB;IACzB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,kCAAkC;IAClC,MAAM,CAAC,EAAE,WAAW,GAAG;QACrB,0CAA0C;QAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,0CAA0C;QAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;QAC/B,+BAA+B;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,eAAe,GAAG,WAAW,CAAC;AACvJ,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,gBAAgB,GAAG,WAAW,GAAG,eAAe,GAAG,WAAW,CAAC;AACnH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,WAAW,GAAG,eAAe,GAAG,WAAW,CAAC;AAC5H,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,eAAe,GAAG,WAAW,CAAC"}
package/dist/types.js DELETED
@@ -1,6 +0,0 @@
1
- export {};
2
- // ============================================================================
3
- // Utility Types
4
- // ============================================================================
5
- // Type guards are now implemented in utils.ts using unist-util-is
6
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAgjBA,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E,kEAAkE"}