ekms 7.12.8-beta.0 → 7.12.8-beta.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -41,11 +41,7 @@
41
41
  {
42
42
  "name": "Hidden",
43
43
  "description": "Don't show in the UI",
44
- "includes": [
45
- "dimensionTemplate",
46
- "formulasTemplate",
47
- "pipboyTemplate"
48
- ]
44
+ "includes": []
49
45
  },
50
46
  {
51
47
  "name": "Language",
@@ -149,9 +145,6 @@
149
145
  "common/dimension.instance.json",
150
146
  "common/dimension.js",
151
147
  "common/dimension.test.json",
152
- "common/dimensionTemplate.instance.json",
153
- "common/dimensionTemplate.js",
154
- "common/dimensionTemplate.test.json",
155
148
  "common/edible.instance.json",
156
149
  "common/edible.js",
157
150
  "common/edible.test.json",
@@ -163,11 +156,9 @@
163
156
  "common/fastfood.instance.json",
164
157
  "common/fastfood.js",
165
158
  "common/fastfood.test.json",
159
+ "common/formulas.instance.json",
166
160
  "common/formulas.js",
167
161
  "common/formulas.test.json",
168
- "common/formulasTemplate.instance.json",
169
- "common/formulasTemplate.js",
170
- "common/formulasTemplate.test.json",
171
162
  "common/gdefaults.js",
172
163
  "common/gdefaults.test.json",
173
164
  "common/help.js",
@@ -208,9 +199,6 @@
208
199
  "common/pipboy.instance.json",
209
200
  "common/pipboy.js",
210
201
  "common/pipboy.test.json",
211
- "common/pipboyTemplate.instance.json",
212
- "common/pipboyTemplate.js",
213
- "common/pipboyTemplate.test.json",
214
202
  "common/pokemon.instance.json",
215
203
  "common/pokemon.js",
216
204
  "common/pokemon.test.json",
@@ -277,8 +265,8 @@
277
265
  "table": "^6.7.1",
278
266
  "base-64": "^1.0.0",
279
267
  "argparse": "^2.0.1",
280
- "theprogrammablemind": "7.12.8-beta.0"
268
+ "theprogrammablemind": "7.12.8-beta.2"
281
269
  },
282
- "version": "7.12.8-beta.0",
270
+ "version": "7.12.8-beta.2",
283
271
  "license": "UNLICENSED"
284
272
  }
@@ -1,582 +0,0 @@
1
- {
2
- "queries": [
3
- "dimension and unit are concepts"
4
- ],
5
- "resultss": [
6
- {
7
- "hierarchy": [
8
- [
9
- "a",
10
- "articlePOS"
11
- ],
12
- [
13
- "articlePOS",
14
- "articlePOS"
15
- ],
16
- [
17
- "between",
18
- "preposition"
19
- ],
20
- [
21
- "canBeDoQuestion",
22
- "canBeDoQuestion"
23
- ],
24
- [
25
- "canBeQuestion",
26
- "canBeQuestion"
27
- ],
28
- [
29
- "concept",
30
- "queryable"
31
- ],
32
- [
33
- "concept",
34
- "theAble"
35
- ],
36
- [
37
- "have",
38
- "canBeDoQuestion"
39
- ],
40
- [
41
- "have",
42
- "canBeQuestion"
43
- ],
44
- [
45
- "hierarchyAble",
46
- "queryable"
47
- ],
48
- [
49
- "ifAble",
50
- "ifAble"
51
- ],
52
- [
53
- "is",
54
- "canBeQuestion"
55
- ],
56
- [
57
- "is",
58
- "verby"
59
- ],
60
- [
61
- "it",
62
- "pronoun"
63
- ],
64
- [
65
- "it",
66
- "queryable"
67
- ],
68
- [
69
- "it",
70
- "thisitthat"
71
- ],
72
- [
73
- "it",
74
- "toAble"
75
- ],
76
- [
77
- "modifies",
78
- "verby"
79
- ],
80
- [
81
- "notAble",
82
- "notAble"
83
- ],
84
- [
85
- "noun",
86
- "theAble"
87
- ],
88
- [
89
- "object",
90
- "queryable"
91
- ],
92
- [
93
- "object",
94
- "theAble"
95
- ],
96
- [
97
- "orAble",
98
- "ifAble"
99
- ],
100
- [
101
- "preposition",
102
- "preposition"
103
- ],
104
- [
105
- "pronoun",
106
- "pronoun"
107
- ],
108
- [
109
- "property",
110
- "queryable"
111
- ],
112
- [
113
- "property",
114
- "theAble"
115
- ],
116
- [
117
- "property",
118
- "unknown"
119
- ],
120
- [
121
- "punctuation",
122
- "punctuation"
123
- ],
124
- [
125
- "queryable",
126
- "queryable"
127
- ],
128
- [
129
- "questionMark",
130
- "punctuation"
131
- ],
132
- [
133
- "readonly",
134
- "queryable"
135
- ],
136
- [
137
- "reason",
138
- "queryable"
139
- ],
140
- [
141
- "reason",
142
- "theAble"
143
- ],
144
- [
145
- "that",
146
- "thisitthat"
147
- ],
148
- [
149
- "the",
150
- "articlePOS"
151
- ],
152
- [
153
- "theAble",
154
- "theAble"
155
- ],
156
- [
157
- "this",
158
- "pronoun"
159
- ],
160
- [
161
- "this",
162
- "queryable"
163
- ],
164
- [
165
- "this",
166
- "thisitthat"
167
- ],
168
- [
169
- "thisitthat",
170
- "queryable"
171
- ],
172
- [
173
- "to",
174
- "preposition"
175
- ],
176
- [
177
- "toAble",
178
- "toAble"
179
- ],
180
- [
181
- "type",
182
- "property"
183
- ],
184
- [
185
- "type",
186
- "whatAble"
187
- ],
188
- [
189
- "unknown",
190
- "hierarchyAble"
191
- ],
192
- [
193
- "unknown",
194
- "notAble"
195
- ],
196
- [
197
- "unknown",
198
- "object"
199
- ],
200
- [
201
- "unknown",
202
- "queryable"
203
- ],
204
- [
205
- "unknown",
206
- "theAble"
207
- ],
208
- [
209
- "verby",
210
- "verby"
211
- ],
212
- [
213
- "what",
214
- "object"
215
- ],
216
- [
217
- "what",
218
- "queryable"
219
- ],
220
- [
221
- "whatAble",
222
- "queryable"
223
- ],
224
- [
225
- "whose",
226
- "object"
227
- ],
228
- [
229
- "xfx",
230
- "queryable"
231
- ]
232
- ],
233
- "metadata": {
234
- "opChoices": [
235
- {
236
- "op": [
237
- "unknown",
238
- 0
239
- ],
240
- "ops": [
241
- [
242
- "unknown",
243
- 0
244
- ],
245
- [
246
- "unknown",
247
- 0
248
- ],
249
- [
250
- "is",
251
- 0
252
- ],
253
- [
254
- "unknown",
255
- 0
256
- ],
257
- [
258
- "list",
259
- 0
260
- ]
261
- ],
262
- "counter": 1
263
- },
264
- {
265
- "op": [
266
- "unknown",
267
- 0
268
- ],
269
- "ops": [
270
- [
271
- "unknown",
272
- 0
273
- ],
274
- [
275
- "is",
276
- 0
277
- ],
278
- [
279
- "unknown",
280
- 0
281
- ],
282
- [
283
- "list",
284
- 0
285
- ]
286
- ],
287
- "counter": 2
288
- },
289
- {
290
- "op": [
291
- "unknown",
292
- 0
293
- ],
294
- "ops": [
295
- [
296
- "is",
297
- 0
298
- ],
299
- [
300
- "unknown",
301
- 0
302
- ],
303
- [
304
- "list",
305
- 0
306
- ]
307
- ],
308
- "counter": 3
309
- },
310
- {
311
- "op": [
312
- "list",
313
- 0
314
- ],
315
- "ops": [
316
- [
317
- "is",
318
- 0
319
- ],
320
- [
321
- "list",
322
- 0
323
- ]
324
- ],
325
- "counter": 4
326
- },
327
- {
328
- "op": [
329
- "is",
330
- 0
331
- ],
332
- "ops": [
333
- [
334
- "is",
335
- 0
336
- ]
337
- ],
338
- "counter": 5
339
- },
340
- {
341
- "op": [
342
- "is",
343
- 1
344
- ],
345
- "ops": [
346
- [
347
- "is",
348
- 1
349
- ]
350
- ],
351
- "counter": 6
352
- }
353
- ]
354
- },
355
- "trace": "undefined",
356
- "contexts": [
357
- {
358
- "number": "many",
359
- "text": "dimension and unit are concepts",
360
- "marker": "is",
361
- "word": "are",
362
- "range": {
363
- "start": 0,
364
- "end": 30
365
- },
366
- "one": {
367
- "number": "many",
368
- "marker": "list",
369
- "default": true,
370
- "word": "and",
371
- "text": "dimension and unit",
372
- "range": {
373
- "start": 0,
374
- "end": 30
375
- },
376
- "types": [
377
- "list",
378
- "type"
379
- ],
380
- "listable": true,
381
- "isList": true,
382
- "value": [
383
- {
384
- "marker": "type",
385
- "range": {
386
- "start": 0,
387
- "end": 8
388
- },
389
- "word": "dimension",
390
- "text": "dimension",
391
- "value": "dimension",
392
- "unknown": true,
393
- "dead": true,
394
- "level": 1
395
- },
396
- {
397
- "marker": "type",
398
- "range": {
399
- "start": 14,
400
- "end": 17
401
- },
402
- "word": "unit",
403
- "text": "unit",
404
- "value": "unit",
405
- "unknown": true,
406
- "dead": true,
407
- "level": 1
408
- }
409
- ],
410
- "level": 1
411
- },
412
- "two": {
413
- "marker": "unknown",
414
- "range": {
415
- "start": 23,
416
- "end": 30
417
- },
418
- "word": "concepts",
419
- "text": "concepts",
420
- "value": "concepts",
421
- "unknown": true,
422
- "dead": true,
423
- "types": [
424
- "unknown"
425
- ],
426
- "level": 1,
427
- "concept": true
428
- },
429
- "dead": true,
430
- "level": 2,
431
- "topLevel": true,
432
- "touchedBy": [
433
- "dimensionTemplate#call2"
434
- ]
435
- }
436
- ],
437
- "generated": [
438
- ""
439
- ],
440
- "paraphrases": [
441
- "dimension and unit are concepts"
442
- ],
443
- "paraphrasesParenthesized": [],
444
- "generatedParenthesized": [],
445
- "responses": [
446
- ""
447
- ],
448
- "associations": [
449
- [
450
- [
451
- "is",
452
- 0
453
- ],
454
- [
455
- "list",
456
- 0
457
- ],
458
- [
459
- "unknown",
460
- 0
461
- ]
462
- ],
463
- [
464
- [
465
- "is",
466
- 0
467
- ],
468
- [
469
- "list",
470
- 0
471
- ],
472
- [
473
- "unknown",
474
- 0
475
- ],
476
- [
477
- "unknown",
478
- 1
479
- ]
480
- ],
481
- [
482
- [
483
- "is",
484
- 0
485
- ],
486
- [
487
- "list",
488
- 0
489
- ],
490
- [
491
- "unknown",
492
- 1
493
- ]
494
- ],
495
- [
496
- [
497
- "is",
498
- 0
499
- ],
500
- [
501
- "list",
502
- 1
503
- ],
504
- [
505
- "unknown",
506
- 1
507
- ]
508
- ]
509
- ],
510
- "learned_contextual_priorities": [],
511
- "query": "dimension and unit are concepts",
512
- "key": {
513
- "query": "dimension and unit are concepts"
514
- }
515
- }
516
- ],
517
- "fragments": [],
518
- "semantics": [],
519
- "associations": [
520
- [
521
- [
522
- "is",
523
- 0
524
- ],
525
- [
526
- "list",
527
- 0
528
- ],
529
- [
530
- "unknown",
531
- 0
532
- ]
533
- ],
534
- [
535
- [
536
- "is",
537
- 0
538
- ],
539
- [
540
- "list",
541
- 0
542
- ],
543
- [
544
- "unknown",
545
- 0
546
- ],
547
- [
548
- "unknown",
549
- 1
550
- ]
551
- ],
552
- [
553
- [
554
- "is",
555
- 0
556
- ],
557
- [
558
- "list",
559
- 0
560
- ],
561
- [
562
- "unknown",
563
- 1
564
- ]
565
- ],
566
- [
567
- [
568
- "is",
569
- 0
570
- ],
571
- [
572
- "list",
573
- 1
574
- ],
575
- [
576
- "unknown",
577
- 1
578
- ]
579
- ]
580
- ],
581
- "learned_contextual_priorities": []
582
- }
@@ -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,2 +0,0 @@
1
- [
2
- ]