ekms 7.12.8 → 8.0.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/common/animals.instance.json +89 -293
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -5
  5. package/common/crew.instance.json +289 -577
  6. package/common/crew.js +1 -1
  7. package/common/currency.js +0 -2
  8. package/common/dialogues.js +122 -17
  9. package/common/dimension.instance.json +747 -73
  10. package/common/dimension.js +15 -7
  11. package/common/edible.instance.json +243 -435
  12. package/common/edible.js +1 -1
  13. package/common/emotions.instance.json +29 -65
  14. package/common/emotions.js +1 -1
  15. package/common/fastfood.instance.json +1080 -2072
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +992 -0
  18. package/common/formulas.js +19 -6
  19. package/common/formulas.test.json +1187 -3651
  20. package/common/gdefaults.js +2 -0
  21. package/common/help.js +7 -2
  22. package/common/help.test.json +9 -5
  23. package/common/helpers.js +5 -0
  24. package/common/javascript.js +8 -6
  25. package/common/kirk.instance.json +1 -1
  26. package/common/kirk.js +1 -1
  27. package/common/length.instance.json +316 -740
  28. package/common/length.js +1 -1
  29. package/common/math.instance.json +1959 -1
  30. package/common/math.js +17 -5
  31. package/common/meta.instance.json +1 -1
  32. package/common/meta.js +35 -10
  33. package/common/numbers.js +28 -24
  34. package/common/ordering.instance.json +37 -153
  35. package/common/ordering.js +1 -1
  36. package/common/people.instance.json +50 -78
  37. package/common/people.js +1 -1
  38. package/common/pipboy.instance.json +23431 -1082
  39. package/common/pipboy.js +31 -4
  40. package/common/pipboy.test.json +13 -9
  41. package/common/pokemon.instance.json +41 -141
  42. package/common/pokemon.js +1 -1
  43. package/common/pressure.instance.json +93 -33
  44. package/common/pressure.js +1 -1
  45. package/common/properties.instance.json +21 -49
  46. package/common/properties.js +13 -8
  47. package/common/reports.instance.json +23 -63
  48. package/common/reports.js +9 -7
  49. package/common/scorekeeper.instance.json +1 -1
  50. package/common/scorekeeper.js +9 -7
  51. package/common/spock.instance.json +1 -1
  52. package/common/spock.js +1 -1
  53. package/common/tell.js +4 -2
  54. package/common/temperature.instance.json +97 -193
  55. package/common/temperature.js +1 -1
  56. package/common/time.js +36 -20
  57. package/common/time.test.json +66 -44
  58. package/common/tokenize.js +46 -0
  59. package/common/ui.instance.json +9 -1
  60. package/common/weight.instance.json +273 -217
  61. package/common/weight.js +1 -1
  62. package/main.js +4 -8
  63. package/package.json +6 -18
  64. package/common/dimensionTemplate.instance.json +0 -582
  65. package/common/dimensionTemplate.js +0 -35
  66. package/common/formulasTemplate.instance.json +0 -483
  67. package/common/formulasTemplate.js +0 -30
  68. package/common/formulasTemplate.test.json +0 -2
  69. package/common/mathTemplate.instance.json +0 -1635
  70. package/common/mathTemplate.js +0 -32
  71. package/common/mathTemplate.test.json +0 -1422
  72. package/common/pipboyTemplate.instance.json +0 -17420
  73. package/common/pipboyTemplate.js +0 -48
  74. package/common/pipboyTemplate.test.json +0 -2
  75. /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
@@ -1,35 +0,0 @@
1
- const { Config, knowledgeModule, where } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
3
- const hierarchy = require('./hierarchy')
4
- const dimensionTemplate_tests = require('./dimensionTemplate.test.json')
5
- const dimensionTemplate_instance = require('./dimensionTemplate.instance.json')
6
-
7
- const template = {
8
- queries: [
9
- "dimension and unit are concepts",
10
- ],
11
- }
12
-
13
- const createConfig = () => {
14
- const config = new Config({ name: 'dimensionTemplate' }, module)
15
- config.add(hierarchy())
16
- return config
17
- }
18
-
19
- knowledgeModule( {
20
- module,
21
- description: 'template for dimension',
22
- createConfig,
23
- test: {
24
- name: './dimensionTemplate.test.json',
25
- contents: dimensionTemplate_tests
26
- },
27
- template: {
28
- template,
29
- instance: dimensionTemplate_instance,
30
- checks: {
31
- context: defaultContextCheck,
32
- },
33
-
34
- }
35
- })
@@ -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
- ]