ekms 8.0.0-beta.5 → 8.0.0-beta.51
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +2855 -1363
- package/common/animals.js +17 -20
- package/common/articles.js +103 -0
- package/common/articles.test.json +310 -0
- package/common/avatar.js +5 -9
- package/common/characters.js +22 -28
- package/common/colors.instance.json +6978 -3493
- package/common/colors.js +4 -8
- package/common/colors.test.json +345 -780
- package/common/comparable.js +5 -22
- package/common/concept.js +120 -118
- package/common/countable.js +18 -12
- package/common/countable.test.json +1050 -0
- package/common/crew.instance.json +13032 -6570
- package/common/crew.js +36 -41
- package/common/crew.test.json +714 -452
- package/common/currency.js +27 -45
- package/common/dialogues.js +158 -282
- package/common/dimension.instance.json +273 -272
- package/common/dimension.js +16 -22
- package/common/dimension.test.json +446 -1640
- package/common/edible.instance.json +19911 -9877
- package/common/edible.js +3 -8
- package/common/emotions.instance.json +146 -128
- package/common/emotions.js +35 -38
- package/common/evaluate.instance.json +2 -0
- package/common/evaluate.js +49 -0
- package/common/evaluate.test.json +574 -0
- package/common/events.js +9 -13
- package/common/fastfood.instance.json +221141 -111240
- package/common/fastfood.js +70 -80
- package/common/formulas.instance.json +251 -265
- package/common/formulas.js +17 -24
- package/common/gdefaults.js +24 -26
- package/common/help.js +7 -12
- package/common/help.test.json +22 -22
- package/common/helpers/concept.js +9 -6
- package/common/helpers/dialogues.js +2 -3
- package/common/helpers/properties.js +54 -62
- package/common/helpers.js +1 -1
- package/common/hierarchy.js +16 -24
- package/common/javascript.js +11 -18
- package/common/kirk.instance.json +583 -289
- package/common/kirk.js +5 -8
- package/common/length.instance.json +5530 -4754
- package/common/length.js +4 -8
- package/common/listener.js +48 -0
- package/common/listener.test.json +104 -0
- package/common/math.instance.json +192 -1184
- package/common/math.js +15 -19
- package/common/meta.js +23 -47
- package/common/nameable.instance.json +2 -0
- package/common/nameable.js +135 -0
- package/common/nameable.test.json +2121 -0
- package/common/negation.instance.json +2 -0
- package/common/negation.js +38 -0
- package/common/negation.test.json +308 -0
- package/common/numbers.js +6 -10
- package/common/ordering.instance.json +340 -160
- package/common/ordering.js +80 -86
- package/common/people.instance.json +2066 -1014
- package/common/people.js +8 -13
- package/common/percentages.instance.json +2 -0
- package/common/percentages.js +53 -0
- package/common/percentages.test.json +751 -0
- package/common/pipboy.instance.json +7999 -6269
- package/common/pipboy.js +32 -43
- package/common/pokemon.instance.json +4207 -2069
- package/common/pokemon.js +7 -20
- package/common/pos.js +4 -5
- package/common/pressure.instance.json +1341 -1189
- package/common/pressure.js +4 -8
- package/common/properties.instance.json +130 -60
- package/common/properties.js +57 -134
- package/common/punctuation.js +6 -6
- package/common/reports.instance.json +595 -557
- package/common/reports.js +64 -89
- package/common/scorekeeper.js +18 -30
- package/common/sdefaults.js +16 -7
- package/common/sizeable.js +5 -9
- package/common/spock.instance.json +583 -289
- package/common/spock.js +5 -8
- package/common/stgame.js +19 -19
- package/common/stm.js +163 -26
- package/common/stm.test.json +1734 -1
- package/common/tell.js +14 -18
- package/common/temperature.instance.json +1461 -1293
- package/common/temperature.js +4 -8
- package/common/tester.js +3 -3
- package/common/testing.js +8 -12
- package/common/time.js +20 -25
- package/common/tokenize.js +4 -5
- package/common/ui.instance.json +257 -258
- package/common/ui.js +11 -17
- package/common/weight.instance.json +5212 -4233
- package/common/weight.js +4 -8
- package/common/yesno.js +5 -5
- package/main.js +59 -46
- package/package.json +27 -5
package/common/pressure.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
const {
|
1
|
+
const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
3
|
const dimension = require('./dimension.js')
|
4
4
|
const pressure_tests = require('./pressure.test.json')
|
@@ -14,16 +14,12 @@ const template = {
|
|
14
14
|
],
|
15
15
|
}
|
16
16
|
|
17
|
-
const createConfig = () => {
|
18
|
-
const config = new Config({ name: 'pressure' }, module)
|
19
|
-
config.add(dimension())
|
20
|
-
return config
|
21
|
-
}
|
22
|
-
|
23
17
|
knowledgeModule({
|
18
|
+
config: { name: 'pressure' },
|
19
|
+
includes: [dimension],
|
20
|
+
|
24
21
|
module,
|
25
22
|
description: 'Pressure dimension',
|
26
|
-
createConfig,
|
27
23
|
test: {
|
28
24
|
name: './pressure.test.json',
|
29
25
|
contents: pressure_tests
|
@@ -6,223 +6,293 @@
|
|
6
6
|
"hierarchy": [
|
7
7
|
[
|
8
8
|
"a",
|
9
|
-
"articlePOS"
|
9
|
+
"articlePOS",
|
10
|
+
false
|
11
|
+
],
|
12
|
+
[
|
13
|
+
"adjective",
|
14
|
+
"adjective",
|
15
|
+
false
|
10
16
|
],
|
11
17
|
[
|
12
18
|
"articlePOS",
|
13
|
-
"articlePOS"
|
19
|
+
"articlePOS",
|
20
|
+
false
|
14
21
|
],
|
15
22
|
[
|
16
23
|
"between",
|
17
|
-
"preposition"
|
24
|
+
"preposition",
|
25
|
+
false
|
18
26
|
],
|
19
27
|
[
|
20
28
|
"canBeDoQuestion",
|
21
|
-
"canBeDoQuestion"
|
29
|
+
"canBeDoQuestion",
|
30
|
+
false
|
22
31
|
],
|
23
32
|
[
|
24
33
|
"canBeQuestion",
|
25
|
-
"canBeQuestion"
|
34
|
+
"canBeQuestion",
|
35
|
+
false
|
26
36
|
],
|
27
37
|
[
|
28
38
|
"concept",
|
29
|
-
"queryable"
|
39
|
+
"queryable",
|
40
|
+
false
|
30
41
|
],
|
31
42
|
[
|
32
43
|
"concept",
|
33
|
-
"theAble"
|
44
|
+
"theAble",
|
45
|
+
false
|
34
46
|
],
|
35
47
|
[
|
36
48
|
"doubleQuote",
|
37
|
-
"queryable"
|
49
|
+
"queryable",
|
50
|
+
false
|
51
|
+
],
|
52
|
+
[
|
53
|
+
"evaluate",
|
54
|
+
"verby",
|
55
|
+
false
|
38
56
|
],
|
39
57
|
[
|
40
58
|
"have",
|
41
|
-
"canBeDoQuestion"
|
59
|
+
"canBeDoQuestion",
|
60
|
+
false
|
42
61
|
],
|
43
62
|
[
|
44
63
|
"have",
|
45
|
-
"canBeQuestion"
|
64
|
+
"canBeQuestion",
|
65
|
+
false
|
46
66
|
],
|
47
67
|
[
|
48
68
|
"hierarchyAble",
|
49
|
-
"queryable"
|
69
|
+
"queryable",
|
70
|
+
false
|
50
71
|
],
|
51
72
|
[
|
52
73
|
"ifAble",
|
53
|
-
"ifAble"
|
74
|
+
"ifAble",
|
75
|
+
false
|
54
76
|
],
|
55
77
|
[
|
56
78
|
"is",
|
57
|
-
"canBeQuestion"
|
79
|
+
"canBeQuestion",
|
80
|
+
false
|
58
81
|
],
|
59
82
|
[
|
60
83
|
"is",
|
61
|
-
"verby"
|
84
|
+
"verby",
|
85
|
+
false
|
62
86
|
],
|
63
87
|
[
|
64
88
|
"it",
|
65
|
-
"pronoun"
|
89
|
+
"pronoun",
|
90
|
+
false
|
66
91
|
],
|
67
92
|
[
|
68
93
|
"it",
|
69
|
-
"queryable"
|
94
|
+
"queryable",
|
95
|
+
false
|
70
96
|
],
|
71
97
|
[
|
72
98
|
"it",
|
73
|
-
"thisitthat"
|
99
|
+
"thisitthat",
|
100
|
+
false
|
74
101
|
],
|
75
102
|
[
|
76
103
|
"it",
|
77
|
-
"toAble"
|
104
|
+
"toAble",
|
105
|
+
false
|
78
106
|
],
|
79
107
|
[
|
80
|
-
"
|
81
|
-
"
|
108
|
+
"memorable",
|
109
|
+
"theAble",
|
110
|
+
false
|
82
111
|
],
|
83
112
|
[
|
84
|
-
"
|
85
|
-
"
|
113
|
+
"modifies",
|
114
|
+
"verby",
|
115
|
+
false
|
86
116
|
],
|
87
117
|
[
|
88
118
|
"noun",
|
89
|
-
"theAble"
|
119
|
+
"theAble",
|
120
|
+
false
|
90
121
|
],
|
91
122
|
[
|
92
123
|
"object",
|
93
|
-
"queryable"
|
124
|
+
"queryable",
|
125
|
+
false
|
94
126
|
],
|
95
127
|
[
|
96
128
|
"object",
|
97
|
-
"theAble"
|
129
|
+
"theAble",
|
130
|
+
false
|
98
131
|
],
|
99
132
|
[
|
100
133
|
"orAble",
|
101
|
-
"ifAble"
|
134
|
+
"ifAble",
|
135
|
+
false
|
102
136
|
],
|
103
137
|
[
|
104
138
|
"preposition",
|
105
|
-
"preposition"
|
139
|
+
"preposition",
|
140
|
+
false
|
106
141
|
],
|
107
142
|
[
|
108
143
|
"pronoun",
|
109
|
-
"pronoun"
|
144
|
+
"pronoun",
|
145
|
+
false
|
110
146
|
],
|
111
147
|
[
|
112
148
|
"property",
|
113
|
-
"queryable"
|
149
|
+
"queryable",
|
150
|
+
false
|
114
151
|
],
|
115
152
|
[
|
116
153
|
"property",
|
117
|
-
"theAble"
|
154
|
+
"theAble",
|
155
|
+
false
|
118
156
|
],
|
119
157
|
[
|
120
158
|
"property",
|
121
|
-
"unknown"
|
159
|
+
"unknown",
|
160
|
+
false
|
122
161
|
],
|
123
162
|
[
|
124
163
|
"punctuation",
|
125
|
-
"punctuation"
|
164
|
+
"punctuation",
|
165
|
+
false
|
126
166
|
],
|
127
167
|
[
|
128
168
|
"queryable",
|
129
|
-
"queryable"
|
169
|
+
"queryable",
|
170
|
+
false
|
130
171
|
],
|
131
172
|
[
|
132
173
|
"questionMark",
|
133
|
-
"punctuation"
|
174
|
+
"punctuation",
|
175
|
+
false
|
134
176
|
],
|
135
177
|
[
|
136
178
|
"readonly",
|
137
|
-
"queryable"
|
179
|
+
"queryable",
|
180
|
+
false
|
138
181
|
],
|
139
182
|
[
|
140
183
|
"reason",
|
141
|
-
"queryable"
|
184
|
+
"queryable",
|
185
|
+
false
|
142
186
|
],
|
143
187
|
[
|
144
188
|
"reason",
|
145
|
-
"theAble"
|
189
|
+
"theAble",
|
190
|
+
false
|
191
|
+
],
|
192
|
+
[
|
193
|
+
"remember",
|
194
|
+
"verby",
|
195
|
+
false
|
196
|
+
],
|
197
|
+
[
|
198
|
+
"stm_before",
|
199
|
+
"adjective",
|
200
|
+
false
|
146
201
|
],
|
147
202
|
[
|
148
203
|
"that",
|
149
|
-
"thisitthat"
|
204
|
+
"thisitthat",
|
205
|
+
false
|
150
206
|
],
|
151
207
|
[
|
152
208
|
"the",
|
153
|
-
"articlePOS"
|
209
|
+
"articlePOS",
|
210
|
+
false
|
154
211
|
],
|
155
212
|
[
|
156
213
|
"theAble",
|
157
|
-
"theAble"
|
214
|
+
"theAble",
|
215
|
+
false
|
158
216
|
],
|
159
217
|
[
|
160
218
|
"this",
|
161
|
-
"pronoun"
|
219
|
+
"pronoun",
|
220
|
+
false
|
162
221
|
],
|
163
222
|
[
|
164
223
|
"this",
|
165
|
-
"queryable"
|
224
|
+
"queryable",
|
225
|
+
false
|
166
226
|
],
|
167
227
|
[
|
168
228
|
"this",
|
169
|
-
"thisitthat"
|
229
|
+
"thisitthat",
|
230
|
+
false
|
170
231
|
],
|
171
232
|
[
|
172
233
|
"thisitthat",
|
173
|
-
"queryable"
|
234
|
+
"queryable",
|
235
|
+
false
|
174
236
|
],
|
175
237
|
[
|
176
238
|
"to",
|
177
|
-
"preposition"
|
239
|
+
"preposition",
|
240
|
+
false
|
178
241
|
],
|
179
242
|
[
|
180
243
|
"toAble",
|
181
|
-
"toAble"
|
182
|
-
|
183
|
-
[
|
184
|
-
"unknown",
|
185
|
-
"hierarchyAble"
|
244
|
+
"toAble",
|
245
|
+
false
|
186
246
|
],
|
187
247
|
[
|
188
248
|
"unknown",
|
189
|
-
"
|
249
|
+
"hierarchyAble",
|
250
|
+
false
|
190
251
|
],
|
191
252
|
[
|
192
253
|
"unknown",
|
193
|
-
"object"
|
254
|
+
"object",
|
255
|
+
false
|
194
256
|
],
|
195
257
|
[
|
196
258
|
"unknown",
|
197
|
-
"queryable"
|
259
|
+
"queryable",
|
260
|
+
false
|
198
261
|
],
|
199
262
|
[
|
200
263
|
"unknown",
|
201
|
-
"theAble"
|
264
|
+
"theAble",
|
265
|
+
false
|
202
266
|
],
|
203
267
|
[
|
204
268
|
"verby",
|
205
|
-
"verby"
|
269
|
+
"verby",
|
270
|
+
false
|
206
271
|
],
|
207
272
|
[
|
208
273
|
"what",
|
209
|
-
"object"
|
274
|
+
"object",
|
275
|
+
false
|
210
276
|
],
|
211
277
|
[
|
212
278
|
"what",
|
213
|
-
"queryable"
|
279
|
+
"queryable",
|
280
|
+
false
|
214
281
|
],
|
215
282
|
[
|
216
283
|
"whatAble",
|
217
|
-
"queryable"
|
284
|
+
"queryable",
|
285
|
+
false
|
218
286
|
],
|
219
287
|
[
|
220
288
|
"whose",
|
221
|
-
"object"
|
289
|
+
"object",
|
290
|
+
false
|
222
291
|
],
|
223
292
|
[
|
224
293
|
"xfx",
|
225
|
-
"queryable"
|
294
|
+
"queryable",
|
295
|
+
false
|
226
296
|
]
|
227
297
|
],
|
228
298
|
"metadata": {
|