tpmkms_4wp 8.9.0-beta.2 → 8.9.0-beta.20
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 +99 -0
- package/common/comparable.instance.json +15 -0
- package/common/conjunction.js +27 -18
- package/common/countable.js +8 -2
- package/common/countable.test.json +586 -0
- package/common/crew.instance.json +130 -176
- package/common/dialogues.js +7 -11
- package/common/dimension.instance.json +10 -0
- package/common/edible.instance.json +376 -0
- package/common/emotions.instance.json +8 -0
- package/common/fastfood.instance.json +1421 -836
- 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/hierarchy.js +5 -5
- package/common/hierarchy.test.json +1491 -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 +62 -0
- package/common/people.instance.json +169 -4
- package/common/pipboy.instance.json +254 -28
- package/common/pokemon.instance.json +65 -0
- 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 +28952 -958
- package/common/wp.js +178 -10
- package/common/wp.test.json +28248 -703
- 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",
|
@@ -3250,6 +3265,20 @@
|
|
3250
3265
|
1
|
3251
3266
|
]
|
3252
3267
|
],
|
3268
|
+
[
|
3269
|
+
[
|
3270
|
+
"is",
|
3271
|
+
0
|
3272
|
+
],
|
3273
|
+
[
|
3274
|
+
"list",
|
3275
|
+
1
|
3276
|
+
],
|
3277
|
+
[
|
3278
|
+
"unknown",
|
3279
|
+
1
|
3280
|
+
]
|
3281
|
+
],
|
3253
3282
|
[
|
3254
3283
|
[
|
3255
3284
|
"is",
|
@@ -3703,6 +3732,11 @@
|
|
3703
3732
|
"verb",
|
3704
3733
|
false
|
3705
3734
|
],
|
3735
|
+
[
|
3736
|
+
"negatable",
|
3737
|
+
"queryable",
|
3738
|
+
false
|
3739
|
+
],
|
3706
3740
|
[
|
3707
3741
|
"noun",
|
3708
3742
|
"theAble",
|
@@ -4843,6 +4877,11 @@
|
|
4843
4877
|
"verb",
|
4844
4878
|
false
|
4845
4879
|
],
|
4880
|
+
[
|
4881
|
+
"negatable",
|
4882
|
+
"queryable",
|
4883
|
+
false
|
4884
|
+
],
|
4846
4885
|
[
|
4847
4886
|
"noun",
|
4848
4887
|
"theAble",
|
@@ -6215,6 +6254,11 @@
|
|
6215
6254
|
"verb",
|
6216
6255
|
false
|
6217
6256
|
],
|
6257
|
+
[
|
6258
|
+
"negatable",
|
6259
|
+
"queryable",
|
6260
|
+
false
|
6261
|
+
],
|
6218
6262
|
[
|
6219
6263
|
"noun",
|
6220
6264
|
"theAble",
|
@@ -8053,6 +8097,11 @@
|
|
8053
8097
|
"verb",
|
8054
8098
|
false
|
8055
8099
|
],
|
8100
|
+
[
|
8101
|
+
"negatable",
|
8102
|
+
"queryable",
|
8103
|
+
false
|
8104
|
+
],
|
8056
8105
|
[
|
8057
8106
|
"noun",
|
8058
8107
|
"theAble",
|
@@ -10011,6 +10060,11 @@
|
|
10011
10060
|
"verb",
|
10012
10061
|
false
|
10013
10062
|
],
|
10063
|
+
[
|
10064
|
+
"negatable",
|
10065
|
+
"queryable",
|
10066
|
+
false
|
10067
|
+
],
|
10014
10068
|
[
|
10015
10069
|
"noun",
|
10016
10070
|
"theAble",
|
@@ -12376,6 +12430,11 @@
|
|
12376
12430
|
"theAble",
|
12377
12431
|
false
|
12378
12432
|
],
|
12433
|
+
[
|
12434
|
+
"negatable",
|
12435
|
+
"queryable",
|
12436
|
+
false
|
12437
|
+
],
|
12379
12438
|
[
|
12380
12439
|
"noun",
|
12381
12440
|
"theAble",
|
@@ -14503,6 +14562,11 @@
|
|
14503
14562
|
"theAble",
|
14504
14563
|
false
|
14505
14564
|
],
|
14565
|
+
[
|
14566
|
+
"negatable",
|
14567
|
+
"queryable",
|
14568
|
+
false
|
14569
|
+
],
|
14506
14570
|
[
|
14507
14571
|
"noun",
|
14508
14572
|
"theAble",
|
@@ -16981,6 +17045,11 @@
|
|
16981
17045
|
"theAble",
|
16982
17046
|
false
|
16983
17047
|
],
|
17048
|
+
[
|
17049
|
+
"negatable",
|
17050
|
+
"queryable",
|
17051
|
+
false
|
17052
|
+
],
|
16984
17053
|
[
|
16985
17054
|
"noun",
|
16986
17055
|
"theAble",
|
@@ -19193,6 +19262,11 @@
|
|
19193
19262
|
"theAble",
|
19194
19263
|
false
|
19195
19264
|
],
|
19265
|
+
[
|
19266
|
+
"negatable",
|
19267
|
+
"queryable",
|
19268
|
+
false
|
19269
|
+
],
|
19196
19270
|
[
|
19197
19271
|
"noun",
|
19198
19272
|
"theAble",
|
@@ -21262,6 +21336,11 @@
|
|
21262
21336
|
"theAble",
|
21263
21337
|
false
|
21264
21338
|
],
|
21339
|
+
[
|
21340
|
+
"negatable",
|
21341
|
+
"queryable",
|
21342
|
+
false
|
21343
|
+
],
|
21265
21344
|
[
|
21266
21345
|
"noun",
|
21267
21346
|
"theAble",
|
@@ -23552,6 +23631,11 @@
|
|
23552
23631
|
"theAble",
|
23553
23632
|
false
|
23554
23633
|
],
|
23634
|
+
[
|
23635
|
+
"negatable",
|
23636
|
+
"queryable",
|
23637
|
+
false
|
23638
|
+
],
|
23555
23639
|
[
|
23556
23640
|
"noun",
|
23557
23641
|
"theAble",
|
@@ -24323,6 +24407,7 @@
|
|
24323
24407
|
"default": true,
|
24324
24408
|
"text": "resetidsuffix",
|
24325
24409
|
"word": "resetidsuffix",
|
24410
|
+
"raw_text": "resetIdSuffix",
|
24326
24411
|
"range": {
|
24327
24412
|
"start": 0,
|
24328
24413
|
"end": 12
|
@@ -25693,6 +25778,20 @@
|
|
25693
25778
|
1
|
25694
25779
|
]
|
25695
25780
|
],
|
25781
|
+
[
|
25782
|
+
[
|
25783
|
+
"is",
|
25784
|
+
0
|
25785
|
+
],
|
25786
|
+
[
|
25787
|
+
"list",
|
25788
|
+
1
|
25789
|
+
],
|
25790
|
+
[
|
25791
|
+
"unknown",
|
25792
|
+
1
|
25793
|
+
]
|
25794
|
+
],
|
25696
25795
|
[
|
25697
25796
|
[
|
25698
25797
|
"is",
|
@@ -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( {
|
package/common/countable.js
CHANGED
@@ -20,6 +20,7 @@ let config = {
|
|
20
20
|
"([more] (countable/*))",
|
21
21
|
"([less] (countable/*))",
|
22
22
|
"([all])",
|
23
|
+
"([every])",
|
23
24
|
// everything
|
24
25
|
],
|
25
26
|
bridges: [
|
@@ -56,7 +57,7 @@ let config = {
|
|
56
57
|
},
|
57
58
|
{
|
58
59
|
id: "quantifier",
|
59
|
-
children: ['number', 'all'],
|
60
|
+
children: ['number', 'all', 'every'],
|
60
61
|
},
|
61
62
|
{
|
62
63
|
id: "countable",
|
@@ -65,7 +66,12 @@ let config = {
|
|
65
66
|
{
|
66
67
|
id: "all",
|
67
68
|
generatorp: ({context}) => 'all',
|
68
|
-
bridge: "{ ...next(operator), number: 'many' }"
|
69
|
+
bridge: "{ ...next(operator), number: 'many', quantity: 'all' }"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
id: "every",
|
73
|
+
generatorp: ({context}) => 'every',
|
74
|
+
bridge: "{ ...next(operator), number: 'one', quantity: 'every' }"
|
69
75
|
},
|
70
76
|
],
|
71
77
|
|