tpmkms_4wp 8.0.0-beta.7 → 8.0.0-beta.70
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +2871 -1379
- 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 +7170 -3657
- package/common/colors.js +4 -8
- package/common/colors.test.json +345 -780
- package/common/comparable.instance.json +1750 -0
- package/common/comparable.js +36 -28
- package/common/comparable.test.json +438 -2
- package/common/concept.js +120 -118
- package/common/countable.js +19 -13
- package/common/countable.test.json +1050 -0
- package/common/crew.instance.json +13066 -6469
- package/common/crew.js +36 -41
- package/common/crew.test.json +714 -452
- package/common/currency.js +27 -45
- package/common/dialogues.js +161 -285
- package/common/dimension.instance.json +474 -253
- package/common/dimension.js +16 -22
- package/common/dimension.test.json +446 -1640
- package/common/edible.instance.json +20053 -10093
- package/common/edible.js +3 -8
- package/common/emotions.instance.json +147 -69
- 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 +10 -14
- package/common/fastfood.instance.json +221166 -111223
- package/common/fastfood.js +75 -85
- package/common/fastfood.test.json +268 -90
- package/common/formulas.instance.json +455 -249
- package/common/formulas.js +19 -26
- package/common/gdefaults.js +24 -26
- package/common/help.js +7 -12
- package/common/help.test.json +63 -8
- package/common/helpers/concept.js +10 -7
- package/common/helpers/dialogues.js +2 -3
- package/common/helpers/properties.js +54 -62
- package/common/helpers.js +6 -5
- package/common/hierarchy.js +16 -24
- package/common/javascript.js +11 -18
- package/common/kirk.instance.json +584 -290
- package/common/kirk.js +5 -8
- package/common/length.instance.json +8834 -4757
- package/common/length.js +4 -8
- package/common/listener.js +48 -0
- package/common/listener.test.json +104 -0
- package/common/math.instance.json +425 -1187
- package/common/math.js +16 -20
- package/common/meta.js +23 -47
- package/common/nameable.instance.json +2 -0
- package/common/nameable.js +144 -0
- package/common/nameable.test.json +3191 -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 +27 -31
- package/common/ordering.instance.json +366 -246
- package/common/ordering.js +80 -86
- package/common/people.instance.json +2074 -1022
- 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 +11745 -6329
- package/common/pipboy.js +48 -59
- package/common/pokemon.instance.json +4226 -2081
- package/common/pokemon.js +7 -20
- package/common/pos.js +15 -13
- package/common/pressure.instance.json +2208 -1175
- package/common/pressure.js +4 -8
- package/common/properties.instance.json +131 -61
- package/common/properties.js +57 -134
- package/common/punctuation.js +15 -7
- package/common/reports.instance.json +1018 -530
- package/common/reports.js +77 -100
- package/common/reports.test.json +15623 -10458
- package/common/scorekeeper.js +18 -30
- package/common/sdefaults.js +16 -7
- package/common/sizeable.js +6 -10
- package/common/spock.instance.json +584 -290
- package/common/spock.js +5 -8
- package/common/stgame.js +19 -19
- package/common/stm.js +164 -27
- package/common/stm.test.json +1734 -1
- package/common/tell.js +14 -18
- package/common/temperature.instance.json +2271 -1222
- package/common/temperature.js +4 -8
- package/common/tester.js +15 -4
- package/common/testing.js +8 -12
- package/common/time.js +20 -25
- package/common/tokenize.js +5 -6
- package/common/ui.instance.json +459 -240
- package/common/ui.js +16 -22
- package/common/weight.instance.json +7646 -4026
- package/common/weight.js +4 -8
- package/common/yesno.js +5 -5
- package/main.js +14 -2
- package/package.json +28 -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
|
+
"verb",
|
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
|
-
"
|
84
|
+
"verb",
|
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
|
+
"verb",
|
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
|
+
"verb",
|
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
|
-
"
|
205
|
-
"
|
268
|
+
"verb",
|
269
|
+
"verb",
|
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": {
|