ekms 8.0.0-beta.6 → 8.0.0-beta.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/common/animals.instance.json +2871 -1379
  2. package/common/animals.js +17 -20
  3. package/common/articles.js +103 -0
  4. package/common/articles.test.json +310 -0
  5. package/common/avatar.js +5 -9
  6. package/common/characters.js +22 -28
  7. package/common/colors.instance.json +7170 -3657
  8. package/common/colors.js +4 -8
  9. package/common/colors.test.json +345 -780
  10. package/common/comparable.instance.json +1738 -0
  11. package/common/comparable.js +46 -27
  12. package/common/comparable.test.json +438 -2
  13. package/common/concept.js +120 -118
  14. package/common/countable.js +19 -13
  15. package/common/countable.test.json +1050 -0
  16. package/common/crew.instance.json +13066 -6598
  17. package/common/crew.js +36 -41
  18. package/common/crew.test.json +714 -452
  19. package/common/currency.js +27 -45
  20. package/common/dialogues.js +161 -285
  21. package/common/dimension.instance.json +474 -253
  22. package/common/dimension.js +16 -22
  23. package/common/dimension.test.json +446 -1640
  24. package/common/edible.instance.json +20059 -10007
  25. package/common/edible.js +3 -8
  26. package/common/emotions.instance.json +147 -129
  27. package/common/emotions.js +35 -38
  28. package/common/evaluate.instance.json +2 -0
  29. package/common/evaluate.js +49 -0
  30. package/common/evaluate.test.json +574 -0
  31. package/common/events.js +10 -14
  32. package/common/fastfood.instance.json +221967 -111264
  33. package/common/fastfood.js +74 -84
  34. package/common/fastfood.test.json +268 -90
  35. package/common/formulas.instance.json +455 -249
  36. package/common/formulas.js +19 -26
  37. package/common/gdefaults.js +24 -26
  38. package/common/help.js +7 -12
  39. package/common/help.test.json +22 -22
  40. package/common/helpers/concept.js +10 -7
  41. package/common/helpers/dialogues.js +2 -3
  42. package/common/helpers/properties.js +54 -62
  43. package/common/helpers.js +6 -5
  44. package/common/hierarchy.js +16 -24
  45. package/common/javascript.js +11 -18
  46. package/common/kirk.instance.json +584 -290
  47. package/common/kirk.js +5 -8
  48. package/common/length.instance.json +8834 -4757
  49. package/common/length.js +4 -8
  50. package/common/listener.js +48 -0
  51. package/common/listener.test.json +104 -0
  52. package/common/math.instance.json +425 -1187
  53. package/common/math.js +16 -20
  54. package/common/meta.js +23 -47
  55. package/common/nameable.instance.json +2 -0
  56. package/common/nameable.js +135 -0
  57. package/common/nameable.test.json +2121 -0
  58. package/common/negation.instance.json +2 -0
  59. package/common/negation.js +38 -0
  60. package/common/negation.test.json +308 -0
  61. package/common/numbers.js +27 -31
  62. package/common/ordering.instance.json +366 -246
  63. package/common/ordering.js +80 -86
  64. package/common/people.instance.json +2134 -1022
  65. package/common/people.js +8 -13
  66. package/common/percentages.instance.json +2 -0
  67. package/common/percentages.js +53 -0
  68. package/common/percentages.test.json +751 -0
  69. package/common/pipboy.instance.json +11777 -6289
  70. package/common/pipboy.js +48 -59
  71. package/common/pokemon.instance.json +4226 -2081
  72. package/common/pokemon.js +7 -20
  73. package/common/pos.js +12 -13
  74. package/common/pressure.instance.json +2208 -1175
  75. package/common/pressure.js +4 -8
  76. package/common/properties.instance.json +131 -61
  77. package/common/properties.js +57 -134
  78. package/common/punctuation.js +6 -6
  79. package/common/reports.instance.json +1018 -530
  80. package/common/reports.js +73 -97
  81. package/common/scorekeeper.js +18 -30
  82. package/common/sdefaults.js +16 -7
  83. package/common/sizeable.js +6 -10
  84. package/common/spock.instance.json +584 -290
  85. package/common/spock.js +5 -8
  86. package/common/stgame.js +19 -19
  87. package/common/stm.js +164 -27
  88. package/common/stm.test.json +1734 -1
  89. package/common/tell.js +14 -18
  90. package/common/temperature.instance.json +2271 -1222
  91. package/common/temperature.js +4 -8
  92. package/common/tester.js +3 -3
  93. package/common/testing.js +8 -12
  94. package/common/time.js +20 -25
  95. package/common/tokenize.js +4 -5
  96. package/common/ui.instance.json +459 -240
  97. package/common/ui.js +16 -22
  98. package/common/weight.instance.json +7646 -4026
  99. package/common/weight.js +4 -8
  100. package/common/yesno.js +5 -5
  101. package/main.js +59 -46
  102. package/package.json +28 -5
@@ -1,4 +1,4 @@
1
- const { Config, knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
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
- "verby"
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
- "modifies",
81
- "verby"
108
+ "memorable",
109
+ "theAble",
110
+ false
82
111
  ],
83
112
  [
84
- "notAble",
85
- "notAble"
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
- "notAble"
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
- "verby",
205
- "verby"
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": {