ekms 8.9.0-beta.9 → 8.9.1-beta.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/common/animals.instance.json +65 -0
- package/common/articles.js +4 -0
- package/common/colors.instance.json +71 -0
- package/common/comparable.instance.json +15 -0
- package/common/conjunction.js +27 -18
- package/common/crew.instance.json +130 -176
- package/common/dialogues.js +14 -11
- package/common/dimension.instance.json +10 -0
- package/common/edible.instance.json +320 -0
- package/common/emotions.instance.json +8 -0
- package/common/fastfood.instance.json +1200 -308
- package/common/formulas.instance.json +10 -0
- package/common/helpers/conjunction.js +75 -0
- package/common/helpers/dialogues.js +14 -8
- package/common/helpers/properties.js +2 -2
- package/common/helpers.js +29 -0
- package/common/kirk.instance.json +5 -0
- package/common/length.instance.json +150 -0
- package/common/math.instance.json +10 -0
- package/common/meta.js +5 -3
- package/common/ordering.instance.json +78 -0
- package/common/people.instance.json +169 -4
- package/common/pipboy.instance.json +170 -0
- package/common/pokemon.instance.json +65 -0
- package/common/pos.js +9 -6
- package/common/pressure.instance.json +40 -0
- package/common/properties.instance.json +5 -0
- package/common/reports.instance.json +21 -1
- package/common/spock.instance.json +5 -0
- package/common/temperature.instance.json +40 -0
- package/common/ui.instance.json +10 -0
- package/common/ui.js +0 -1
- package/common/weight.instance.json +120 -0
- package/common/wp.instance.json +23224 -536
- package/common/wp.js +175 -30
- package/common/wp.test.json +35630 -1554
- package/package.json +3 -2
@@ -127,6 +127,11 @@
|
|
127
127
|
"verb",
|
128
128
|
false
|
129
129
|
],
|
130
|
+
[
|
131
|
+
"negatable",
|
132
|
+
"queryable",
|
133
|
+
false
|
134
|
+
],
|
130
135
|
[
|
131
136
|
"noun",
|
132
137
|
"theAble",
|
@@ -842,6 +847,11 @@
|
|
842
847
|
"verb",
|
843
848
|
false
|
844
849
|
],
|
850
|
+
[
|
851
|
+
"negatable",
|
852
|
+
"queryable",
|
853
|
+
false
|
854
|
+
],
|
845
855
|
[
|
846
856
|
"noun",
|
847
857
|
"theAble",
|
@@ -1452,6 +1462,11 @@
|
|
1452
1462
|
"verb",
|
1453
1463
|
false
|
1454
1464
|
],
|
1465
|
+
[
|
1466
|
+
"negatable",
|
1467
|
+
"queryable",
|
1468
|
+
false
|
1469
|
+
],
|
1455
1470
|
[
|
1456
1471
|
"noun",
|
1457
1472
|
"theAble",
|
@@ -2062,6 +2077,11 @@
|
|
2062
2077
|
"verb",
|
2063
2078
|
false
|
2064
2079
|
],
|
2080
|
+
[
|
2081
|
+
"negatable",
|
2082
|
+
"queryable",
|
2083
|
+
false
|
2084
|
+
],
|
2065
2085
|
[
|
2066
2086
|
"noun",
|
2067
2087
|
"theAble",
|
@@ -2724,6 +2744,11 @@
|
|
2724
2744
|
"verb",
|
2725
2745
|
false
|
2726
2746
|
],
|
2747
|
+
[
|
2748
|
+
"negatable",
|
2749
|
+
"queryable",
|
2750
|
+
false
|
2751
|
+
],
|
2727
2752
|
[
|
2728
2753
|
"noun",
|
2729
2754
|
"theAble",
|
@@ -3334,6 +3359,11 @@
|
|
3334
3359
|
"verb",
|
3335
3360
|
false
|
3336
3361
|
],
|
3362
|
+
[
|
3363
|
+
"negatable",
|
3364
|
+
"queryable",
|
3365
|
+
false
|
3366
|
+
],
|
3337
3367
|
[
|
3338
3368
|
"noun",
|
3339
3369
|
"theAble",
|
@@ -3944,6 +3974,11 @@
|
|
3944
3974
|
"verb",
|
3945
3975
|
false
|
3946
3976
|
],
|
3977
|
+
[
|
3978
|
+
"negatable",
|
3979
|
+
"queryable",
|
3980
|
+
false
|
3981
|
+
],
|
3947
3982
|
[
|
3948
3983
|
"noun",
|
3949
3984
|
"theAble",
|
@@ -4554,6 +4589,11 @@
|
|
4554
4589
|
"verb",
|
4555
4590
|
false
|
4556
4591
|
],
|
4592
|
+
[
|
4593
|
+
"negatable",
|
4594
|
+
"queryable",
|
4595
|
+
false
|
4596
|
+
],
|
4557
4597
|
[
|
4558
4598
|
"noun",
|
4559
4599
|
"theAble",
|
@@ -5164,6 +5204,11 @@
|
|
5164
5204
|
"verb",
|
5165
5205
|
false
|
5166
5206
|
],
|
5207
|
+
[
|
5208
|
+
"negatable",
|
5209
|
+
"queryable",
|
5210
|
+
false
|
5211
|
+
],
|
5167
5212
|
[
|
5168
5213
|
"noun",
|
5169
5214
|
"theAble",
|
@@ -6225,6 +6270,11 @@
|
|
6225
6270
|
"verb",
|
6226
6271
|
false
|
6227
6272
|
],
|
6273
|
+
[
|
6274
|
+
"negatable",
|
6275
|
+
"queryable",
|
6276
|
+
false
|
6277
|
+
],
|
6228
6278
|
[
|
6229
6279
|
"noun",
|
6230
6280
|
"theAble",
|
@@ -7326,6 +7376,11 @@
|
|
7326
7376
|
"verb",
|
7327
7377
|
false
|
7328
7378
|
],
|
7379
|
+
[
|
7380
|
+
"negatable",
|
7381
|
+
"queryable",
|
7382
|
+
false
|
7383
|
+
],
|
7329
7384
|
[
|
7330
7385
|
"noun",
|
7331
7386
|
"theAble",
|
@@ -8287,6 +8342,11 @@
|
|
8287
8342
|
"verb",
|
8288
8343
|
false
|
8289
8344
|
],
|
8345
|
+
[
|
8346
|
+
"negatable",
|
8347
|
+
"queryable",
|
8348
|
+
false
|
8349
|
+
],
|
8290
8350
|
[
|
8291
8351
|
"noun",
|
8292
8352
|
"theAble",
|
@@ -9424,6 +9484,11 @@
|
|
9424
9484
|
"verb",
|
9425
9485
|
false
|
9426
9486
|
],
|
9487
|
+
[
|
9488
|
+
"negatable",
|
9489
|
+
"queryable",
|
9490
|
+
false
|
9491
|
+
],
|
9427
9492
|
[
|
9428
9493
|
"noun",
|
9429
9494
|
"theAble",
|
package/common/articles.js
CHANGED
@@ -11,6 +11,7 @@ let config = {
|
|
11
11
|
"([it])",
|
12
12
|
"([this])",
|
13
13
|
"([that])",
|
14
|
+
"([everything])",
|
14
15
|
"([queryable])",
|
15
16
|
/*
|
16
17
|
"(<what> ([whatAble|]))",
|
@@ -22,6 +23,9 @@ let config = {
|
|
22
23
|
bridges: [
|
23
24
|
// { id: "what", level: 0, optional: "{ ...next(operator), query: ['what'], determined: true }", bridge: "{ ...after, query: ['what'], modifiers: ['what'], what: operator }" },
|
24
25
|
// { id: "whatAble", level: 0, bridge: "{ ...next(operator) }" },
|
26
|
+
{
|
27
|
+
id: 'everything',
|
28
|
+
},
|
25
29
|
{
|
26
30
|
id: 'the',
|
27
31
|
level: 0,
|
@@ -244,6 +244,11 @@
|
|
244
244
|
"verb",
|
245
245
|
false
|
246
246
|
],
|
247
|
+
[
|
248
|
+
"negatable",
|
249
|
+
"queryable",
|
250
|
+
false
|
251
|
+
],
|
247
252
|
[
|
248
253
|
"noun",
|
249
254
|
"theAble",
|
@@ -648,6 +653,11 @@
|
|
648
653
|
"verb",
|
649
654
|
false
|
650
655
|
],
|
656
|
+
[
|
657
|
+
"negatable",
|
658
|
+
"queryable",
|
659
|
+
false
|
660
|
+
],
|
651
661
|
[
|
652
662
|
"noun",
|
653
663
|
"theAble",
|
@@ -1363,6 +1373,11 @@
|
|
1363
1373
|
"verb",
|
1364
1374
|
false
|
1365
1375
|
],
|
1376
|
+
[
|
1377
|
+
"negatable",
|
1378
|
+
"queryable",
|
1379
|
+
false
|
1380
|
+
],
|
1366
1381
|
[
|
1367
1382
|
"noun",
|
1368
1383
|
"theAble",
|
@@ -3703,6 +3718,11 @@
|
|
3703
3718
|
"verb",
|
3704
3719
|
false
|
3705
3720
|
],
|
3721
|
+
[
|
3722
|
+
"negatable",
|
3723
|
+
"queryable",
|
3724
|
+
false
|
3725
|
+
],
|
3706
3726
|
[
|
3707
3727
|
"noun",
|
3708
3728
|
"theAble",
|
@@ -4843,6 +4863,11 @@
|
|
4843
4863
|
"verb",
|
4844
4864
|
false
|
4845
4865
|
],
|
4866
|
+
[
|
4867
|
+
"negatable",
|
4868
|
+
"queryable",
|
4869
|
+
false
|
4870
|
+
],
|
4846
4871
|
[
|
4847
4872
|
"noun",
|
4848
4873
|
"theAble",
|
@@ -6215,6 +6240,11 @@
|
|
6215
6240
|
"verb",
|
6216
6241
|
false
|
6217
6242
|
],
|
6243
|
+
[
|
6244
|
+
"negatable",
|
6245
|
+
"queryable",
|
6246
|
+
false
|
6247
|
+
],
|
6218
6248
|
[
|
6219
6249
|
"noun",
|
6220
6250
|
"theAble",
|
@@ -8053,6 +8083,11 @@
|
|
8053
8083
|
"verb",
|
8054
8084
|
false
|
8055
8085
|
],
|
8086
|
+
[
|
8087
|
+
"negatable",
|
8088
|
+
"queryable",
|
8089
|
+
false
|
8090
|
+
],
|
8056
8091
|
[
|
8057
8092
|
"noun",
|
8058
8093
|
"theAble",
|
@@ -10011,6 +10046,11 @@
|
|
10011
10046
|
"verb",
|
10012
10047
|
false
|
10013
10048
|
],
|
10049
|
+
[
|
10050
|
+
"negatable",
|
10051
|
+
"queryable",
|
10052
|
+
false
|
10053
|
+
],
|
10014
10054
|
[
|
10015
10055
|
"noun",
|
10016
10056
|
"theAble",
|
@@ -12376,6 +12416,11 @@
|
|
12376
12416
|
"theAble",
|
12377
12417
|
false
|
12378
12418
|
],
|
12419
|
+
[
|
12420
|
+
"negatable",
|
12421
|
+
"queryable",
|
12422
|
+
false
|
12423
|
+
],
|
12379
12424
|
[
|
12380
12425
|
"noun",
|
12381
12426
|
"theAble",
|
@@ -14503,6 +14548,11 @@
|
|
14503
14548
|
"theAble",
|
14504
14549
|
false
|
14505
14550
|
],
|
14551
|
+
[
|
14552
|
+
"negatable",
|
14553
|
+
"queryable",
|
14554
|
+
false
|
14555
|
+
],
|
14506
14556
|
[
|
14507
14557
|
"noun",
|
14508
14558
|
"theAble",
|
@@ -16981,6 +17031,11 @@
|
|
16981
17031
|
"theAble",
|
16982
17032
|
false
|
16983
17033
|
],
|
17034
|
+
[
|
17035
|
+
"negatable",
|
17036
|
+
"queryable",
|
17037
|
+
false
|
17038
|
+
],
|
16984
17039
|
[
|
16985
17040
|
"noun",
|
16986
17041
|
"theAble",
|
@@ -19193,6 +19248,11 @@
|
|
19193
19248
|
"theAble",
|
19194
19249
|
false
|
19195
19250
|
],
|
19251
|
+
[
|
19252
|
+
"negatable",
|
19253
|
+
"queryable",
|
19254
|
+
false
|
19255
|
+
],
|
19196
19256
|
[
|
19197
19257
|
"noun",
|
19198
19258
|
"theAble",
|
@@ -21262,6 +21322,11 @@
|
|
21262
21322
|
"theAble",
|
21263
21323
|
false
|
21264
21324
|
],
|
21325
|
+
[
|
21326
|
+
"negatable",
|
21327
|
+
"queryable",
|
21328
|
+
false
|
21329
|
+
],
|
21265
21330
|
[
|
21266
21331
|
"noun",
|
21267
21332
|
"theAble",
|
@@ -23552,6 +23617,11 @@
|
|
23552
23617
|
"theAble",
|
23553
23618
|
false
|
23554
23619
|
],
|
23620
|
+
[
|
23621
|
+
"negatable",
|
23622
|
+
"queryable",
|
23623
|
+
false
|
23624
|
+
],
|
23555
23625
|
[
|
23556
23626
|
"noun",
|
23557
23627
|
"theAble",
|
@@ -24323,6 +24393,7 @@
|
|
24323
24393
|
"default": true,
|
24324
24394
|
"text": "resetidsuffix",
|
24325
24395
|
"word": "resetidsuffix",
|
24396
|
+
"raw_text": "resetIdSuffix",
|
24326
24397
|
"range": {
|
24327
24398
|
"start": 0,
|
24328
24399
|
"end": 12
|
@@ -133,6 +133,11 @@
|
|
133
133
|
"verb",
|
134
134
|
false
|
135
135
|
],
|
136
|
+
[
|
137
|
+
"negatable",
|
138
|
+
"queryable",
|
139
|
+
false
|
140
|
+
],
|
136
141
|
[
|
137
142
|
"noun",
|
138
143
|
"theAble",
|
@@ -527,6 +532,11 @@
|
|
527
532
|
"verb",
|
528
533
|
false
|
529
534
|
],
|
535
|
+
[
|
536
|
+
"negatable",
|
537
|
+
"queryable",
|
538
|
+
false
|
539
|
+
],
|
530
540
|
[
|
531
541
|
"noun",
|
532
542
|
"theAble",
|
@@ -1119,6 +1129,11 @@
|
|
1119
1129
|
"verb",
|
1120
1130
|
false
|
1121
1131
|
],
|
1132
|
+
[
|
1133
|
+
"negatable",
|
1134
|
+
"queryable",
|
1135
|
+
false
|
1136
|
+
],
|
1122
1137
|
[
|
1123
1138
|
"noun",
|
1124
1139
|
"theAble",
|
package/common/conjunction.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
const { knowledgeModule, where } = require('./runtime').theprogrammablemind
|
2
2
|
const gdefaults = require('./gdefaults.js')
|
3
3
|
const conjunction_tests = require('./conjunction.test.json')
|
4
|
-
const { defaultContextCheck } = require('./helpers')
|
4
|
+
const { defaultContextCheck, propertyToArray } = require('./helpers')
|
5
|
+
const { isA, asList, listable } = require('./helpers/conjunction.js')
|
5
6
|
|
6
7
|
let config = {
|
7
8
|
name: 'conjunction',
|
@@ -64,24 +65,32 @@ let config = {
|
|
64
65
|
};
|
65
66
|
|
66
67
|
const initializer = ({objects, config, isModule}) => {
|
67
|
-
config.addArgs(({config, api,
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
68
|
+
config.addArgs(({config, api, hierarchy}) => {
|
69
|
+
const isAI = isA(hierarchy);
|
70
|
+
|
71
|
+
return {
|
72
|
+
isAListable: (context, type) => {
|
73
|
+
if (context.marker == 'list' || context.listable) {
|
74
|
+
return context.value.every( (element) => isAI(element.marker, type) )
|
75
|
+
} else {
|
76
|
+
return isAI(context.marker, type)
|
77
|
+
}
|
78
|
+
},
|
79
|
+
asList,
|
80
|
+
toArray: propertyToArray,
|
81
|
+
listable: listable(hierarchy),
|
82
|
+
isA: isAI,
|
83
|
+
toContext: (v) => {
|
84
|
+
if (Array.isArray(v)) {
|
85
|
+
return { marker: 'list', level: 1, value: v }
|
86
|
+
}
|
87
|
+
if (v.marker == 'list') {
|
88
|
+
return v
|
89
|
+
}
|
80
90
|
return v
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
}))
|
91
|
+
},
|
92
|
+
}
|
93
|
+
})
|
85
94
|
}
|
86
95
|
|
87
96
|
knowledgeModule( {
|