@lokascript/domain-learn 2.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/generators/gloss-generator.d.ts +18 -0
- package/dist/generators/learn-renderer.d.ts +13 -0
- package/dist/generators/sentence-generator.d.ts +34 -0
- package/dist/index.cjs +6116 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +441 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +6056 -0
- package/dist/index.js.map +1 -0
- package/dist/profiles/ar.d.ts +2 -0
- package/dist/profiles/de.d.ts +2 -0
- package/dist/profiles/en.d.ts +2 -0
- package/dist/profiles/es.d.ts +2 -0
- package/dist/profiles/fr.d.ts +2 -0
- package/dist/profiles/index.d.ts +20 -0
- package/dist/profiles/ja.d.ts +2 -0
- package/dist/profiles/ko.d.ts +2 -0
- package/dist/profiles/pt.d.ts +2 -0
- package/dist/profiles/tr.d.ts +2 -0
- package/dist/profiles/zh.d.ts +2 -0
- package/dist/schemas/index.d.ts +31 -0
- package/dist/tokenizers/index.d.ts +23 -0
- package/dist/types.d.ts +266 -0
- package/package.json +63 -0
- package/src/__tests__/schemas.test.ts +145 -0
- package/src/__tests__/sentence-generation.test.ts +189 -0
- package/src/generators/gloss-generator.ts +145 -0
- package/src/generators/learn-renderer.ts +291 -0
- package/src/generators/sentence-generator.ts +501 -0
- package/src/index.ts +237 -0
- package/src/profiles/ar.ts +526 -0
- package/src/profiles/de.ts +481 -0
- package/src/profiles/en.ts +181 -0
- package/src/profiles/es.ts +829 -0
- package/src/profiles/fr.ts +466 -0
- package/src/profiles/index.ts +34 -0
- package/src/profiles/ja.ts +301 -0
- package/src/profiles/ko.ts +286 -0
- package/src/profiles/pt.ts +484 -0
- package/src/profiles/tr.ts +511 -0
- package/src/profiles/zh.ts +256 -0
- package/src/schemas/index.ts +576 -0
- package/src/tokenizers/index.ts +409 -0
- package/src/types.ts +321 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import type { LearnLanguageProfile } from '../types';
|
|
2
|
+
|
|
3
|
+
export const zhProfile: LearnLanguageProfile = {
|
|
4
|
+
patternProfile: {
|
|
5
|
+
code: 'zh',
|
|
6
|
+
wordOrder: 'SVO',
|
|
7
|
+
keywords: {
|
|
8
|
+
add: { primary: '添加' },
|
|
9
|
+
remove: { primary: '移除' },
|
|
10
|
+
toggle: { primary: '切换' },
|
|
11
|
+
put: { primary: '放置' },
|
|
12
|
+
set: { primary: '设置' },
|
|
13
|
+
show: { primary: '显示' },
|
|
14
|
+
hide: { primary: '隐藏' },
|
|
15
|
+
get: { primary: '获取' },
|
|
16
|
+
wait: { primary: '等待' },
|
|
17
|
+
fetch: { primary: '抓取' },
|
|
18
|
+
send: { primary: '发送' },
|
|
19
|
+
go: { primary: '前往' },
|
|
20
|
+
increment: { primary: '增加' },
|
|
21
|
+
decrement: { primary: '减少' },
|
|
22
|
+
take: { primary: '拿取' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
morphologyTable: {
|
|
26
|
+
add: {
|
|
27
|
+
base: '添加',
|
|
28
|
+
pinyin: 'tiān jiā',
|
|
29
|
+
patterns: {
|
|
30
|
+
completed: '添加了',
|
|
31
|
+
experience: '添加过',
|
|
32
|
+
progressive: '在添加',
|
|
33
|
+
future: '会添加',
|
|
34
|
+
negPresent: '不添加',
|
|
35
|
+
negPast: '没添加',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
remove: {
|
|
39
|
+
base: '移除',
|
|
40
|
+
pinyin: 'yí chú',
|
|
41
|
+
patterns: {
|
|
42
|
+
completed: '移除了',
|
|
43
|
+
experience: '移除过',
|
|
44
|
+
progressive: '在移除',
|
|
45
|
+
future: '会移除',
|
|
46
|
+
negPresent: '不移除',
|
|
47
|
+
negPast: '没移除',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
toggle: {
|
|
51
|
+
base: '切换',
|
|
52
|
+
pinyin: 'qiē huàn',
|
|
53
|
+
patterns: {
|
|
54
|
+
completed: '切换了',
|
|
55
|
+
experience: '切换过',
|
|
56
|
+
progressive: '在切换',
|
|
57
|
+
future: '会切换',
|
|
58
|
+
negPresent: '不切换',
|
|
59
|
+
negPast: '没切换',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
put: {
|
|
63
|
+
base: '放置',
|
|
64
|
+
pinyin: 'fàng zhì',
|
|
65
|
+
patterns: {
|
|
66
|
+
completed: '放置了',
|
|
67
|
+
experience: '放置过',
|
|
68
|
+
progressive: '在放置',
|
|
69
|
+
future: '会放置',
|
|
70
|
+
negPresent: '不放置',
|
|
71
|
+
negPast: '没放置',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
set: {
|
|
75
|
+
base: '设置',
|
|
76
|
+
pinyin: 'shè zhì',
|
|
77
|
+
patterns: {
|
|
78
|
+
completed: '设置了',
|
|
79
|
+
experience: '设置过',
|
|
80
|
+
progressive: '在设置',
|
|
81
|
+
future: '会设置',
|
|
82
|
+
negPresent: '不设置',
|
|
83
|
+
negPast: '没设置',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
show: {
|
|
87
|
+
base: '显示',
|
|
88
|
+
pinyin: 'xiǎn shì',
|
|
89
|
+
patterns: {
|
|
90
|
+
completed: '显示了',
|
|
91
|
+
experience: '显示过',
|
|
92
|
+
progressive: '在显示',
|
|
93
|
+
future: '会显示',
|
|
94
|
+
negPresent: '不显示',
|
|
95
|
+
negPast: '没显示',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
hide: {
|
|
99
|
+
base: '隐藏',
|
|
100
|
+
pinyin: 'yǐn cáng',
|
|
101
|
+
patterns: {
|
|
102
|
+
completed: '隐藏了',
|
|
103
|
+
experience: '隐藏过',
|
|
104
|
+
progressive: '在隐藏',
|
|
105
|
+
future: '会隐藏',
|
|
106
|
+
negPresent: '不隐藏',
|
|
107
|
+
negPast: '没隐藏',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
get: {
|
|
111
|
+
base: '获取',
|
|
112
|
+
pinyin: 'huò qǔ',
|
|
113
|
+
patterns: {
|
|
114
|
+
completed: '获取了',
|
|
115
|
+
experience: '获取过',
|
|
116
|
+
progressive: '在获取',
|
|
117
|
+
future: '会获取',
|
|
118
|
+
negPresent: '不获取',
|
|
119
|
+
negPast: '没获取',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
wait: {
|
|
123
|
+
base: '等待',
|
|
124
|
+
pinyin: 'děng dài',
|
|
125
|
+
patterns: {
|
|
126
|
+
completed: '等待了',
|
|
127
|
+
experience: '等待过',
|
|
128
|
+
progressive: '在等待',
|
|
129
|
+
future: '会等待',
|
|
130
|
+
negPresent: '不等待',
|
|
131
|
+
negPast: '没等待',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
fetch: {
|
|
135
|
+
base: '抓取',
|
|
136
|
+
pinyin: 'zhuā qǔ',
|
|
137
|
+
patterns: {
|
|
138
|
+
completed: '抓取了',
|
|
139
|
+
experience: '抓取过',
|
|
140
|
+
progressive: '在抓取',
|
|
141
|
+
future: '会抓取',
|
|
142
|
+
negPresent: '不抓取',
|
|
143
|
+
negPast: '没抓取',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
send: {
|
|
147
|
+
base: '发送',
|
|
148
|
+
pinyin: 'fā sòng',
|
|
149
|
+
patterns: {
|
|
150
|
+
completed: '发送了',
|
|
151
|
+
experience: '发送过',
|
|
152
|
+
progressive: '在发送',
|
|
153
|
+
future: '会发送',
|
|
154
|
+
negPresent: '不发送',
|
|
155
|
+
negPast: '没发送',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
go: {
|
|
159
|
+
base: '前往',
|
|
160
|
+
pinyin: 'qián wǎng',
|
|
161
|
+
patterns: {
|
|
162
|
+
completed: '前往了',
|
|
163
|
+
experience: '前往过',
|
|
164
|
+
progressive: '在前往',
|
|
165
|
+
future: '会前往',
|
|
166
|
+
negPresent: '不前往',
|
|
167
|
+
negPast: '没前往',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
increment: {
|
|
171
|
+
base: '增加',
|
|
172
|
+
pinyin: 'zēng jiā',
|
|
173
|
+
patterns: {
|
|
174
|
+
completed: '增加了',
|
|
175
|
+
experience: '增加过',
|
|
176
|
+
progressive: '在增加',
|
|
177
|
+
future: '会增加',
|
|
178
|
+
negPresent: '不增加',
|
|
179
|
+
negPast: '没增加',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
decrement: {
|
|
183
|
+
base: '减少',
|
|
184
|
+
pinyin: 'jiǎn shǎo',
|
|
185
|
+
patterns: {
|
|
186
|
+
completed: '减少了',
|
|
187
|
+
experience: '减少过',
|
|
188
|
+
progressive: '在减少',
|
|
189
|
+
future: '会减少',
|
|
190
|
+
negPresent: '不减少',
|
|
191
|
+
negPast: '没减少',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
take: {
|
|
195
|
+
base: '拿取',
|
|
196
|
+
pinyin: 'ná qǔ',
|
|
197
|
+
patterns: {
|
|
198
|
+
completed: '拿取了',
|
|
199
|
+
experience: '拿取过',
|
|
200
|
+
progressive: '在拿取',
|
|
201
|
+
future: '会拿取',
|
|
202
|
+
negPresent: '不拿取',
|
|
203
|
+
negPast: '没拿取',
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
frames: {
|
|
208
|
+
code: 'zh',
|
|
209
|
+
wordOrder: 'SVO',
|
|
210
|
+
frames: [
|
|
211
|
+
{
|
|
212
|
+
function: 'commanding',
|
|
213
|
+
template: '把 {patient} {verb.base} {target}',
|
|
214
|
+
verbForm: 'base',
|
|
215
|
+
example: '把 .active 添加 到 #button',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
function: 'describing',
|
|
219
|
+
template: '{subject} {verb.base} {patient} {target}',
|
|
220
|
+
verbForm: 'base',
|
|
221
|
+
example: '系统 添加 .active 到 #button',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
function: 'narrating',
|
|
225
|
+
template: '{subject} {verb.patterns.completed} {patient} {target}',
|
|
226
|
+
verbForm: 'patterns.completed',
|
|
227
|
+
example: '系统 添加了 .active 到 #button',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
function: 'questioning',
|
|
231
|
+
template: '{subject} {verb.patterns.completed} {patient} {target} 吗?',
|
|
232
|
+
verbForm: 'patterns.completed',
|
|
233
|
+
example: '系统 添加了 .active 到 #button 吗?',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
function: 'negating',
|
|
237
|
+
template: '{subject} {verb.patterns.negPast} {patient} {target}',
|
|
238
|
+
verbForm: 'patterns.negPast',
|
|
239
|
+
example: '系统 没添加 .active 到 #button',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
function: 'planning',
|
|
243
|
+
template: '{subject} {verb.patterns.future} {patient} {target}',
|
|
244
|
+
verbForm: 'patterns.future',
|
|
245
|
+
example: '系统 会添加 .active 到 #button',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
function: 'progressing',
|
|
249
|
+
template: '{subject} {verb.patterns.progressive} {patient} {target}',
|
|
250
|
+
verbForm: 'patterns.progressive',
|
|
251
|
+
example: '系统 在添加 .active 到 #button',
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
defaultSubject: '系统',
|
|
256
|
+
};
|