ekms 7.12.7 → 7.12.8-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/common/animals.instance.json +0 -44
  2. package/common/dialogues.js +106 -3
  3. package/common/dimension.instance.json +736 -62
  4. package/common/dimension.js +15 -7
  5. package/common/edible.instance.json +2 -190
  6. package/common/fastfood.instance.json +886 -922
  7. package/common/formulas.instance.json +992 -0
  8. package/common/formulas.js +18 -5
  9. package/common/formulas.test.json +1187 -3651
  10. package/common/length.instance.json +261 -505
  11. package/common/math.instance.json +1979 -1
  12. package/common/math.js +17 -5
  13. package/common/ordering.instance.json +0 -52
  14. package/common/pipboy.instance.json +23454 -1101
  15. package/common/pipboy.js +31 -4
  16. package/common/pipboy.test.json +13 -9
  17. package/common/pokemon.instance.json +0 -44
  18. package/common/pressure.instance.json +80 -0
  19. package/common/reports.instance.json +17 -1
  20. package/common/temperature.instance.json +80 -60
  21. package/common/ui.instance.json +8 -0
  22. package/common/weight.instance.json +272 -48
  23. package/main.js +0 -8
  24. package/package.json +4 -20
  25. package/common/dimensionTemplate.instance.json +0 -582
  26. package/common/dimensionTemplate.js +0 -35
  27. package/common/dimensionTemplate.test.json +0 -2
  28. package/common/formulasTemplate.instance.json +0 -483
  29. package/common/formulasTemplate.js +0 -30
  30. package/common/formulasTemplate.test.json +0 -2
  31. package/common/mathTemplate.instance.json +0 -1635
  32. package/common/mathTemplate.js +0 -32
  33. package/common/mathTemplate.test.json +0 -1422
  34. package/common/pipboyTemplate.instance.json +0 -17420
  35. package/common/pipboyTemplate.js +0 -48
  36. package/common/pipboyTemplate.test.json +0 -2
@@ -1,483 +0,0 @@
1
- {
2
- "queries": [
3
- "formulas are concepts"
4
- ],
5
- "resultss": [
6
- {
7
- "hierarchy": [
8
- [
9
- "a",
10
- "articlePOS"
11
- ],
12
- [
13
- "all",
14
- "quantifier"
15
- ],
16
- [
17
- "articlePOS",
18
- "articlePOS"
19
- ],
20
- [
21
- "between",
22
- "preposition"
23
- ],
24
- [
25
- "canBeDoQuestion",
26
- "canBeDoQuestion"
27
- ],
28
- [
29
- "canBeQuestion",
30
- "canBeQuestion"
31
- ],
32
- [
33
- "concept",
34
- "queryable"
35
- ],
36
- [
37
- "concept",
38
- "theAble"
39
- ],
40
- [
41
- "condition",
42
- "condition"
43
- ],
44
- [
45
- "countable",
46
- "hierarchyAble"
47
- ],
48
- [
49
- "hasCountOfPieces",
50
- "countable"
51
- ],
52
- [
53
- "have",
54
- "canBeDoQuestion"
55
- ],
56
- [
57
- "have",
58
- "canBeQuestion"
59
- ],
60
- [
61
- "hierarchyAble",
62
- "queryable"
63
- ],
64
- [
65
- "highest",
66
- "condition"
67
- ],
68
- [
69
- "ifAble",
70
- "ifAble"
71
- ],
72
- [
73
- "is",
74
- "canBeQuestion"
75
- ],
76
- [
77
- "is",
78
- "verby"
79
- ],
80
- [
81
- "it",
82
- "pronoun"
83
- ],
84
- [
85
- "it",
86
- "queryable"
87
- ],
88
- [
89
- "it",
90
- "thisitthat"
91
- ],
92
- [
93
- "it",
94
- "toAble"
95
- ],
96
- [
97
- "lowest",
98
- "condition"
99
- ],
100
- [
101
- "modifies",
102
- "verby"
103
- ],
104
- [
105
- "notAble",
106
- "notAble"
107
- ],
108
- [
109
- "noun",
110
- "theAble"
111
- ],
112
- [
113
- "number",
114
- "quantifier"
115
- ],
116
- [
117
- "number",
118
- "queryable"
119
- ],
120
- [
121
- "object",
122
- "queryable"
123
- ],
124
- [
125
- "object",
126
- "theAble"
127
- ],
128
- [
129
- "orAble",
130
- "ifAble"
131
- ],
132
- [
133
- "preposition",
134
- "preposition"
135
- ],
136
- [
137
- "pronoun",
138
- "pronoun"
139
- ],
140
- [
141
- "property",
142
- "queryable"
143
- ],
144
- [
145
- "property",
146
- "theAble"
147
- ],
148
- [
149
- "property",
150
- "unknown"
151
- ],
152
- [
153
- "punctuation",
154
- "punctuation"
155
- ],
156
- [
157
- "quantifier",
158
- "quantifier"
159
- ],
160
- [
161
- "queryable",
162
- "queryable"
163
- ],
164
- [
165
- "questionMark",
166
- "punctuation"
167
- ],
168
- [
169
- "readonly",
170
- "queryable"
171
- ],
172
- [
173
- "reason",
174
- "queryable"
175
- ],
176
- [
177
- "reason",
178
- "theAble"
179
- ],
180
- [
181
- "that",
182
- "thisitthat"
183
- ],
184
- [
185
- "the",
186
- "articlePOS"
187
- ],
188
- [
189
- "theAble",
190
- "theAble"
191
- ],
192
- [
193
- "this",
194
- "pronoun"
195
- ],
196
- [
197
- "this",
198
- "queryable"
199
- ],
200
- [
201
- "this",
202
- "thisitthat"
203
- ],
204
- [
205
- "thisitthat",
206
- "queryable"
207
- ],
208
- [
209
- "to",
210
- "preposition"
211
- ],
212
- [
213
- "toAble",
214
- "toAble"
215
- ],
216
- [
217
- "type",
218
- "property"
219
- ],
220
- [
221
- "type",
222
- "whatAble"
223
- ],
224
- [
225
- "unknown",
226
- "hierarchyAble"
227
- ],
228
- [
229
- "unknown",
230
- "notAble"
231
- ],
232
- [
233
- "unknown",
234
- "object"
235
- ],
236
- [
237
- "unknown",
238
- "queryable"
239
- ],
240
- [
241
- "unknown",
242
- "theAble"
243
- ],
244
- [
245
- "verby",
246
- "verby"
247
- ],
248
- [
249
- "what",
250
- "object"
251
- ],
252
- [
253
- "what",
254
- "queryable"
255
- ],
256
- [
257
- "whatAble",
258
- "queryable"
259
- ],
260
- [
261
- "whose",
262
- "object"
263
- ],
264
- [
265
- "xfx",
266
- "queryable"
267
- ]
268
- ],
269
- "metadata": {
270
- "opChoices": [
271
- {
272
- "op": [
273
- "unknown",
274
- 0
275
- ],
276
- "ops": [
277
- [
278
- "unknown",
279
- 0
280
- ],
281
- [
282
- "is",
283
- 0
284
- ],
285
- [
286
- "unknown",
287
- 0
288
- ]
289
- ],
290
- "counter": 1
291
- },
292
- {
293
- "op": [
294
- "unknown",
295
- 0
296
- ],
297
- "ops": [
298
- [
299
- "is",
300
- 0
301
- ],
302
- [
303
- "unknown",
304
- 0
305
- ]
306
- ],
307
- "counter": 2
308
- },
309
- {
310
- "op": [
311
- "is",
312
- 0
313
- ],
314
- "ops": [
315
- [
316
- "is",
317
- 0
318
- ]
319
- ],
320
- "counter": 3
321
- },
322
- {
323
- "op": [
324
- "is",
325
- 1
326
- ],
327
- "ops": [
328
- [
329
- "is",
330
- 1
331
- ]
332
- ],
333
- "counter": 4
334
- }
335
- ]
336
- },
337
- "trace": "undefined",
338
- "contexts": [
339
- {
340
- "number": "many",
341
- "text": "formulas are concepts",
342
- "marker": "is",
343
- "word": "are",
344
- "range": {
345
- "start": 0,
346
- "end": 20
347
- },
348
- "one": {
349
- "number": "many",
350
- "marker": "unknown",
351
- "range": {
352
- "start": 0,
353
- "end": 20
354
- },
355
- "word": "formulas",
356
- "text": "formulas",
357
- "value": "formulas",
358
- "unknown": true,
359
- "dead": true,
360
- "types": [
361
- "unknown"
362
- ],
363
- "level": 1
364
- },
365
- "two": {
366
- "marker": "unknown",
367
- "range": {
368
- "start": 13,
369
- "end": 20
370
- },
371
- "word": "concepts",
372
- "text": "concepts",
373
- "value": "concepts",
374
- "unknown": true,
375
- "dead": true,
376
- "types": [
377
- "unknown"
378
- ],
379
- "level": 1,
380
- "concept": true
381
- },
382
- "dead": true,
383
- "level": 2,
384
- "topLevel": true,
385
- "touchedBy": [
386
- "formulasTemplate#call2"
387
- ]
388
- }
389
- ],
390
- "generated": [
391
- ""
392
- ],
393
- "paraphrases": [
394
- "formulas are concepts"
395
- ],
396
- "paraphrasesParenthesized": [],
397
- "generatedParenthesized": [],
398
- "responses": [
399
- ""
400
- ],
401
- "associations": [
402
- [
403
- [
404
- "is",
405
- 0
406
- ],
407
- [
408
- "unknown",
409
- 0
410
- ]
411
- ],
412
- [
413
- [
414
- "is",
415
- 0
416
- ],
417
- [
418
- "unknown",
419
- 0
420
- ],
421
- [
422
- "unknown",
423
- 1
424
- ]
425
- ],
426
- [
427
- [
428
- "is",
429
- 0
430
- ],
431
- [
432
- "unknown",
433
- 1
434
- ]
435
- ]
436
- ],
437
- "learned_contextual_priorities": [],
438
- "query": "formulas are concepts",
439
- "key": {
440
- "query": "formulas are concepts"
441
- }
442
- }
443
- ],
444
- "fragments": [],
445
- "semantics": [],
446
- "associations": [
447
- [
448
- [
449
- "is",
450
- 0
451
- ],
452
- [
453
- "unknown",
454
- 0
455
- ]
456
- ],
457
- [
458
- [
459
- "is",
460
- 0
461
- ],
462
- [
463
- "unknown",
464
- 0
465
- ],
466
- [
467
- "unknown",
468
- 1
469
- ]
470
- ],
471
- [
472
- [
473
- "is",
474
- 0
475
- ],
476
- [
477
- "unknown",
478
- 1
479
- ]
480
- ]
481
- ],
482
- "learned_contextual_priorities": []
483
- }
@@ -1,30 +0,0 @@
1
- const { Config, knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
3
- const base_km = require('./hierarchy')
4
- const countable = require('./countable')
5
- const comparable = require('./comparable')
6
- const tests = require('./formulasTemplate.test.json')
7
- const instance = require('./formulasTemplate.instance.json')
8
-
9
- const template = {
10
- queries: [
11
- "formulas are concepts",
12
- ]
13
- }
14
-
15
- const createConfig = () => new Config({ name: 'formulasTemplate' }, module).add(base_km(), countable(), comparable())
16
-
17
- knowledgeModule({
18
- module,
19
- description: 'Template for formulas',
20
- createConfig,
21
- template: { template, instance },
22
- test: {
23
- name: './formulasTemplate.test.json',
24
- contents: tests,
25
- checks: {
26
- context: defaultContextCheck,
27
- },
28
-
29
- },
30
- })
@@ -1,2 +0,0 @@
1
- [
2
- ]