ekms 9.5.1-beta.4 → 9.5.1-beta.6
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 +21 -61
- package/common/asking.js +102 -100
- package/common/can.instance.json +17 -0
- package/common/can.js +188 -0
- package/common/characters.js +3 -3
- package/common/colors.instance.json +38 -10
- package/common/comparable.instance.json +2 -2
- package/common/concept.test.json +54 -40
- package/common/conjunction.js +13 -5
- package/common/crew.instance.json +26 -26
- package/common/crew.js +1 -1
- package/common/currency.js +1 -1
- package/common/dates.instance.json +87 -3
- package/common/dialogues.js +11 -8
- package/common/dimension.instance.json +1 -1
- package/common/edible.instance.json +79 -95
- package/common/emotions.instance.json +6 -10
- package/common/emotions.js +1 -1
- package/common/english_helpers.js +277 -67
- package/common/fastfood.instance.json +235 -807
- package/common/fastfood.js +4 -4
- package/common/formulas.instance.json +1 -1
- package/common/gdefaults.js +41 -9
- package/common/help.js +2 -2
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +1 -1
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +8 -8
- package/common/helpers/properties.js +76 -15
- package/common/helpers.js +82 -46
- package/common/hierarchy.js +3 -3
- package/common/kirk.instance.json +1 -1
- package/common/length.instance.json +2 -2
- package/common/math.instance.json +20 -20
- package/common/math.js +45 -44
- package/common/menus.instance.json +3 -3
- package/common/menus.js +1 -1
- package/common/meta.js +49 -33
- package/common/ordering.instance.json +16 -28
- package/common/ordering.js +1 -1
- package/common/ordering.test.json +354 -296
- package/common/people.instance.json +36 -47
- package/common/people.js +1 -1
- package/common/people.test.json +952 -681
- package/common/pipboy.instance.json +72 -16
- package/common/pokemon.instance.json +8 -8
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +2 -2
- package/common/properties.instance.json +1 -1
- package/common/properties.js +16 -3
- package/common/reminders.js +1 -1
- package/common/reports.instance.json +3 -3
- package/common/reports.js +18 -16
- package/common/scorekeeper.js +4 -4
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +1 -1
- package/common/stgame.js +1 -1
- package/common/stm.js +2 -2
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +2 -2
- package/common/tester.js +3 -3
- package/common/time.js +3 -3
- package/common/tokenize.js +1 -1
- package/common/weight.instance.json +2 -2
- package/common/wp.instance.json +62 -6
- package/common/wp.js +4 -4
- package/package.json +4 -2
|
@@ -1571,7 +1571,7 @@
|
|
|
1571
1571
|
"text": "pistols rifles grenades mines and shotguns",
|
|
1572
1572
|
"range": {
|
|
1573
1573
|
"start": 0,
|
|
1574
|
-
"end":
|
|
1574
|
+
"end": 41
|
|
1575
1575
|
},
|
|
1576
1576
|
"types": [
|
|
1577
1577
|
"list",
|
|
@@ -1716,6 +1716,20 @@
|
|
|
1716
1716
|
0
|
|
1717
1717
|
]
|
|
1718
1718
|
],
|
|
1719
|
+
[
|
|
1720
|
+
[
|
|
1721
|
+
"is",
|
|
1722
|
+
0
|
|
1723
|
+
],
|
|
1724
|
+
[
|
|
1725
|
+
"list",
|
|
1726
|
+
1
|
|
1727
|
+
],
|
|
1728
|
+
[
|
|
1729
|
+
"unknown",
|
|
1730
|
+
0
|
|
1731
|
+
]
|
|
1732
|
+
],
|
|
1719
1733
|
[
|
|
1720
1734
|
[
|
|
1721
1735
|
"is",
|
|
@@ -3727,7 +3741,7 @@
|
|
|
3727
3741
|
"text": "mines and grenades",
|
|
3728
3742
|
"range": {
|
|
3729
3743
|
"start": 0,
|
|
3730
|
-
"end":
|
|
3744
|
+
"end": 17
|
|
3731
3745
|
},
|
|
3732
3746
|
"types": [
|
|
3733
3747
|
"grenade",
|
|
@@ -5250,7 +5264,7 @@
|
|
|
5250
5264
|
"word": "explosives",
|
|
5251
5265
|
"range": {
|
|
5252
5266
|
"start": 0,
|
|
5253
|
-
"end":
|
|
5267
|
+
"end": 9
|
|
5254
5268
|
},
|
|
5255
5269
|
"dead": true,
|
|
5256
5270
|
"types": [
|
|
@@ -6718,7 +6732,7 @@
|
|
|
6718
6732
|
"text": "pistols rifles and shotguns",
|
|
6719
6733
|
"range": {
|
|
6720
6734
|
"start": 0,
|
|
6721
|
-
"end":
|
|
6735
|
+
"end": 26
|
|
6722
6736
|
},
|
|
6723
6737
|
"types": [
|
|
6724
6738
|
"list",
|
|
@@ -8472,7 +8486,7 @@
|
|
|
8472
8486
|
"word": "firearms",
|
|
8473
8487
|
"range": {
|
|
8474
8488
|
"start": 0,
|
|
8475
|
-
"end":
|
|
8489
|
+
"end": 7
|
|
8476
8490
|
},
|
|
8477
8491
|
"dead": true,
|
|
8478
8492
|
"types": [
|
|
@@ -10012,7 +10026,7 @@
|
|
|
10012
10026
|
"text": "hats armor and suits",
|
|
10013
10027
|
"range": {
|
|
10014
10028
|
"start": 0,
|
|
10015
|
-
"end":
|
|
10029
|
+
"end": 19
|
|
10016
10030
|
},
|
|
10017
10031
|
"types": [
|
|
10018
10032
|
"list",
|
|
@@ -10125,6 +10139,20 @@
|
|
|
10125
10139
|
0
|
|
10126
10140
|
]
|
|
10127
10141
|
],
|
|
10142
|
+
[
|
|
10143
|
+
[
|
|
10144
|
+
"is",
|
|
10145
|
+
0
|
|
10146
|
+
],
|
|
10147
|
+
[
|
|
10148
|
+
"list",
|
|
10149
|
+
1
|
|
10150
|
+
],
|
|
10151
|
+
[
|
|
10152
|
+
"unknown",
|
|
10153
|
+
0
|
|
10154
|
+
]
|
|
10155
|
+
],
|
|
10128
10156
|
[
|
|
10129
10157
|
[
|
|
10130
10158
|
"is",
|
|
@@ -11994,7 +12022,7 @@
|
|
|
11994
12022
|
"word": "weapon",
|
|
11995
12023
|
"range": {
|
|
11996
12024
|
"start": 0,
|
|
11997
|
-
"end":
|
|
12025
|
+
"end": 7
|
|
11998
12026
|
},
|
|
11999
12027
|
"dead": true,
|
|
12000
12028
|
"types": [
|
|
@@ -13726,7 +13754,7 @@
|
|
|
13726
13754
|
"word": "clothes",
|
|
13727
13755
|
"range": {
|
|
13728
13756
|
"start": 0,
|
|
13729
|
-
"end":
|
|
13757
|
+
"end": 6
|
|
13730
13758
|
},
|
|
13731
13759
|
"dead": true,
|
|
13732
13760
|
"types": [
|
|
@@ -15398,7 +15426,7 @@
|
|
|
15398
15426
|
"word": "edible",
|
|
15399
15427
|
"range": {
|
|
15400
15428
|
"start": 0,
|
|
15401
|
-
"end":
|
|
15429
|
+
"end": 5
|
|
15402
15430
|
},
|
|
15403
15431
|
"dead": true,
|
|
15404
15432
|
"types": [
|
|
@@ -17166,7 +17194,7 @@
|
|
|
17166
17194
|
"word": "food",
|
|
17167
17195
|
"range": {
|
|
17168
17196
|
"start": 0,
|
|
17169
|
-
"end":
|
|
17197
|
+
"end": 3
|
|
17170
17198
|
},
|
|
17171
17199
|
"dead": true,
|
|
17172
17200
|
"types": [
|
|
@@ -18918,7 +18946,7 @@
|
|
|
18918
18946
|
"word": "drinks",
|
|
18919
18947
|
"range": {
|
|
18920
18948
|
"start": 0,
|
|
18921
|
-
"end":
|
|
18949
|
+
"end": 5
|
|
18922
18950
|
},
|
|
18923
18951
|
"dead": true,
|
|
18924
18952
|
"types": [
|
|
@@ -20741,7 +20769,7 @@
|
|
|
20741
20769
|
"word": "meat",
|
|
20742
20770
|
"range": {
|
|
20743
20771
|
"start": 0,
|
|
20744
|
-
"end":
|
|
20772
|
+
"end": 3
|
|
20745
20773
|
},
|
|
20746
20774
|
"dead": true,
|
|
20747
20775
|
"types": [
|
|
@@ -22661,7 +22689,7 @@
|
|
|
22661
22689
|
"text": "vegetables and fruit",
|
|
22662
22690
|
"range": {
|
|
22663
22691
|
"start": 0,
|
|
22664
|
-
"end":
|
|
22692
|
+
"end": 19
|
|
22665
22693
|
},
|
|
22666
22694
|
"types": [
|
|
22667
22695
|
"list",
|
|
@@ -24845,7 +24873,7 @@
|
|
|
24845
24873
|
"text": "cola and pop",
|
|
24846
24874
|
"range": {
|
|
24847
24875
|
"start": 0,
|
|
24848
|
-
"end":
|
|
24876
|
+
"end": 11
|
|
24849
24877
|
},
|
|
24850
24878
|
"types": [
|
|
24851
24879
|
"list",
|
|
@@ -27109,7 +27137,7 @@
|
|
|
27109
27137
|
"text": "medicine and stimpaks",
|
|
27110
27138
|
"range": {
|
|
27111
27139
|
"start": 0,
|
|
27112
|
-
"end":
|
|
27140
|
+
"end": 20
|
|
27113
27141
|
},
|
|
27114
27142
|
"types": [
|
|
27115
27143
|
"list",
|
|
@@ -32211,7 +32239,7 @@
|
|
|
32211
32239
|
"text": "damage luck hp rads value ap charisma range and accuracy",
|
|
32212
32240
|
"range": {
|
|
32213
32241
|
"start": 0,
|
|
32214
|
-
"end":
|
|
32242
|
+
"end": 55
|
|
32215
32243
|
},
|
|
32216
32244
|
"types": [
|
|
32217
32245
|
"list",
|
|
@@ -35433,6 +35461,34 @@
|
|
|
35433
35461
|
0
|
|
35434
35462
|
]
|
|
35435
35463
|
],
|
|
35464
|
+
[
|
|
35465
|
+
[
|
|
35466
|
+
"is",
|
|
35467
|
+
0
|
|
35468
|
+
],
|
|
35469
|
+
[
|
|
35470
|
+
"list",
|
|
35471
|
+
1
|
|
35472
|
+
],
|
|
35473
|
+
[
|
|
35474
|
+
"unknown",
|
|
35475
|
+
0
|
|
35476
|
+
]
|
|
35477
|
+
],
|
|
35478
|
+
[
|
|
35479
|
+
[
|
|
35480
|
+
"is",
|
|
35481
|
+
0
|
|
35482
|
+
],
|
|
35483
|
+
[
|
|
35484
|
+
"list",
|
|
35485
|
+
1
|
|
35486
|
+
],
|
|
35487
|
+
[
|
|
35488
|
+
"unknown",
|
|
35489
|
+
0
|
|
35490
|
+
]
|
|
35491
|
+
],
|
|
35436
35492
|
[
|
|
35437
35493
|
[
|
|
35438
35494
|
"is",
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
"text": "pokemon type",
|
|
1123
1123
|
"range": {
|
|
1124
1124
|
"start": 0,
|
|
1125
|
-
"end":
|
|
1125
|
+
"end": 11
|
|
1126
1126
|
},
|
|
1127
1127
|
"types": [
|
|
1128
1128
|
"pokemon_type",
|
|
@@ -2162,7 +2162,7 @@
|
|
|
2162
2162
|
"text": "pikachu squirtle weedle and pidgeot",
|
|
2163
2163
|
"range": {
|
|
2164
2164
|
"start": 0,
|
|
2165
|
-
"end":
|
|
2165
|
+
"end": 34
|
|
2166
2166
|
},
|
|
2167
2167
|
"types": [
|
|
2168
2168
|
"list",
|
|
@@ -7953,7 +7953,7 @@
|
|
|
7953
7953
|
"text": "fire type",
|
|
7954
7954
|
"range": {
|
|
7955
7955
|
"start": 0,
|
|
7956
|
-
"end":
|
|
7956
|
+
"end": 8
|
|
7957
7957
|
},
|
|
7958
7958
|
"types": [
|
|
7959
7959
|
"fire_type",
|
|
@@ -9500,7 +9500,7 @@
|
|
|
9500
9500
|
"text": "water type",
|
|
9501
9501
|
"range": {
|
|
9502
9502
|
"start": 0,
|
|
9503
|
-
"end":
|
|
9503
|
+
"end": 9
|
|
9504
9504
|
},
|
|
9505
9505
|
"types": [
|
|
9506
9506
|
"type",
|
|
@@ -11052,7 +11052,7 @@
|
|
|
11052
11052
|
"text": "electric type",
|
|
11053
11053
|
"range": {
|
|
11054
11054
|
"start": 0,
|
|
11055
|
-
"end":
|
|
11055
|
+
"end": 12
|
|
11056
11056
|
},
|
|
11057
11057
|
"types": [
|
|
11058
11058
|
"electric_type",
|
|
@@ -12609,7 +12609,7 @@
|
|
|
12609
12609
|
"text": "earth type",
|
|
12610
12610
|
"range": {
|
|
12611
12611
|
"start": 0,
|
|
12612
|
-
"end":
|
|
12612
|
+
"end": 9
|
|
12613
12613
|
},
|
|
12614
12614
|
"types": [
|
|
12615
12615
|
"earth_type",
|
|
@@ -14166,7 +14166,7 @@
|
|
|
14166
14166
|
"word": "pikachu",
|
|
14167
14167
|
"range": {
|
|
14168
14168
|
"start": 0,
|
|
14169
|
-
"end":
|
|
14169
|
+
"end": 6
|
|
14170
14170
|
},
|
|
14171
14171
|
"dead": true,
|
|
14172
14172
|
"types": [
|
|
@@ -15677,7 +15677,7 @@
|
|
|
15677
15677
|
"word": "charmander",
|
|
15678
15678
|
"range": {
|
|
15679
15679
|
"start": 0,
|
|
15680
|
-
"end":
|
|
15680
|
+
"end": 9
|
|
15681
15681
|
},
|
|
15682
15682
|
"dead": true,
|
|
15683
15683
|
"types": [
|
package/common/pokemon.js
CHANGED
|
@@ -29,7 +29,7 @@ const template = {
|
|
|
29
29
|
// 'ashe owns pikachu who owns pikachu'
|
|
30
30
|
// TODO does ashe own pikachu / ash owns pikachu? / 'ashe likes pikachu does ashe like pikachu'
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
function initializer({config, apis}) {
|
|
33
33
|
const api = apis('properties')
|
|
34
34
|
/*
|
|
35
35
|
api.createActionPrefix({
|
|
@@ -1112,7 +1112,7 @@
|
|
|
1112
1112
|
"word": "pressure",
|
|
1113
1113
|
"range": {
|
|
1114
1114
|
"start": 0,
|
|
1115
|
-
"end":
|
|
1115
|
+
"end": 7
|
|
1116
1116
|
},
|
|
1117
1117
|
"dead": true,
|
|
1118
1118
|
"types": [
|
|
@@ -2657,7 +2657,7 @@
|
|
|
2657
2657
|
"text": "pascals and atmospheres",
|
|
2658
2658
|
"range": {
|
|
2659
2659
|
"start": 0,
|
|
2660
|
-
"end":
|
|
2660
|
+
"end": 22
|
|
2661
2661
|
},
|
|
2662
2662
|
"types": [
|
|
2663
2663
|
"list",
|
package/common/properties.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { knowledgeModule, where } = require('./runtime').theprogrammablemind
|
|
2
|
-
const { defaultContextCheck } = require('./helpers')
|
|
2
|
+
const { defaultContextCheck, words } = require('./helpers')
|
|
3
3
|
const dialogues = require('./dialogues')
|
|
4
4
|
const meta = require('./meta')
|
|
5
5
|
const concept = require('./concept')
|
|
@@ -75,6 +75,8 @@ const template = {
|
|
|
75
75
|
fragments: [
|
|
76
76
|
"the property1 of object1 is value1",
|
|
77
77
|
],
|
|
78
|
+
configs: [
|
|
79
|
+
],
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
const api = new API();
|
|
@@ -91,6 +93,7 @@ const config = {
|
|
|
91
93
|
|
|
92
94
|
operators: [
|
|
93
95
|
"([hierarchyAble|])",
|
|
96
|
+
{ pattern: "([propertyRelation|])" }, // , scope: 'development' },
|
|
94
97
|
"(([property]) <([propertyOf|of] ([object]))>)",
|
|
95
98
|
"(<whose> ([property]))",
|
|
96
99
|
// "((modifier) [modifies] (concept))",
|
|
@@ -121,6 +124,16 @@ const config = {
|
|
|
121
124
|
['what', 'object'],
|
|
122
125
|
],
|
|
123
126
|
bridges: [
|
|
127
|
+
{
|
|
128
|
+
id: 'propertyRelation',
|
|
129
|
+
// scope: 'development',
|
|
130
|
+
words: words('propertyRelation'),
|
|
131
|
+
evaluator: ({context, api, objects, toList}) => {
|
|
132
|
+
context.evalue = toList(objects.relations)
|
|
133
|
+
context.evalue.isResponse = true
|
|
134
|
+
context.evalue.paraphrase = false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
124
137
|
{
|
|
125
138
|
id: 'xfx',
|
|
126
139
|
isA: ['queryable'],
|
|
@@ -612,7 +625,7 @@ const config = {
|
|
|
612
625
|
apply: async ({context, api, kms, objects, g, s, log}) => {
|
|
613
626
|
const toDo = [ ...context.objects ]
|
|
614
627
|
|
|
615
|
-
|
|
628
|
+
async function toValue(objectContext) {
|
|
616
629
|
if (!objectContext.value) {
|
|
617
630
|
return objectContext;
|
|
618
631
|
}
|
|
@@ -660,7 +673,7 @@ const config = {
|
|
|
660
673
|
]
|
|
661
674
|
};
|
|
662
675
|
|
|
663
|
-
|
|
676
|
+
function initializer({objects, config, isModule}) {
|
|
664
677
|
// debugger
|
|
665
678
|
config.addArgs(({config, api, isA}) => ({
|
|
666
679
|
makeObject: api('properties').makeObject,
|