tpmkms_4wp 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,18 +1,270 @@
1
1
  {
2
- "queries": [
3
- "dimension and unit are concepts"
2
+ "configs": [
3
+ "dimension and unit are concepts",
4
+ {
5
+ "name": "dimension",
6
+ "operators": [
7
+ "([dimension])",
8
+ "([unit])",
9
+ "((amount/1 || number/1) [amountOfDimension|] ([unit]))",
10
+ "(([amount]) [unit])",
11
+ "((dimension/1) [convertToUnits|in] (unit/1))",
12
+ "(([number]) [degree])",
13
+ {
14
+ "pattern": "([length])",
15
+ "development": true
16
+ }
17
+ ],
18
+ "priorities": [
19
+ {
20
+ "context": [
21
+ [
22
+ "amountOfDimension",
23
+ 0
24
+ ],
25
+ [
26
+ "convertToUnits",
27
+ 0
28
+ ]
29
+ ],
30
+ "choose": [
31
+ 0
32
+ ]
33
+ }
34
+ ],
35
+ "hierarchy": [
36
+ {
37
+ "child": "convertToUnits",
38
+ "parent": "testingValue",
39
+ "development": true
40
+ }
41
+ ],
42
+ "generators": [
43
+ {
44
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:77",
45
+ "match": "({context}) => context.marker == 'noconversion'",
46
+ "apply": "({context, gp}) => `there is no conversion between ${gp(context.from)} and ${gp(context.to)}`"
47
+ }
48
+ ],
49
+ "bridges": [
50
+ {
51
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:84",
52
+ "id": "dimension",
53
+ "isA": [],
54
+ "generatorpr": {}
55
+ },
56
+ {
57
+ "id": "length",
58
+ "isA": [
59
+ "dimension"
60
+ ],
61
+ "development": true
62
+ },
63
+ {
64
+ "id": "amount"
65
+ },
66
+ {
67
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:104",
68
+ "id": "degree",
69
+ "words": [
70
+ {
71
+ "word": "degrees",
72
+ "number": "many"
73
+ }
74
+ ],
75
+ "isA": [
76
+ "amount"
77
+ ],
78
+ "generatorp": "({context, g}) => (context.amount) ? `${g(context.amount)} ${context.word}` : context.word",
79
+ "bridge": "{ ...next(operator), value: before[0].value, amount: before[0] }"
80
+ },
81
+ {
82
+ "id": "amountOfDimension",
83
+ "convolution": true,
84
+ "bridge": "{ marker: operator('dimension'), unit: after[0], value: before[0].value, amount: before[0] }"
85
+ },
86
+ {
87
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:117",
88
+ "id": "convertToUnits",
89
+ "bridge": "{ ...next(operator), from: before[0], to: after[0] }",
90
+ "isA": [
91
+ "expression",
92
+ "queryable"
93
+ ],
94
+ "after": [
95
+ [
96
+ "possession",
97
+ 0
98
+ ],
99
+ [
100
+ "possession",
101
+ 1
102
+ ]
103
+ ],
104
+ "generatorp": "({context, g}) => `${g(context.from)} ${context.word} ${g(context.to)}`",
105
+ "evaluator": "({context, kms, e, error}) => {\n /*\n error(({context, e}) => {\n context.evalue = 'dont know...'\n })\n */\n const from = context.from;\n const to = context.to;\n let evalue;\n let efrom = from\n if (!from.unit) {\n efrom = e(from).evalue\n }\n if (to.value == efrom.unit.value) {\n evalue = efrom.amount\n } else {\n const formula = kms.formulas.api.get(to, [efrom.unit])\n if (!formula) {\n const reason = { marker: 'reason', focusableForPhrase: true, evalue: { marker: 'noconversion', from: efrom.unit, to } }\n kms.stm.api.mentioned(reason)\n error(reason)\n }\n kms.stm.api.setVariable(efrom.unit.value, efrom.amount)\n evalue = e(formula)\n }\n /*\n '{\n \"marker\":\"dimension\",\n \"unit\":{\"marker\":\"unit\",\"range\":{\"start\":19,\"end\":25},\"word\":\"celcius\",\"text\":\"celcius\",\"value\":\"celcius\",\"unknown\":true,\"types\":[\"unit\",\"unknown\"]},\n \"value\":10,\n \"amount\":{\"word\":\"degrees\",\"number\":\"many\",\"text\":\"10 degrees\",\"marker\":\"degree\",\"range\":{\"start\":8,\"end\":17},\"value\":10,\"amount\":{\"value\":10,\"text\":\"10\",\"marker\":\"number\",\"word\":\"10\",\"range\":{\"start\":8,\"end\":9},\"types\":[\"number\"]}},\n \"text\":\"10 degrees celcius\",\"range\":{\"start\":8,\"end\":25}}'\n */\n context.evalue = { \n paraphrase: true,\n marker: 'dimension',\n level: 1,\n unit: to,\n amount: { evalue, paraphrase: undefined }\n }\n }"
106
+ },
107
+ {
108
+ "id": "unit"
109
+ }
110
+ ]
111
+ }
4
112
  ],
5
113
  "resultss": [
6
114
  {
7
115
  "hierarchy": [
116
+ [
117
+ "*",
118
+ "hierarchyAble"
119
+ ],
120
+ [
121
+ "*",
122
+ "isEdee"
123
+ ],
124
+ [
125
+ "*",
126
+ "isEder"
127
+ ],
128
+ [
129
+ "*",
130
+ "mathematical_operator"
131
+ ],
132
+ [
133
+ "*",
134
+ "object"
135
+ ],
136
+ [
137
+ "*",
138
+ "property"
139
+ ],
140
+ [
141
+ "*",
142
+ "queryable"
143
+ ],
144
+ [
145
+ "*",
146
+ "theAble"
147
+ ],
148
+ [
149
+ "+",
150
+ "hierarchyAble"
151
+ ],
152
+ [
153
+ "+",
154
+ "isEdee"
155
+ ],
156
+ [
157
+ "+",
158
+ "isEder"
159
+ ],
160
+ [
161
+ "+",
162
+ "mathematical_operator"
163
+ ],
164
+ [
165
+ "+",
166
+ "object"
167
+ ],
168
+ [
169
+ "+",
170
+ "property"
171
+ ],
172
+ [
173
+ "+",
174
+ "queryable"
175
+ ],
176
+ [
177
+ "+",
178
+ "theAble"
179
+ ],
180
+ [
181
+ "-",
182
+ "hierarchyAble"
183
+ ],
184
+ [
185
+ "-",
186
+ "isEdee"
187
+ ],
188
+ [
189
+ "-",
190
+ "isEder"
191
+ ],
192
+ [
193
+ "-",
194
+ "mathematical_operator"
195
+ ],
196
+ [
197
+ "-",
198
+ "object"
199
+ ],
200
+ [
201
+ "-",
202
+ "property"
203
+ ],
204
+ [
205
+ "-",
206
+ "queryable"
207
+ ],
208
+ [
209
+ "-",
210
+ "theAble"
211
+ ],
212
+ [
213
+ "/",
214
+ "hierarchyAble"
215
+ ],
216
+ [
217
+ "/",
218
+ "isEdee"
219
+ ],
220
+ [
221
+ "/",
222
+ "isEder"
223
+ ],
224
+ [
225
+ "/",
226
+ "mathematical_operator"
227
+ ],
228
+ [
229
+ "/",
230
+ "object"
231
+ ],
232
+ [
233
+ "/",
234
+ "property"
235
+ ],
236
+ [
237
+ "/",
238
+ "queryable"
239
+ ],
240
+ [
241
+ "/",
242
+ "theAble"
243
+ ],
8
244
  [
9
245
  "a",
10
246
  "articlePOS"
11
247
  ],
248
+ [
249
+ "adjective",
250
+ "adjective"
251
+ ],
252
+ [
253
+ "all",
254
+ "quantifier"
255
+ ],
12
256
  [
13
257
  "articlePOS",
14
258
  "articlePOS"
15
259
  ],
260
+ [
261
+ "between",
262
+ "preposition"
263
+ ],
264
+ [
265
+ "calculate",
266
+ "verby"
267
+ ],
16
268
  [
17
269
  "canBeDoQuestion",
18
270
  "canBeDoQuestion"
@@ -29,6 +281,74 @@
29
281
  "concept",
30
282
  "theAble"
31
283
  ],
284
+ [
285
+ "condition",
286
+ "condition"
287
+ ],
288
+ [
289
+ "countable",
290
+ "hierarchyAble"
291
+ ],
292
+ [
293
+ "divideByExpression",
294
+ "mathematicalExpression"
295
+ ],
296
+ [
297
+ "divideByOperator",
298
+ "mathematicalOperator"
299
+ ],
300
+ [
301
+ "expression",
302
+ "expression"
303
+ ],
304
+ [
305
+ "forVariable",
306
+ "preposition"
307
+ ],
308
+ [
309
+ "formula",
310
+ "concept"
311
+ ],
312
+ [
313
+ "formula",
314
+ "hierarchyAble"
315
+ ],
316
+ [
317
+ "formula",
318
+ "isEdee"
319
+ ],
320
+ [
321
+ "formula",
322
+ "isEder"
323
+ ],
324
+ [
325
+ "formula",
326
+ "object"
327
+ ],
328
+ [
329
+ "formula",
330
+ "property"
331
+ ],
332
+ [
333
+ "formula",
334
+ "queryable"
335
+ ],
336
+ [
337
+ "formula",
338
+ "theAble"
339
+ ],
340
+ [
341
+ "formulaForVariable",
342
+ "preposition"
343
+ ],
344
+ [
345
+ "formulaForVariable",
346
+ "queryable"
347
+ ],
348
+ [
349
+ "hasCountOfPieces",
350
+ "countable"
351
+ ],
32
352
  [
33
353
  "have",
34
354
  "canBeDoQuestion"
@@ -41,6 +361,10 @@
41
361
  "hierarchyAble",
42
362
  "queryable"
43
363
  ],
364
+ [
365
+ "highest",
366
+ "condition"
367
+ ],
44
368
  [
45
369
  "ifAble",
46
370
  "ifAble"
@@ -50,8 +374,16 @@
50
374
  "canBeQuestion"
51
375
  ],
52
376
  [
53
- "isEd",
54
- "isEd"
377
+ "is",
378
+ "verby"
379
+ ],
380
+ [
381
+ "isEdee",
382
+ "isEdee"
383
+ ],
384
+ [
385
+ "isEder",
386
+ "isEder"
55
387
  ],
56
388
  [
57
389
  "it",
@@ -69,10 +401,126 @@
69
401
  "it",
70
402
  "toAble"
71
403
  ],
404
+ [
405
+ "lowest",
406
+ "condition"
407
+ ],
408
+ [
409
+ "mathematical",
410
+ "hierarchyAble"
411
+ ],
412
+ [
413
+ "mathematical",
414
+ "isEdee"
415
+ ],
416
+ [
417
+ "mathematical",
418
+ "isEder"
419
+ ],
420
+ [
421
+ "mathematical",
422
+ "object"
423
+ ],
424
+ [
425
+ "mathematical",
426
+ "operator_modifier"
427
+ ],
428
+ [
429
+ "mathematical",
430
+ "property"
431
+ ],
432
+ [
433
+ "mathematical",
434
+ "queryable"
435
+ ],
436
+ [
437
+ "mathematical",
438
+ "theAble"
439
+ ],
440
+ [
441
+ "mathematicalExpression",
442
+ "concept"
443
+ ],
444
+ [
445
+ "mathematicalExpression",
446
+ "expression"
447
+ ],
448
+ [
449
+ "mathematicalExpression",
450
+ "number"
451
+ ],
452
+ [
453
+ "mathematicalOperator",
454
+ "mathematicalOperator"
455
+ ],
456
+ [
457
+ "mathematical_operator",
458
+ "adjective"
459
+ ],
460
+ [
461
+ "mathematical_operator",
462
+ "concept"
463
+ ],
464
+ [
465
+ "mathematical_operator",
466
+ "hierarchyAble"
467
+ ],
468
+ [
469
+ "mathematical_operator",
470
+ "isEdee"
471
+ ],
472
+ [
473
+ "mathematical_operator",
474
+ "isEder"
475
+ ],
476
+ [
477
+ "mathematical_operator",
478
+ "object"
479
+ ],
480
+ [
481
+ "mathematical_operator",
482
+ "operator"
483
+ ],
484
+ [
485
+ "mathematical_operator",
486
+ "property"
487
+ ],
488
+ [
489
+ "mathematical_operator",
490
+ "queryable"
491
+ ],
492
+ [
493
+ "mathematical_operator",
494
+ "theAble"
495
+ ],
496
+ [
497
+ "minusExpression",
498
+ "mathematicalExpression"
499
+ ],
500
+ [
501
+ "minusOperator",
502
+ "mathematicalOperator"
503
+ ],
504
+ [
505
+ "modifies",
506
+ "verby"
507
+ ],
72
508
  [
73
509
  "notAble",
74
510
  "notAble"
75
511
  ],
512
+ [
513
+ "noun",
514
+ "theAble"
515
+ ],
516
+ [
517
+ "number",
518
+ "expression"
519
+ ],
520
+ [
521
+ "number",
522
+ "quantifier"
523
+ ],
76
524
  [
77
525
  "number",
78
526
  "queryable"
@@ -85,10 +533,58 @@
85
533
  "object",
86
534
  "theAble"
87
535
  ],
536
+ [
537
+ "operator",
538
+ "concept"
539
+ ],
540
+ [
541
+ "operator",
542
+ "hierarchyAble"
543
+ ],
544
+ [
545
+ "operator",
546
+ "isEdee"
547
+ ],
548
+ [
549
+ "operator",
550
+ "isEder"
551
+ ],
552
+ [
553
+ "operator",
554
+ "object"
555
+ ],
556
+ [
557
+ "operator",
558
+ "property"
559
+ ],
560
+ [
561
+ "operator",
562
+ "queryable"
563
+ ],
564
+ [
565
+ "operator",
566
+ "theAble"
567
+ ],
568
+ [
569
+ "operator_modifier",
570
+ "operator_modifier"
571
+ ],
88
572
  [
89
573
  "orAble",
90
574
  "ifAble"
91
575
  ],
576
+ [
577
+ "plusExpression",
578
+ "mathematicalExpression"
579
+ ],
580
+ [
581
+ "plusOperator",
582
+ "mathematicalOperator"
583
+ ],
584
+ [
585
+ "preposition",
586
+ "preposition"
587
+ ],
92
588
  [
93
589
  "pronoun",
94
590
  "pronoun"
@@ -105,18 +601,34 @@
105
601
  "property",
106
602
  "unknown"
107
603
  ],
604
+ [
605
+ "punctuation",
606
+ "punctuation"
607
+ ],
608
+ [
609
+ "quantifier",
610
+ "quantifier"
611
+ ],
108
612
  [
109
613
  "queryable",
110
614
  "queryable"
111
615
  ],
112
616
  [
113
617
  "questionMark",
114
- "isEd"
618
+ "punctuation"
115
619
  ],
116
620
  [
117
621
  "readonly",
118
622
  "queryable"
119
623
  ],
624
+ [
625
+ "reason",
626
+ "queryable"
627
+ ],
628
+ [
629
+ "reason",
630
+ "theAble"
631
+ ],
120
632
  [
121
633
  "that",
122
634
  "thisitthat"
@@ -145,6 +657,18 @@
145
657
  "thisitthat",
146
658
  "queryable"
147
659
  ],
660
+ [
661
+ "timesExpression",
662
+ "mathematicalExpression"
663
+ ],
664
+ [
665
+ "timesOperator",
666
+ "mathematicalOperator"
667
+ ],
668
+ [
669
+ "to",
670
+ "preposition"
671
+ ],
148
672
  [
149
673
  "toAble",
150
674
  "toAble"
@@ -177,6 +701,10 @@
177
701
  "unknown",
178
702
  "theAble"
179
703
  ],
704
+ [
705
+ "verby",
706
+ "verby"
707
+ ],
180
708
  [
181
709
  "what",
182
710
  "object"
@@ -193,47 +721,35 @@
193
721
  "whose",
194
722
  "object"
195
723
  ],
724
+ [
725
+ "x",
726
+ "number"
727
+ ],
196
728
  [
197
729
  "xfx",
198
730
  "queryable"
731
+ ],
732
+ [
733
+ "y",
734
+ "number"
199
735
  ]
200
736
  ],
201
- "logs": [
202
- "Undefined word 'dimension'",
203
- "Undefined word 'unit'",
204
- "Undefined word 'concepts'",
205
- "Counter == 2. Applying Operator(list/1, PASS, None, evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['theAble', 'queryable', 'notAble', 'unknown', 'hierarchyAble', 'object']}) bridge(bridge)) failed due to the matchers [Type(variable: 'type')] not being present",
206
- "Counter == 3. Applying Operator(list/1, PASS, None, evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['theAble', 'queryable', 'notAble', 'unknown', 'hierarchyAble', 'object']}) bridge(bridge)) failed due to the matchers [Type(variable: 'type')] not being present",
207
- "Counter == 4. Applying Operator(list/1, PASS, None, evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['theAble', 'queryable', 'notAble', 'unknown', 'hierarchyAble', 'object']}) bridge(bridge)) failed due to the matchers [Type(variable: 'type')] not being present",
208
- "Op choices were: [(('list', 0), [('is', 0), ('unknown', 0)], 1), (('list', 1), [('is', 0), ('unknown', 0)], 2), (('list', 1), [('is', 0), ('unknown', 0)], 2), (('list', 1), [('is', 0), ('unknown', 0), ('unknown', 1)], 3), (('unknown', 0), [('is', 0), ('unknown', 0), ('unknown', 1)], 3), (('list', 1), [('is', 0), ('unknown', 1)], 4), (('is', 0), [('is', 0), ('unknown', 1)], 4), (('is', 1), [('is', 1)], 5)]",
209
- "Contexts used for choosing operators (if the wrong choices were made update the priorities array. Put the expected choice at the end of the list. you can check for loops in the priorities by adding the -cl flag and running a query): \n Context for choosing the operator list/0 was [['is', 0], ['unknown', 0]]. Counter 1\n Context for choosing the operator list/1 was [['is', 0], ['unknown', 0]]. Counter 2\n Context for choosing the operator list/1 was [['is', 0], ['unknown', 0]]. Counter 2\n Context for choosing the operator list/1 was [['is', 0], ['unknown', 0], ['unknown', 1]]. Counter 3\n Context for choosing the operator unknown/0 was [['is', 0], ['unknown', 0], ['unknown', 1]]. Counter 3\n Context for choosing the operator list/1 was [['is', 0], ['unknown', 1]]. Counter 4\n Context for choosing the operator is/0 was [['is', 0], ['unknown', 1]]. Counter 4\n Context for choosing the operator is/1 was [['is', 1]]. Counter 5",
210
- "Associations made with probabilities (each group is a choice point. if the wrong choices were made update the associations list): \n Group 0\n 0.6000000000000001 - [['list', 0], ['unknown', 0], \">>>>2 ['is', 0] <<<<2\", ['unknown', 0]]\n (('unknown', 0), ('is', 0), ('unknown', 0))\n 0.4 - [['list', 0], ['unknown', 0], \">>>>2 ['isEd', 0] <<<<2\", ['unknown', 0]]\n (('list', 0), ('unknown', 0))\n (('unknown', 0), ('isEd', 0))\n Group 1\n 0.5 - [['unknown', 0], \">>>>1 ['isEd', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 0), ('isEd', 0))\n 1.0 - [['unknown', 0], \">>>>1 ['is', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 0), ('is', 0), ('unknown', 0))\n Group 2\n 0.5 - [['unknown', 0], \">>>>1 ['isEd', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 1), ('isEd', 0))\n 1.0 - [['unknown', 0], \">>>>1 ['is', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 1), ('is', 0), ('unknown', 0))\n Group 3\n 1.0 - [['unknown', 0], \">>>>1 ['is', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 1), ('is', 0), ('unknown', 1))\n 0.6666666666666666 - [['unknown', 0], \">>>>1 ['isEd', 0] <<<<1\", ['unknown', 0]]\n (('unknown', 1), ('isEd', 0))\n (('isEd', 0), ('unknown', 1))"
211
- ],
212
737
  "metadata": {
213
738
  "opChoices": [
214
739
  {
215
740
  "op": [
216
- "list",
741
+ "unknown",
217
742
  0
218
743
  ],
219
744
  "ops": [
220
745
  [
221
- "is",
746
+ "unknown",
222
747
  0
223
748
  ],
224
749
  [
225
750
  "unknown",
226
751
  0
227
- ]
228
- ],
229
- "counter": 1
230
- },
231
- {
232
- "op": [
233
- "list",
234
- 1
235
- ],
236
- "ops": [
752
+ ],
237
753
  [
238
754
  "is",
239
755
  0
@@ -241,16 +757,24 @@
241
757
  [
242
758
  "unknown",
243
759
  0
760
+ ],
761
+ [
762
+ "list",
763
+ 0
244
764
  ]
245
765
  ],
246
- "counter": 2
766
+ "counter": 1
247
767
  },
248
768
  {
249
769
  "op": [
250
- "list",
251
- 1
770
+ "unknown",
771
+ 0
252
772
  ],
253
773
  "ops": [
774
+ [
775
+ "unknown",
776
+ 0
777
+ ],
254
778
  [
255
779
  "is",
256
780
  0
@@ -258,14 +782,18 @@
258
782
  [
259
783
  "unknown",
260
784
  0
785
+ ],
786
+ [
787
+ "list",
788
+ 0
261
789
  ]
262
790
  ],
263
791
  "counter": 2
264
792
  },
265
793
  {
266
794
  "op": [
267
- "list",
268
- 1
795
+ "unknown",
796
+ 0
269
797
  ],
270
798
  "ops": [
271
799
  [
@@ -277,15 +805,15 @@
277
805
  0
278
806
  ],
279
807
  [
280
- "unknown",
281
- 1
808
+ "list",
809
+ 0
282
810
  ]
283
811
  ],
284
812
  "counter": 3
285
813
  },
286
814
  {
287
815
  "op": [
288
- "unknown",
816
+ "list",
289
817
  0
290
818
  ],
291
819
  "ops": [
@@ -294,15 +822,11 @@
294
822
  0
295
823
  ],
296
824
  [
297
- "unknown",
825
+ "list",
298
826
  0
299
- ],
300
- [
301
- "unknown",
302
- 1
303
827
  ]
304
828
  ],
305
- "counter": 3
829
+ "counter": 4
306
830
  },
307
831
  {
308
832
  "op": [
@@ -311,15 +835,15 @@
311
835
  ],
312
836
  "ops": [
313
837
  [
314
- "is",
315
- 0
838
+ "list",
839
+ 1
316
840
  ],
317
841
  [
318
- "unknown",
319
- 1
842
+ "is",
843
+ 0
320
844
  ]
321
845
  ],
322
- "counter": 4
846
+ "counter": 5
323
847
  },
324
848
  {
325
849
  "op": [
@@ -330,13 +854,9 @@
330
854
  [
331
855
  "is",
332
856
  0
333
- ],
334
- [
335
- "unknown",
336
- 1
337
857
  ]
338
858
  ],
339
- "counter": 4
859
+ "counter": 6
340
860
  },
341
861
  {
342
862
  "op": [
@@ -349,7 +869,7 @@
349
869
  1
350
870
  ]
351
871
  ],
352
- "counter": 5
872
+ "counter": 7
353
873
  }
354
874
  ]
355
875
  },
@@ -357,7 +877,7 @@
357
877
  "contexts": [
358
878
  {
359
879
  "number": "many",
360
- "text": " are concepts",
880
+ "text": "dimension and unit are concepts",
361
881
  "marker": "is",
362
882
  "word": "are",
363
883
  "range": {
@@ -367,28 +887,33 @@
367
887
  "one": {
368
888
  "number": "many",
369
889
  "marker": "list",
890
+ "listable": true,
370
891
  "value": [
371
892
  {
893
+ "value": "dimension",
894
+ "unknown": true,
895
+ "text": "dimension",
372
896
  "marker": "unknown",
897
+ "word": "dimension",
373
898
  "range": {
374
899
  "start": 0,
375
900
  "end": 8
376
901
  },
377
- "word": "dimension",
378
- "text": "dimension",
379
- "value": "dimension",
380
- "unknown": true
902
+ "dead": true,
903
+ "level": 2
381
904
  },
382
905
  {
906
+ "value": "unit",
907
+ "unknown": true,
908
+ "text": "unit",
383
909
  "marker": "unknown",
910
+ "word": "unit",
384
911
  "range": {
385
912
  "start": 14,
386
913
  "end": 17
387
914
  },
388
- "word": "unit",
389
- "text": "unit",
390
- "value": "unit",
391
- "unknown": true
915
+ "dead": true,
916
+ "level": 2
392
917
  }
393
918
  ],
394
919
  "range": {
@@ -398,35 +923,43 @@
398
923
  "types": [
399
924
  "list",
400
925
  "unknown"
401
- ]
926
+ ],
927
+ "text": "dimension and unit are concepts",
928
+ "level": 1
402
929
  },
403
930
  "two": {
931
+ "value": "concepts",
932
+ "unknown": true,
933
+ "text": "concepts",
404
934
  "marker": "unknown",
935
+ "word": "concepts",
405
936
  "range": {
406
937
  "start": 23,
407
938
  "end": 30
408
939
  },
409
- "word": "concepts",
410
- "text": "concepts",
411
- "value": "concepts",
412
- "unknown": true,
940
+ "dead": true,
413
941
  "types": [
414
942
  "unknown"
415
943
  ],
944
+ "level": 1,
416
945
  "concept": true
417
946
  },
947
+ "dead": true,
948
+ "level": 2,
418
949
  "topLevel": true,
419
950
  "touchedBy": [
420
- "call2"
951
+ "dimension#call2"
421
952
  ]
422
953
  }
423
954
  ],
424
955
  "generated": [
425
- "dimension and unit are concepts"
956
+ ""
426
957
  ],
427
958
  "paraphrases": [
428
959
  "dimension and unit are concepts"
429
960
  ],
961
+ "paraphrasesParenthesized": [],
962
+ "generatedParenthesized": [],
430
963
  "responses": [
431
964
  ""
432
965
  ],
@@ -452,11 +985,29 @@
452
985
  ],
453
986
  [
454
987
  "list",
455
- 1
988
+ 0
456
989
  ],
457
990
  [
458
991
  "unknown",
459
992
  0
993
+ ],
994
+ [
995
+ "unknown",
996
+ 1
997
+ ]
998
+ ],
999
+ [
1000
+ [
1001
+ "is",
1002
+ 0
1003
+ ],
1004
+ [
1005
+ "list",
1006
+ 0
1007
+ ],
1008
+ [
1009
+ "unknown",
1010
+ 1
460
1011
  ]
461
1012
  ],
462
1013
  [
@@ -474,11 +1025,115 @@
474
1025
  ]
475
1026
  ]
476
1027
  ],
477
- "version": "7.5.4-beta.2",
1028
+ "learned_contextual_priorities": [],
478
1029
  "query": "dimension and unit are concepts",
479
1030
  "key": {
480
1031
  "query": "dimension and unit are concepts"
481
1032
  }
1033
+ },
1034
+ {
1035
+ "extraConfig": true,
1036
+ "name": "dimension",
1037
+ "operators": [
1038
+ "([dimension])",
1039
+ "([unit])",
1040
+ "((amount/1 || number/1) [amountOfDimension|] ([unit]))",
1041
+ "(([amount]) [unit])",
1042
+ "((dimension/1) [convertToUnits|in] (unit/1))",
1043
+ "(([number]) [degree])",
1044
+ {
1045
+ "pattern": "([length])",
1046
+ "development": true
1047
+ }
1048
+ ],
1049
+ "priorities": [
1050
+ {
1051
+ "context": [
1052
+ [
1053
+ "amountOfDimension",
1054
+ 0
1055
+ ],
1056
+ [
1057
+ "convertToUnits",
1058
+ 0
1059
+ ]
1060
+ ],
1061
+ "choose": [
1062
+ 0
1063
+ ]
1064
+ }
1065
+ ],
1066
+ "hierarchy": [
1067
+ {
1068
+ "child": "convertToUnits",
1069
+ "parent": "testingValue",
1070
+ "development": true
1071
+ }
1072
+ ],
1073
+ "generators": [
1074
+ {
1075
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:77"
1076
+ }
1077
+ ],
1078
+ "bridges": [
1079
+ {
1080
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:84",
1081
+ "id": "dimension",
1082
+ "isA": [],
1083
+ "generatorpr": {}
1084
+ },
1085
+ {
1086
+ "id": "length",
1087
+ "isA": [
1088
+ "dimension"
1089
+ ],
1090
+ "development": true
1091
+ },
1092
+ {
1093
+ "id": "amount"
1094
+ },
1095
+ {
1096
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:104",
1097
+ "id": "degree",
1098
+ "words": [
1099
+ {
1100
+ "word": "degrees",
1101
+ "number": "many"
1102
+ }
1103
+ ],
1104
+ "isA": [
1105
+ "amount"
1106
+ ],
1107
+ "bridge": "{ ...next(operator), value: before[0].value, amount: before[0] }"
1108
+ },
1109
+ {
1110
+ "id": "amountOfDimension",
1111
+ "convolution": true,
1112
+ "bridge": "{ marker: operator('dimension'), unit: after[0], value: before[0].value, amount: before[0] }"
1113
+ },
1114
+ {
1115
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:117",
1116
+ "id": "convertToUnits",
1117
+ "bridge": "{ ...next(operator), from: before[0], to: after[0] }",
1118
+ "isA": [
1119
+ "expression",
1120
+ "queryable"
1121
+ ],
1122
+ "after": [
1123
+ [
1124
+ "possession",
1125
+ 0
1126
+ ],
1127
+ [
1128
+ "possession",
1129
+ 1
1130
+ ]
1131
+ ]
1132
+ },
1133
+ {
1134
+ "id": "unit"
1135
+ }
1136
+ ]
482
1137
  }
483
1138
  ],
484
1139
  "fragments": [],
@@ -505,11 +1160,29 @@
505
1160
  ],
506
1161
  [
507
1162
  "list",
508
- 1
1163
+ 0
509
1164
  ],
510
1165
  [
511
1166
  "unknown",
512
1167
  0
1168
+ ],
1169
+ [
1170
+ "unknown",
1171
+ 1
1172
+ ]
1173
+ ],
1174
+ [
1175
+ [
1176
+ "is",
1177
+ 0
1178
+ ],
1179
+ [
1180
+ "list",
1181
+ 0
1182
+ ],
1183
+ [
1184
+ "unknown",
1185
+ 1
513
1186
  ]
514
1187
  ],
515
1188
  [
@@ -526,5 +1199,6 @@
526
1199
  1
527
1200
  ]
528
1201
  ]
529
- ]
1202
+ ],
1203
+ "learned_contextual_priorities": []
530
1204
  }