ekms 8.0.0-beta.2 → 8.0.0-beta.21
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +2542 -1375
- package/common/animals.js +2 -2
- package/common/avatar.js +2 -2
- package/common/characters.js +12 -16
- package/common/colors.instance.json +6646 -3501
- package/common/colors.js +2 -2
- package/common/colors.test.json +345 -780
- package/common/comparable.js +2 -2
- package/common/concept.js +8 -6
- package/common/countable.js +2 -2
- package/common/crew.instance.json +12534 -6597
- package/common/crew.js +3 -3
- package/common/crew.test.json +714 -452
- package/common/currency.js +4 -4
- package/common/dialogues.js +5 -21
- package/common/dimension.instance.json +242 -261
- package/common/dimension.js +4 -4
- package/common/dimension.test.json +314 -502
- package/common/edible.instance.json +19282 -9954
- package/common/edible.js +2 -2
- package/common/emotions.instance.json +122 -129
- package/common/emotions.js +3 -3
- package/common/events.js +3 -3
- package/common/fastfood.instance.json +219367 -111011
- package/common/fastfood.js +4 -4
- package/common/formulas.instance.json +216 -250
- package/common/formulas.js +6 -6
- package/common/gdefaults.js +2 -2
- package/common/help.js +3 -3
- package/common/help.test.json +10 -22
- package/common/helpers/concept.js +9 -6
- package/common/hierarchy.js +3 -3
- package/common/javascript.js +3 -3
- package/common/kirk.instance.json +564 -290
- package/common/kirk.js +2 -2
- package/common/length.instance.json +5153 -4677
- package/common/length.js +2 -2
- package/common/math.instance.json +140 -1157
- package/common/math.js +6 -6
- package/common/meta.js +3 -3
- package/common/negation.instance.json +2 -0
- package/common/negation.js +38 -0
- package/common/negation.test.json +308 -0
- package/common/numbers.js +3 -3
- package/common/ordering.instance.json +292 -230
- package/common/ordering.js +4 -4
- package/common/people.instance.json +1902 -1015
- package/common/people.js +3 -3
- package/common/percentages.instance.json +2 -0
- package/common/percentages.js +57 -0
- package/common/percentages.test.json +751 -0
- package/common/pipboy.instance.json +7718 -6328
- package/common/pipboy.js +4 -4
- package/common/pokemon.instance.json +3954 -2081
- package/common/pokemon.js +3 -3
- package/common/pos.js +1 -1
- package/common/pressure.instance.json +1265 -1193
- package/common/pressure.js +2 -2
- package/common/properties.instance.json +106 -61
- package/common/properties.js +6 -4
- package/common/punctuation.js +1 -1
- package/common/reports.instance.json +557 -559
- package/common/reports.js +11 -11
- package/common/scorekeeper.js +3 -3
- package/common/sdefaults.js +11 -1
- package/common/sizeable.js +2 -2
- package/common/spock.instance.json +564 -290
- package/common/spock.js +2 -2
- package/common/stgame.js +13 -9
- package/common/stm.js +3 -3
- package/common/tell.js +4 -4
- package/common/temperature.instance.json +1380 -1208
- package/common/temperature.js +2 -2
- package/common/tester.js +2 -2
- package/common/testing.js +2 -2
- package/common/time.js +4 -4
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +238 -259
- package/common/ui.js +4 -4
- package/common/weight.instance.json +4905 -4166
- package/common/weight.js +2 -2
- package/common/yesno.js +1 -1
- package/main.js +51 -46
- package/package.json +13 -6
package/common/pressure.js
CHANGED
@@ -6,223 +6,268 @@
|
|
6
6
|
"hierarchy": [
|
7
7
|
[
|
8
8
|
"a",
|
9
|
-
"articlePOS"
|
9
|
+
"articlePOS",
|
10
|
+
false
|
10
11
|
],
|
11
12
|
[
|
12
13
|
"articlePOS",
|
13
|
-
"articlePOS"
|
14
|
+
"articlePOS",
|
15
|
+
false
|
14
16
|
],
|
15
17
|
[
|
16
18
|
"between",
|
17
|
-
"preposition"
|
19
|
+
"preposition",
|
20
|
+
false
|
18
21
|
],
|
19
22
|
[
|
20
23
|
"canBeDoQuestion",
|
21
|
-
"canBeDoQuestion"
|
24
|
+
"canBeDoQuestion",
|
25
|
+
false
|
22
26
|
],
|
23
27
|
[
|
24
28
|
"canBeQuestion",
|
25
|
-
"canBeQuestion"
|
29
|
+
"canBeQuestion",
|
30
|
+
false
|
26
31
|
],
|
27
32
|
[
|
28
33
|
"concept",
|
29
|
-
"queryable"
|
34
|
+
"queryable",
|
35
|
+
false
|
30
36
|
],
|
31
37
|
[
|
32
38
|
"concept",
|
33
|
-
"theAble"
|
39
|
+
"theAble",
|
40
|
+
false
|
34
41
|
],
|
35
42
|
[
|
36
43
|
"doubleQuote",
|
37
|
-
"queryable"
|
44
|
+
"queryable",
|
45
|
+
false
|
38
46
|
],
|
39
47
|
[
|
40
48
|
"have",
|
41
|
-
"canBeDoQuestion"
|
49
|
+
"canBeDoQuestion",
|
50
|
+
false
|
42
51
|
],
|
43
52
|
[
|
44
53
|
"have",
|
45
|
-
"canBeQuestion"
|
54
|
+
"canBeQuestion",
|
55
|
+
false
|
46
56
|
],
|
47
57
|
[
|
48
58
|
"hierarchyAble",
|
49
|
-
"queryable"
|
59
|
+
"queryable",
|
60
|
+
false
|
50
61
|
],
|
51
62
|
[
|
52
63
|
"ifAble",
|
53
|
-
"ifAble"
|
64
|
+
"ifAble",
|
65
|
+
false
|
54
66
|
],
|
55
67
|
[
|
56
68
|
"is",
|
57
|
-
"canBeQuestion"
|
69
|
+
"canBeQuestion",
|
70
|
+
false
|
58
71
|
],
|
59
72
|
[
|
60
73
|
"is",
|
61
|
-
"verby"
|
74
|
+
"verby",
|
75
|
+
false
|
62
76
|
],
|
63
77
|
[
|
64
78
|
"it",
|
65
|
-
"pronoun"
|
79
|
+
"pronoun",
|
80
|
+
false
|
66
81
|
],
|
67
82
|
[
|
68
83
|
"it",
|
69
|
-
"queryable"
|
84
|
+
"queryable",
|
85
|
+
false
|
70
86
|
],
|
71
87
|
[
|
72
88
|
"it",
|
73
|
-
"thisitthat"
|
89
|
+
"thisitthat",
|
90
|
+
false
|
74
91
|
],
|
75
92
|
[
|
76
93
|
"it",
|
77
|
-
"toAble"
|
94
|
+
"toAble",
|
95
|
+
false
|
78
96
|
],
|
79
97
|
[
|
80
98
|
"modifies",
|
81
|
-
"verby"
|
82
|
-
|
83
|
-
[
|
84
|
-
"notAble",
|
85
|
-
"notAble"
|
99
|
+
"verby",
|
100
|
+
false
|
86
101
|
],
|
87
102
|
[
|
88
103
|
"noun",
|
89
|
-
"theAble"
|
104
|
+
"theAble",
|
105
|
+
false
|
90
106
|
],
|
91
107
|
[
|
92
108
|
"object",
|
93
|
-
"queryable"
|
109
|
+
"queryable",
|
110
|
+
false
|
94
111
|
],
|
95
112
|
[
|
96
113
|
"object",
|
97
|
-
"theAble"
|
114
|
+
"theAble",
|
115
|
+
false
|
98
116
|
],
|
99
117
|
[
|
100
118
|
"orAble",
|
101
|
-
"ifAble"
|
119
|
+
"ifAble",
|
120
|
+
false
|
102
121
|
],
|
103
122
|
[
|
104
123
|
"preposition",
|
105
|
-
"preposition"
|
124
|
+
"preposition",
|
125
|
+
false
|
106
126
|
],
|
107
127
|
[
|
108
128
|
"pronoun",
|
109
|
-
"pronoun"
|
129
|
+
"pronoun",
|
130
|
+
false
|
110
131
|
],
|
111
132
|
[
|
112
133
|
"property",
|
113
|
-
"queryable"
|
134
|
+
"queryable",
|
135
|
+
false
|
114
136
|
],
|
115
137
|
[
|
116
138
|
"property",
|
117
|
-
"theAble"
|
139
|
+
"theAble",
|
140
|
+
false
|
118
141
|
],
|
119
142
|
[
|
120
143
|
"property",
|
121
|
-
"unknown"
|
144
|
+
"unknown",
|
145
|
+
false
|
122
146
|
],
|
123
147
|
[
|
124
148
|
"punctuation",
|
125
|
-
"punctuation"
|
149
|
+
"punctuation",
|
150
|
+
false
|
126
151
|
],
|
127
152
|
[
|
128
153
|
"queryable",
|
129
|
-
"queryable"
|
154
|
+
"queryable",
|
155
|
+
false
|
130
156
|
],
|
131
157
|
[
|
132
158
|
"questionMark",
|
133
|
-
"punctuation"
|
159
|
+
"punctuation",
|
160
|
+
false
|
134
161
|
],
|
135
162
|
[
|
136
163
|
"readonly",
|
137
|
-
"queryable"
|
164
|
+
"queryable",
|
165
|
+
false
|
138
166
|
],
|
139
167
|
[
|
140
168
|
"reason",
|
141
|
-
"queryable"
|
169
|
+
"queryable",
|
170
|
+
false
|
142
171
|
],
|
143
172
|
[
|
144
173
|
"reason",
|
145
|
-
"theAble"
|
174
|
+
"theAble",
|
175
|
+
false
|
146
176
|
],
|
147
177
|
[
|
148
178
|
"that",
|
149
|
-
"thisitthat"
|
179
|
+
"thisitthat",
|
180
|
+
false
|
150
181
|
],
|
151
182
|
[
|
152
183
|
"the",
|
153
|
-
"articlePOS"
|
184
|
+
"articlePOS",
|
185
|
+
false
|
154
186
|
],
|
155
187
|
[
|
156
188
|
"theAble",
|
157
|
-
"theAble"
|
189
|
+
"theAble",
|
190
|
+
false
|
158
191
|
],
|
159
192
|
[
|
160
193
|
"this",
|
161
|
-
"pronoun"
|
194
|
+
"pronoun",
|
195
|
+
false
|
162
196
|
],
|
163
197
|
[
|
164
198
|
"this",
|
165
|
-
"queryable"
|
199
|
+
"queryable",
|
200
|
+
false
|
166
201
|
],
|
167
202
|
[
|
168
203
|
"this",
|
169
|
-
"thisitthat"
|
204
|
+
"thisitthat",
|
205
|
+
false
|
170
206
|
],
|
171
207
|
[
|
172
208
|
"thisitthat",
|
173
|
-
"queryable"
|
209
|
+
"queryable",
|
210
|
+
false
|
174
211
|
],
|
175
212
|
[
|
176
213
|
"to",
|
177
|
-
"preposition"
|
214
|
+
"preposition",
|
215
|
+
false
|
178
216
|
],
|
179
217
|
[
|
180
218
|
"toAble",
|
181
|
-
"toAble"
|
182
|
-
|
183
|
-
[
|
184
|
-
"unknown",
|
185
|
-
"hierarchyAble"
|
219
|
+
"toAble",
|
220
|
+
false
|
186
221
|
],
|
187
222
|
[
|
188
223
|
"unknown",
|
189
|
-
"
|
224
|
+
"hierarchyAble",
|
225
|
+
false
|
190
226
|
],
|
191
227
|
[
|
192
228
|
"unknown",
|
193
|
-
"object"
|
229
|
+
"object",
|
230
|
+
false
|
194
231
|
],
|
195
232
|
[
|
196
233
|
"unknown",
|
197
|
-
"queryable"
|
234
|
+
"queryable",
|
235
|
+
false
|
198
236
|
],
|
199
237
|
[
|
200
238
|
"unknown",
|
201
|
-
"theAble"
|
239
|
+
"theAble",
|
240
|
+
false
|
202
241
|
],
|
203
242
|
[
|
204
243
|
"verby",
|
205
|
-
"verby"
|
244
|
+
"verby",
|
245
|
+
false
|
206
246
|
],
|
207
247
|
[
|
208
248
|
"what",
|
209
|
-
"object"
|
249
|
+
"object",
|
250
|
+
false
|
210
251
|
],
|
211
252
|
[
|
212
253
|
"what",
|
213
|
-
"queryable"
|
254
|
+
"queryable",
|
255
|
+
false
|
214
256
|
],
|
215
257
|
[
|
216
258
|
"whatAble",
|
217
|
-
"queryable"
|
259
|
+
"queryable",
|
260
|
+
false
|
218
261
|
],
|
219
262
|
[
|
220
263
|
"whose",
|
221
|
-
"object"
|
264
|
+
"object",
|
265
|
+
false
|
222
266
|
],
|
223
267
|
[
|
224
268
|
"xfx",
|
225
|
-
"queryable"
|
269
|
+
"queryable",
|
270
|
+
false
|
226
271
|
]
|
227
272
|
],
|
228
273
|
"metadata": {
|
package/common/properties.js
CHANGED
@@ -690,12 +690,12 @@ let configStruct = {
|
|
690
690
|
]
|
691
691
|
};
|
692
692
|
|
693
|
-
const createConfig = () => {
|
693
|
+
const createConfig = async () => {
|
694
694
|
const config = new Config(configStruct, module)
|
695
695
|
config.stop_auto_rebuild()
|
696
|
-
config.api
|
697
|
-
config.add(concept
|
698
|
-
config.restart_auto_rebuild()
|
696
|
+
await config.setApi(api)
|
697
|
+
await config.add(concept, meta, dialogues)
|
698
|
+
await config.restart_auto_rebuild()
|
699
699
|
return config
|
700
700
|
}
|
701
701
|
|
@@ -708,12 +708,14 @@ knowledgeModule( {
|
|
708
708
|
contents: properties_tests,
|
709
709
|
checks: {
|
710
710
|
context: defaultContextCheck,
|
711
|
+
/*
|
711
712
|
objects: [
|
712
713
|
'children',
|
713
714
|
'concept',
|
714
715
|
'parents',
|
715
716
|
'properties'
|
716
717
|
]
|
718
|
+
*/
|
717
719
|
},
|
718
720
|
include: {
|
719
721
|
words: true,
|
package/common/punctuation.js
CHANGED