ekms 8.0.0-beta.31 → 8.0.0-beta.33
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +325 -0
- package/common/articles.js +108 -0
- package/common/articles.test.json +310 -0
- package/common/colors.instance.json +340 -0
- package/common/crew.instance.json +525 -0
- package/common/dialogues.js +66 -102
- package/common/dimension.instance.json +20 -0
- package/common/edible.instance.json +650 -28
- package/common/emotions.instance.json +25 -0
- package/common/evaluate.instance.json +2 -0
- package/common/evaluate.js +55 -0
- package/common/evaluate.test.json +574 -0
- package/common/fastfood.instance.json +1989 -329
- package/common/formulas.instance.json +20 -0
- package/common/gdefaults.js +6 -6
- package/common/help.test.json +16 -4
- package/common/helpers.js +1 -1
- package/common/kirk.instance.json +20 -0
- package/common/length.instance.json +300 -0
- package/common/math.instance.json +25 -0
- package/common/nameable.instance.json +2 -0
- package/common/nameable.js +137 -0
- package/common/nameable.test.json +1545 -0
- package/common/ordering.instance.json +50 -0
- package/common/people.instance.json +165 -0
- package/common/pipboy.instance.json +340 -0
- package/common/pokemon.instance.json +265 -0
- package/common/pressure.instance.json +80 -0
- package/common/properties.instance.json +25 -0
- package/common/reports.instance.json +41 -1
- package/common/spock.instance.json +20 -0
- package/common/stm.js +109 -3
- package/common/stm.test.json +1702 -1
- package/common/temperature.instance.json +192 -0
- package/common/ui.instance.json +20 -0
- package/common/weight.instance.json +240 -0
- package/main.js +6 -0
- package/package.json +13 -2
@@ -184,6 +184,11 @@
|
|
184
184
|
"queryable",
|
185
185
|
false
|
186
186
|
],
|
187
|
+
[
|
188
|
+
"evaluate",
|
189
|
+
"verby",
|
190
|
+
false
|
191
|
+
],
|
187
192
|
[
|
188
193
|
"hasCountOfPieces",
|
189
194
|
"countable",
|
@@ -359,6 +364,11 @@
|
|
359
364
|
"theAble",
|
360
365
|
false
|
361
366
|
],
|
367
|
+
[
|
368
|
+
"memorable",
|
369
|
+
"theAble",
|
370
|
+
false
|
371
|
+
],
|
362
372
|
[
|
363
373
|
"minusExpression",
|
364
374
|
"mathematicalExpression",
|
@@ -519,6 +529,16 @@
|
|
519
529
|
"theAble",
|
520
530
|
false
|
521
531
|
],
|
532
|
+
[
|
533
|
+
"remember",
|
534
|
+
"verby",
|
535
|
+
false
|
536
|
+
],
|
537
|
+
[
|
538
|
+
"stm_before",
|
539
|
+
"adjective",
|
540
|
+
false
|
541
|
+
],
|
522
542
|
[
|
523
543
|
"that",
|
524
544
|
"thisitthat",
|
package/common/gdefaults.js
CHANGED
@@ -23,6 +23,12 @@ let configStruct = {
|
|
23
23
|
/*
|
24
24
|
* modifiers = <list of properties>
|
25
25
|
*/
|
26
|
+
{
|
27
|
+
where: where(),
|
28
|
+
match: ({context}) => context.isResponse && context.response,
|
29
|
+
apply: ({context, gp}) => gp(context.response),
|
30
|
+
},
|
31
|
+
|
26
32
|
{
|
27
33
|
where: where(),
|
28
34
|
//({context}) => context.paraphrase && context.modifiers,
|
@@ -155,12 +161,6 @@ let configStruct = {
|
|
155
161
|
apply: ({context}) => `the ${context.word}`
|
156
162
|
},
|
157
163
|
|
158
|
-
{
|
159
|
-
where: where(),
|
160
|
-
match: ({context}) => context.isResponse && context.response,
|
161
|
-
apply: ({context, gp}) => gp(context.response),
|
162
|
-
},
|
163
|
-
|
164
164
|
{
|
165
165
|
where: where(),
|
166
166
|
match: ({context}) => context.word,
|
package/common/help.test.json
CHANGED
@@ -194,7 +194,9 @@
|
|
194
194
|
},
|
195
195
|
"objects": {
|
196
196
|
"nameToUUID": {
|
197
|
+
"articles": "articles2",
|
197
198
|
"dialogues": "dialogues2",
|
199
|
+
"evaluate": "evaluate2",
|
198
200
|
"gdefaults": "gdefaults2",
|
199
201
|
"help": "help1",
|
200
202
|
"meta": "meta2",
|
@@ -206,6 +208,8 @@
|
|
206
208
|
"tokenize": "tokenize2"
|
207
209
|
},
|
208
210
|
"namespaced": {
|
211
|
+
"articles2": {
|
212
|
+
},
|
209
213
|
"dialogues2": {
|
210
214
|
"idSuffix": "",
|
211
215
|
"mentioned": [
|
@@ -213,6 +217,8 @@
|
|
213
217
|
"variables": {
|
214
218
|
}
|
215
219
|
},
|
220
|
+
"evaluate2": {
|
221
|
+
},
|
216
222
|
"gdefaults2": {
|
217
223
|
},
|
218
224
|
"help1": {
|
@@ -346,7 +352,7 @@
|
|
346
352
|
}
|
347
353
|
],
|
348
354
|
"generatedParenthesized": [
|
349
|
-
"( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n)"
|
355
|
+
"( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n)"
|
350
356
|
],
|
351
357
|
"metadata": {
|
352
358
|
"opChoices": [
|
@@ -367,7 +373,9 @@
|
|
367
373
|
},
|
368
374
|
"objects": {
|
369
375
|
"nameToUUID": {
|
376
|
+
"articles": "articles2",
|
370
377
|
"dialogues": "dialogues2",
|
378
|
+
"evaluate": "evaluate2",
|
371
379
|
"gdefaults": "gdefaults2",
|
372
380
|
"help": "help1",
|
373
381
|
"meta": "meta2",
|
@@ -379,6 +387,8 @@
|
|
379
387
|
"tokenize": "tokenize2"
|
380
388
|
},
|
381
389
|
"namespaced": {
|
390
|
+
"articles2": {
|
391
|
+
},
|
382
392
|
"dialogues2": {
|
383
393
|
"idSuffix": "",
|
384
394
|
"mentioned": [
|
@@ -386,6 +396,8 @@
|
|
386
396
|
"variables": {
|
387
397
|
}
|
388
398
|
},
|
399
|
+
"evaluate2": {
|
400
|
+
},
|
389
401
|
"gdefaults2": {
|
390
402
|
},
|
391
403
|
"help1": {
|
@@ -428,11 +440,11 @@
|
|
428
440
|
"value": "help",
|
429
441
|
"word": "help"
|
430
442
|
},
|
431
|
-
"generatedParenthesized": "( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n)",
|
443
|
+
"generatedParenthesized": "( NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n)",
|
432
444
|
"paraphrases": "help",
|
433
445
|
"paraphrasesParenthesized": "(help)",
|
434
446
|
"responses": [
|
435
|
-
" NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n"
|
447
|
+
" NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n"
|
436
448
|
]
|
437
449
|
}
|
438
450
|
]
|
@@ -445,7 +457,7 @@
|
|
445
457
|
],
|
446
458
|
"query": "help",
|
447
459
|
"responses": [
|
448
|
-
" NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n"
|
460
|
+
" NAME: help\n DESCRIPTION: Help the user with the current knowledge modules\n\n SAMPLE SENTENCES\n\n help with help and dialogues\n help\n\n NAME: dialogues\n DESCRIPTION: framework for dialogues\n\n SAMPLE SENTENCES\n\n 1 2 and 3\n be brief\n be brief greg\n is x y\n no\n what is it\n x is y?\n yes\n x is 3 what is x\n x is 3 what is x what is it\n be brief x is 3 what is x what is it\n to it\n why\n nevermindTestSetup accept nevermind hi\n nevermindTestSetup reject nevermind hi\n setidsuffix greg\n setidsuffix greg resetidsuffix\n setidsuffix greg makeObject banana\\nbanana\n setidsuffix _suffy\n\n\n NAME: negation\n DESCRIPTION: negation\n\n SAMPLE SENTENCES\n\n not negatable\n not negatables\n\n NAME: stm\n DESCRIPTION: short term memory\n\n SAMPLE SENTENCES\n\n remember m1\n previous memorable\n m1\n remember m1\\nevaluate the memorable\n the memorable before\n remember m1\\nremember m2\\nevaluate the memorable before\n\n NAME: meta\n DESCRIPTION: Ways of defining new language elements\n\n SAMPLE SENTENCES\n\n a means b\n a means x\n if f then g gq\n undefined means defined\n\n NAME: punctuation\n DESCRIPTION: punctuation\n\n SAMPLE SENTENCES\n\n (a)\n :\n \"hi man\"\n\n NAME: evaluate\n DESCRIPTION: Explicit handling of evaluate\n\n SAMPLE SENTENCES\n\n evaluate value1\n\n NAME: articles\n DESCRIPTION: articles\n\n SAMPLE SENTENCES\n\n the theable\n a theable\n\n\n\n NAME: tokenize\n DESCRIPTION: tokenize\n\n SAMPLE SENTENCES\n\n hello_world\n"
|
449
461
|
]
|
450
462
|
}
|
451
463
|
]
|
package/common/helpers.js
CHANGED
@@ -131,7 +131,7 @@ const toEValue = (context) => {
|
|
131
131
|
return context;
|
132
132
|
}
|
133
133
|
|
134
|
-
const defaultContextProperties = ['marker', 'text', 'verbatim', 'isResponse']
|
134
|
+
const defaultContextProperties = ['marker', 'text', 'verbatim', 'isResponse', { property: 'response', filter: ['marker', 'text', 'verbatim'] }]
|
135
135
|
const defaultContextCheck = [
|
136
136
|
...defaultContextProperties,
|
137
137
|
(object) => {
|
@@ -490,6 +490,11 @@
|
|
490
490
|
"unknown",
|
491
491
|
false
|
492
492
|
],
|
493
|
+
[
|
494
|
+
"evaluate",
|
495
|
+
"verby",
|
496
|
+
false
|
497
|
+
],
|
493
498
|
[
|
494
499
|
"feel",
|
495
500
|
"canBeDoQuestion",
|
@@ -825,6 +830,11 @@
|
|
825
830
|
"member_modifier",
|
826
831
|
false
|
827
832
|
],
|
833
|
+
[
|
834
|
+
"memorable",
|
835
|
+
"theAble",
|
836
|
+
false
|
837
|
+
],
|
828
838
|
[
|
829
839
|
"modifies",
|
830
840
|
"verby",
|
@@ -1155,6 +1165,11 @@
|
|
1155
1165
|
"theAble",
|
1156
1166
|
false
|
1157
1167
|
],
|
1168
|
+
[
|
1169
|
+
"remember",
|
1170
|
+
"verby",
|
1171
|
+
false
|
1172
|
+
],
|
1158
1173
|
[
|
1159
1174
|
"self",
|
1160
1175
|
"queryable",
|
@@ -1210,6 +1225,11 @@
|
|
1210
1225
|
"theAble",
|
1211
1226
|
false
|
1212
1227
|
],
|
1228
|
+
[
|
1229
|
+
"stm_before",
|
1230
|
+
"adjective",
|
1231
|
+
false
|
1232
|
+
],
|
1213
1233
|
[
|
1214
1234
|
"that",
|
1215
1235
|
"thisitthat",
|