glost 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/LICENSE +21 -0
- package/README.md +62 -0
- package/dist/example.d.ts +10 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +82 -0
- package/dist/example.js.map +1 -0
- package/dist/guards.d.ts +103 -0
- package/dist/guards.d.ts.map +1 -0
- package/dist/guards.js +264 -0
- package/dist/guards.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/mock-data.d.ts +35 -0
- package/dist/mock-data.d.ts.map +1 -0
- package/dist/mock-data.js +494 -0
- package/dist/mock-data.js.map +1 -0
- package/dist/nodes.d.ts +68 -0
- package/dist/nodes.d.ts.map +1 -0
- package/dist/nodes.js +181 -0
- package/dist/nodes.js.map +1 -0
- package/dist/types.d.ts +379 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +203 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +497 -0
- package/dist/utils.js.map +1 -0
- package/dist/validators.d.ts +1876 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +302 -0
- package/dist/validators.js.map +1 -0
- package/package.json +67 -0
- package/src/example.ts +186 -0
- package/src/guards.ts +341 -0
- package/src/index.ts +69 -0
- package/src/mock-data.ts +635 -0
- package/src/nodes.ts +301 -0
- package/src/types.ts +565 -0
- package/src/utils.ts +653 -0
- package/src/validators.ts +336 -0
- package/tsconfig.json +9 -0
package/dist/nodes.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Node Factory Functions
|
|
3
|
+
// ============================================================================
|
|
4
|
+
/**
|
|
5
|
+
* Create an GLOST word node
|
|
6
|
+
*/
|
|
7
|
+
export function createGLOSTWordNode(value, transcription, metadata, level = "word", lang, script, extras) {
|
|
8
|
+
return {
|
|
9
|
+
type: "WordNode",
|
|
10
|
+
lang,
|
|
11
|
+
script,
|
|
12
|
+
transcription,
|
|
13
|
+
metadata,
|
|
14
|
+
extras,
|
|
15
|
+
children: [createGLOSTTextNode(value)],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Create an GLOST sentence node
|
|
20
|
+
*/
|
|
21
|
+
export function createGLOSTSentenceNode(originalText, lang, script, children = [], transcription, extras) {
|
|
22
|
+
return {
|
|
23
|
+
type: "SentenceNode",
|
|
24
|
+
originalText,
|
|
25
|
+
lang,
|
|
26
|
+
script,
|
|
27
|
+
transcription,
|
|
28
|
+
children,
|
|
29
|
+
extras,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create an GLOST paragraph node
|
|
34
|
+
*/
|
|
35
|
+
export function createGLOSTParagraphNode(children = [], extras) {
|
|
36
|
+
return {
|
|
37
|
+
type: "ParagraphNode",
|
|
38
|
+
children,
|
|
39
|
+
position: undefined,
|
|
40
|
+
extras,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create an GLOST root node
|
|
45
|
+
*/
|
|
46
|
+
export function createGLOSTRootNode(lang, script, children = [], metadata, extras) {
|
|
47
|
+
return {
|
|
48
|
+
type: "RootNode",
|
|
49
|
+
lang,
|
|
50
|
+
script,
|
|
51
|
+
metadata,
|
|
52
|
+
children,
|
|
53
|
+
position: undefined,
|
|
54
|
+
extras,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
// ============================================================================
|
|
58
|
+
// Helper Functions for Common Patterns
|
|
59
|
+
// ============================================================================
|
|
60
|
+
/**
|
|
61
|
+
* Create a simple word node with basic transcription
|
|
62
|
+
*/
|
|
63
|
+
export function createSimpleWord(text, transliteration, system = "ipa", partOfSpeech = "unknown", level = "word") {
|
|
64
|
+
const transcription = {
|
|
65
|
+
[system]: {
|
|
66
|
+
text: transliteration,
|
|
67
|
+
system: system,
|
|
68
|
+
syllables: [text],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
const metadata = {
|
|
72
|
+
partOfSpeech,
|
|
73
|
+
};
|
|
74
|
+
return createGLOSTWordNode(text, transcription, metadata, level);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Create a Thai word node with RTGS transcription
|
|
78
|
+
*/
|
|
79
|
+
export function createThaiWord(text, rtgs, partOfSpeech = "unknown", tone, syllables) {
|
|
80
|
+
const transcription = {
|
|
81
|
+
rtgs: {
|
|
82
|
+
text: rtgs,
|
|
83
|
+
system: "rtgs",
|
|
84
|
+
tone,
|
|
85
|
+
syllables: syllables || [text],
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
const metadata = {
|
|
89
|
+
partOfSpeech,
|
|
90
|
+
};
|
|
91
|
+
return createGLOSTWordNode(text, transcription, metadata, "word", "th", "thai");
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create a Japanese word node with romaji transcription
|
|
95
|
+
*/
|
|
96
|
+
export function createJapaneseWord(text, romaji, partOfSpeech = "unknown", furigana) {
|
|
97
|
+
const transcription = {
|
|
98
|
+
romaji: {
|
|
99
|
+
text: romaji,
|
|
100
|
+
system: "romaji",
|
|
101
|
+
syllables: [text],
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
if (furigana) {
|
|
105
|
+
transcription.furigana = {
|
|
106
|
+
text: furigana,
|
|
107
|
+
system: "furigana",
|
|
108
|
+
syllables: [text],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const metadata = {
|
|
112
|
+
partOfSpeech,
|
|
113
|
+
};
|
|
114
|
+
return createGLOSTWordNode(text, transcription, metadata, "word", "ja", "mixed");
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Create a sentence from an array of words
|
|
118
|
+
*/
|
|
119
|
+
export function createSentenceFromWords(words, lang, script, originalText) {
|
|
120
|
+
const text = originalText ||
|
|
121
|
+
words
|
|
122
|
+
.map((w) => {
|
|
123
|
+
// Extract text from word's Text node children
|
|
124
|
+
const textNode = w.children.find((child) => child.type === "TextNode");
|
|
125
|
+
return textNode ? textNode.value : "";
|
|
126
|
+
})
|
|
127
|
+
.join("");
|
|
128
|
+
return createGLOSTSentenceNode(text, lang, script, words);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Create a paragraph from an array of sentences
|
|
132
|
+
*/
|
|
133
|
+
export function createParagraphFromSentences(sentences) {
|
|
134
|
+
return createGLOSTParagraphNode(sentences);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create a document from an array of paragraphs
|
|
138
|
+
*/
|
|
139
|
+
export function createDocumentFromParagraphs(paragraphs, lang, script, metadata) {
|
|
140
|
+
return createGLOSTRootNode(lang, script, paragraphs, metadata);
|
|
141
|
+
}
|
|
142
|
+
// ============================================================================
|
|
143
|
+
// NLCST Node Factory Functions
|
|
144
|
+
// ============================================================================
|
|
145
|
+
/**
|
|
146
|
+
* Create an GLOST punctuation node
|
|
147
|
+
*/
|
|
148
|
+
export function createGLOSTPunctuationNode(value) {
|
|
149
|
+
return {
|
|
150
|
+
type: "PunctuationNode",
|
|
151
|
+
value,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Create an GLOST whitespace node
|
|
156
|
+
*/
|
|
157
|
+
export function createGLOSTWhiteSpaceNode(value) {
|
|
158
|
+
return {
|
|
159
|
+
type: "WhiteSpaceNode",
|
|
160
|
+
value,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Create an GLOST symbol node
|
|
165
|
+
*/
|
|
166
|
+
export function createGLOSTSymbolNode(value) {
|
|
167
|
+
return {
|
|
168
|
+
type: "SymbolNode",
|
|
169
|
+
value,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Create an GLOST text node
|
|
174
|
+
*/
|
|
175
|
+
export function createGLOSTTextNode(value) {
|
|
176
|
+
return {
|
|
177
|
+
type: "TextNode",
|
|
178
|
+
value,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../src/nodes.ts"],"names":[],"mappings":"AAiBA,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAa,EACb,aAAkC,EAClC,QAA4B,EAC5B,QAAyB,MAAM,EAC/B,IAAmB,EACnB,MAAqB,EACrB,MAAoB;IAEpB,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;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,YAAoB,EACpB,IAAkB,EAClB,MAAoB,EACpB,WAAwB,EAAE,EAC1B,aAAmC,EACnC,MAAoB;IAEpB,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,OAAO;QACL,IAAI,EAAE,eAAe;QAErB,QAAQ;QACR,QAAQ,EAAE,SAAS;QACnB,MAAM;KACP,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAkB,EAClB,MAAoB,EACpB,WAA6B,EAAE,EAC/B,QAKC,EACD,MAAoB;IAEpB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,IAAI;QACJ,MAAM;QACN,QAAQ;QAC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BAA0B,CAAC,KAAa;IACtD,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IACjD,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,KAAK;KACN,CAAC;AACJ,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import type { Literal as NlcstLiteral, Paragraph as NlcstParagraph, 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAqB,SAAS,IAAI,cAAc,EAAyB,WAAW,IAAI,gBAAgB,EAAE,IAAI,IAAI,SAAS,EAAmC,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;AAU/V;;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,CAA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,CAAC;IACjE,qGAAqG;IACrG,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,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
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|