tpmkms_4wp 7.12.8 → 8.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/common/animals.instance.json +192 -406
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -6
  5. package/common/{pipboyTemplate.instance.json → colors.instance.json} +13784 -8900
  6. package/common/colors.js +71 -0
  7. package/common/colors.test.json +4860 -0
  8. package/common/concept.js +2 -2
  9. package/common/crew.instance.json +3945 -3636
  10. package/common/crew.js +5 -3
  11. package/common/currency.js +0 -2
  12. package/common/dialogues.js +152 -20
  13. package/common/dialogues.test.json +1053 -33
  14. package/common/dimension.instance.json +750 -86
  15. package/common/dimension.js +15 -7
  16. package/common/dimension.test.json +289 -312
  17. package/common/edible.instance.json +446 -578
  18. package/common/edible.js +1 -1
  19. package/common/emotions.instance.json +67 -39
  20. package/common/emotions.js +1 -1
  21. package/common/fastfood.instance.json +1769 -2136
  22. package/common/fastfood.js +2 -2
  23. package/common/fastfood.test.json +7941 -3647
  24. package/common/formulas.instance.json +996 -0
  25. package/common/formulas.js +19 -6
  26. package/common/formulas.test.json +504 -2896
  27. package/common/gdefaults.js +2 -0
  28. package/common/help.js +7 -2
  29. package/common/help.test.json +18 -10
  30. package/common/helpers/concept.js +29 -9
  31. package/common/helpers/dialogues.js +17 -1
  32. package/common/helpers/formulas.js +0 -14
  33. package/common/helpers/meta.js +0 -1
  34. package/common/helpers/properties.js +6 -13
  35. package/common/helpers.js +5 -0
  36. package/common/javascript.js +8 -6
  37. package/common/kirk.instance.json +5 -1
  38. package/common/kirk.js +1 -1
  39. package/common/length.instance.json +417 -811
  40. package/common/length.js +1 -1
  41. package/common/math.instance.json +1938 -1
  42. package/common/math.js +17 -5
  43. package/common/meta.instance.json +1 -1
  44. package/common/meta.js +33 -10
  45. package/common/numbers.js +28 -24
  46. package/common/ordering.instance.json +98 -138
  47. package/common/ordering.js +1 -1
  48. package/common/people.instance.json +68 -121
  49. package/common/people.js +1 -1
  50. package/common/pipboy.instance.json +23411 -1076
  51. package/common/pipboy.js +31 -4
  52. package/common/pipboy.test.json +13 -9
  53. package/common/pokemon.instance.json +172 -223
  54. package/common/pokemon.js +1 -1
  55. package/common/pressure.instance.json +131 -81
  56. package/common/pressure.js +1 -1
  57. package/common/properties.instance.json +25 -49
  58. package/common/properties.js +20 -15
  59. package/common/properties.test.json +17605 -4030
  60. package/common/punctuation.js +8 -0
  61. package/common/punctuation.test.json +233 -5
  62. package/common/reports.instance.json +33 -65
  63. package/common/reports.js +9 -9
  64. package/common/scorekeeper.instance.json +1 -1
  65. package/common/scorekeeper.js +9 -7
  66. package/common/sizeable.js +7 -2
  67. package/common/spock.instance.json +5 -1
  68. package/common/spock.js +1 -1
  69. package/common/stm.js +16 -5
  70. package/common/tell.js +4 -2
  71. package/common/temperature.instance.json +142 -252
  72. package/common/temperature.js +1 -1
  73. package/common/testing.js +0 -1
  74. package/common/time.js +36 -20
  75. package/common/time.test.json +66 -44
  76. package/common/tokenize.js +47 -0
  77. package/common/tokenize.test.json +87 -0
  78. package/common/ui.instance.json +13 -1
  79. package/common/ui.js +0 -1
  80. package/common/weight.instance.json +335 -228
  81. package/common/weight.js +1 -1
  82. package/common/weight.test.json +242 -238
  83. package/main.js +6 -8
  84. package/package.json +10 -18
  85. package/common/dimensionTemplate.instance.json +0 -582
  86. package/common/dimensionTemplate.js +0 -35
  87. package/common/dimensionTemplate.test.json +0 -2
  88. package/common/formulasTemplate.instance.json +0 -483
  89. package/common/formulasTemplate.js +0 -30
  90. package/common/formulasTemplate.test.json +0 -2
  91. package/common/mathTemplate.instance.json +0 -1635
  92. package/common/mathTemplate.js +0 -32
  93. package/common/mathTemplate.test.json +0 -1422
  94. package/common/pipboyTemplate.js +0 -48
  95. package/common/pipboyTemplate.test.json +0 -2
@@ -0,0 +1,996 @@
1
+ {
2
+ "configs": [
3
+ "formulas are concepts",
4
+ {
5
+ "name": "formulas",
6
+ "operators": [
7
+ "([formula])",
8
+ "([solve] (equals/1) ([forVariable|for]) (variable))",
9
+ "(([formula]) [formulaForVariable|] ([forVariable|]) (variable))",
10
+ "([calculate] ([expression]))",
11
+ "(([expression]) [equals] ([expression]))"
12
+ ],
13
+ "priorities": [
14
+ {
15
+ "context": [
16
+ [
17
+ "mathematicalOperator",
18
+ 0
19
+ ],
20
+ [
21
+ "number",
22
+ 0
23
+ ]
24
+ ],
25
+ "choose": [
26
+ 0
27
+ ]
28
+ }
29
+ ],
30
+ "semantics": [
31
+ {
32
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:109",
33
+ "match": "({context, api}) => context.evaluate && api.get(context)",
34
+ "apply": "({context, api, e}) => {\n const { formula } = api.get(context)\n // console.log('greg24 -----------', JSON.stringify(formula, null, 2))\n context.evalue = e(formula) \n }"
35
+ }
36
+ ],
37
+ "bridges": [
38
+ {
39
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:120",
40
+ "id": "formulaForVariable",
41
+ "isA": [
42
+ "preposition",
43
+ "queryable"
44
+ ],
45
+ "convolution": true,
46
+ "bridge": "{ number: before[0].number, ...next(operator), what: before[0], equality: after[0], variable: after[1] }",
47
+ "generatorp": "({context, g}) => `${g(context.what)} ${g(context.equality)} ${g(context.variable)}`",
48
+ "evaluator": "({context, api, objects}) => {\n const formulas = api.gets(context.variable).map((f) => { return { ...f.equality, paraphrase: true } })\n context.evalue = { marker: 'list', value: formulas }\n }"
49
+ },
50
+ {
51
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:132",
52
+ "id": "solve",
53
+ "bridge": "{ ...next(operator), equality: after[0], variable: after[2] }",
54
+ "generatorp": "({context, gp}) => `${context.word} ${gp(context.equality)} for ${gp(context.variable)}`",
55
+ "semantic": "({context}) => {\n context.response = solveFor(context.equality, context.variable)\n context.isResponse = true\n context.value = null\n if (!context.response) {\n // TODO some KM for talking to the user wrt brief+avatar\n context.verbatim = `Solving failed`\n }\n }"
56
+ },
57
+ {
58
+ "id": "forVariable",
59
+ "isA": [
60
+ "preposition"
61
+ ]
62
+ },
63
+ {
64
+ "id": "formula"
65
+ },
66
+ {
67
+ "id": "expression",
68
+ "children": [
69
+ "mathematicalExpression",
70
+ "number"
71
+ ],
72
+ "before": [
73
+ "verby"
74
+ ]
75
+ },
76
+ {
77
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:159",
78
+ "id": "calculate",
79
+ "isA": [
80
+ "verby"
81
+ ],
82
+ "bridge": "{ ...next(operator), expression: after[0] }",
83
+ "generatorp": "({context, g}) => `${context.word} ${g(context.expression)}`",
84
+ "localHierarchy": [
85
+ [
86
+ "unknown",
87
+ "expression"
88
+ ]
89
+ ],
90
+ "semantic": "({context, e}) => {\n context.evalue = e(context.expression)\n context.isResponse = true\n }"
91
+ },
92
+ {
93
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:171",
94
+ "id": "equals",
95
+ "bridge": "{ ...next(operator), left: before[0], right: after[0] }",
96
+ "words": [
97
+ "="
98
+ ],
99
+ "after": [
100
+ "mathematicalOperator"
101
+ ],
102
+ "localHierarchy": [
103
+ [
104
+ "unknown",
105
+ "expression"
106
+ ]
107
+ ],
108
+ "generatorp": "({context, gp}) => `${gp(context.left)} ${context.word} ${gp(context.right)}`",
109
+ "semantic": "({context, api}) => {\n // TODO make sure left is a single name\n // TODO calculate invertable formulas?\n api.add(context.left, context.right, context)\n }"
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "resultss": [
115
+ {
116
+ "hierarchy": [
117
+ [
118
+ "*",
119
+ "hierarchyAble"
120
+ ],
121
+ [
122
+ "*",
123
+ "isEdee"
124
+ ],
125
+ [
126
+ "*",
127
+ "isEder"
128
+ ],
129
+ [
130
+ "*",
131
+ "mathematical_operator"
132
+ ],
133
+ [
134
+ "*",
135
+ "object"
136
+ ],
137
+ [
138
+ "*",
139
+ "property"
140
+ ],
141
+ [
142
+ "*",
143
+ "queryable"
144
+ ],
145
+ [
146
+ "*",
147
+ "theAble"
148
+ ],
149
+ [
150
+ "+",
151
+ "hierarchyAble"
152
+ ],
153
+ [
154
+ "+",
155
+ "isEdee"
156
+ ],
157
+ [
158
+ "+",
159
+ "isEder"
160
+ ],
161
+ [
162
+ "+",
163
+ "mathematical_operator"
164
+ ],
165
+ [
166
+ "+",
167
+ "object"
168
+ ],
169
+ [
170
+ "+",
171
+ "property"
172
+ ],
173
+ [
174
+ "+",
175
+ "queryable"
176
+ ],
177
+ [
178
+ "+",
179
+ "theAble"
180
+ ],
181
+ [
182
+ "-",
183
+ "hierarchyAble"
184
+ ],
185
+ [
186
+ "-",
187
+ "isEdee"
188
+ ],
189
+ [
190
+ "-",
191
+ "isEder"
192
+ ],
193
+ [
194
+ "-",
195
+ "mathematical_operator"
196
+ ],
197
+ [
198
+ "-",
199
+ "object"
200
+ ],
201
+ [
202
+ "-",
203
+ "property"
204
+ ],
205
+ [
206
+ "-",
207
+ "queryable"
208
+ ],
209
+ [
210
+ "-",
211
+ "theAble"
212
+ ],
213
+ [
214
+ "/",
215
+ "hierarchyAble"
216
+ ],
217
+ [
218
+ "/",
219
+ "isEdee"
220
+ ],
221
+ [
222
+ "/",
223
+ "isEder"
224
+ ],
225
+ [
226
+ "/",
227
+ "mathematical_operator"
228
+ ],
229
+ [
230
+ "/",
231
+ "object"
232
+ ],
233
+ [
234
+ "/",
235
+ "property"
236
+ ],
237
+ [
238
+ "/",
239
+ "queryable"
240
+ ],
241
+ [
242
+ "/",
243
+ "theAble"
244
+ ],
245
+ [
246
+ "a",
247
+ "articlePOS"
248
+ ],
249
+ [
250
+ "adjective",
251
+ "adjective"
252
+ ],
253
+ [
254
+ "all",
255
+ "quantifier"
256
+ ],
257
+ [
258
+ "articlePOS",
259
+ "articlePOS"
260
+ ],
261
+ [
262
+ "between",
263
+ "preposition"
264
+ ],
265
+ [
266
+ "canBeDoQuestion",
267
+ "canBeDoQuestion"
268
+ ],
269
+ [
270
+ "canBeQuestion",
271
+ "canBeQuestion"
272
+ ],
273
+ [
274
+ "concept",
275
+ "queryable"
276
+ ],
277
+ [
278
+ "concept",
279
+ "theAble"
280
+ ],
281
+ [
282
+ "condition",
283
+ "condition"
284
+ ],
285
+ [
286
+ "countable",
287
+ "hierarchyAble"
288
+ ],
289
+ [
290
+ "divideByExpression",
291
+ "mathematicalExpression"
292
+ ],
293
+ [
294
+ "divideByOperator",
295
+ "mathematicalOperator"
296
+ ],
297
+ [
298
+ "doubleQuote",
299
+ "queryable"
300
+ ],
301
+ [
302
+ "hasCountOfPieces",
303
+ "countable"
304
+ ],
305
+ [
306
+ "have",
307
+ "canBeDoQuestion"
308
+ ],
309
+ [
310
+ "have",
311
+ "canBeQuestion"
312
+ ],
313
+ [
314
+ "hierarchyAble",
315
+ "queryable"
316
+ ],
317
+ [
318
+ "highest",
319
+ "condition"
320
+ ],
321
+ [
322
+ "ifAble",
323
+ "ifAble"
324
+ ],
325
+ [
326
+ "is",
327
+ "canBeQuestion"
328
+ ],
329
+ [
330
+ "is",
331
+ "verby"
332
+ ],
333
+ [
334
+ "isEdee",
335
+ "isEdee"
336
+ ],
337
+ [
338
+ "isEder",
339
+ "isEder"
340
+ ],
341
+ [
342
+ "it",
343
+ "pronoun"
344
+ ],
345
+ [
346
+ "it",
347
+ "queryable"
348
+ ],
349
+ [
350
+ "it",
351
+ "thisitthat"
352
+ ],
353
+ [
354
+ "it",
355
+ "toAble"
356
+ ],
357
+ [
358
+ "lowest",
359
+ "condition"
360
+ ],
361
+ [
362
+ "mathematical",
363
+ "hierarchyAble"
364
+ ],
365
+ [
366
+ "mathematical",
367
+ "isEdee"
368
+ ],
369
+ [
370
+ "mathematical",
371
+ "isEder"
372
+ ],
373
+ [
374
+ "mathematical",
375
+ "object"
376
+ ],
377
+ [
378
+ "mathematical",
379
+ "operator_modifier"
380
+ ],
381
+ [
382
+ "mathematical",
383
+ "property"
384
+ ],
385
+ [
386
+ "mathematical",
387
+ "queryable"
388
+ ],
389
+ [
390
+ "mathematical",
391
+ "theAble"
392
+ ],
393
+ [
394
+ "mathematicalExpression",
395
+ "concept"
396
+ ],
397
+ [
398
+ "mathematicalExpression",
399
+ "number"
400
+ ],
401
+ [
402
+ "mathematicalOperator",
403
+ "mathematicalOperator"
404
+ ],
405
+ [
406
+ "mathematical_operator",
407
+ "adjective"
408
+ ],
409
+ [
410
+ "mathematical_operator",
411
+ "concept"
412
+ ],
413
+ [
414
+ "mathematical_operator",
415
+ "hierarchyAble"
416
+ ],
417
+ [
418
+ "mathematical_operator",
419
+ "isEdee"
420
+ ],
421
+ [
422
+ "mathematical_operator",
423
+ "isEder"
424
+ ],
425
+ [
426
+ "mathematical_operator",
427
+ "object"
428
+ ],
429
+ [
430
+ "mathematical_operator",
431
+ "operator"
432
+ ],
433
+ [
434
+ "mathematical_operator",
435
+ "property"
436
+ ],
437
+ [
438
+ "mathematical_operator",
439
+ "queryable"
440
+ ],
441
+ [
442
+ "mathematical_operator",
443
+ "theAble"
444
+ ],
445
+ [
446
+ "minusExpression",
447
+ "mathematicalExpression"
448
+ ],
449
+ [
450
+ "minusOperator",
451
+ "mathematicalOperator"
452
+ ],
453
+ [
454
+ "modifies",
455
+ "verby"
456
+ ],
457
+ [
458
+ "notAble",
459
+ "notAble"
460
+ ],
461
+ [
462
+ "noun",
463
+ "theAble"
464
+ ],
465
+ [
466
+ "number",
467
+ "quantifier"
468
+ ],
469
+ [
470
+ "number",
471
+ "queryable"
472
+ ],
473
+ [
474
+ "object",
475
+ "queryable"
476
+ ],
477
+ [
478
+ "object",
479
+ "theAble"
480
+ ],
481
+ [
482
+ "operator",
483
+ "concept"
484
+ ],
485
+ [
486
+ "operator",
487
+ "hierarchyAble"
488
+ ],
489
+ [
490
+ "operator",
491
+ "isEdee"
492
+ ],
493
+ [
494
+ "operator",
495
+ "isEder"
496
+ ],
497
+ [
498
+ "operator",
499
+ "object"
500
+ ],
501
+ [
502
+ "operator",
503
+ "property"
504
+ ],
505
+ [
506
+ "operator",
507
+ "queryable"
508
+ ],
509
+ [
510
+ "operator",
511
+ "theAble"
512
+ ],
513
+ [
514
+ "operator_modifier",
515
+ "operator_modifier"
516
+ ],
517
+ [
518
+ "orAble",
519
+ "ifAble"
520
+ ],
521
+ [
522
+ "plusExpression",
523
+ "mathematicalExpression"
524
+ ],
525
+ [
526
+ "plusOperator",
527
+ "mathematicalOperator"
528
+ ],
529
+ [
530
+ "preposition",
531
+ "preposition"
532
+ ],
533
+ [
534
+ "pronoun",
535
+ "pronoun"
536
+ ],
537
+ [
538
+ "property",
539
+ "queryable"
540
+ ],
541
+ [
542
+ "property",
543
+ "theAble"
544
+ ],
545
+ [
546
+ "property",
547
+ "unknown"
548
+ ],
549
+ [
550
+ "punctuation",
551
+ "punctuation"
552
+ ],
553
+ [
554
+ "quantifier",
555
+ "quantifier"
556
+ ],
557
+ [
558
+ "queryable",
559
+ "queryable"
560
+ ],
561
+ [
562
+ "questionMark",
563
+ "punctuation"
564
+ ],
565
+ [
566
+ "readonly",
567
+ "queryable"
568
+ ],
569
+ [
570
+ "reason",
571
+ "queryable"
572
+ ],
573
+ [
574
+ "reason",
575
+ "theAble"
576
+ ],
577
+ [
578
+ "that",
579
+ "thisitthat"
580
+ ],
581
+ [
582
+ "the",
583
+ "articlePOS"
584
+ ],
585
+ [
586
+ "theAble",
587
+ "theAble"
588
+ ],
589
+ [
590
+ "this",
591
+ "pronoun"
592
+ ],
593
+ [
594
+ "this",
595
+ "queryable"
596
+ ],
597
+ [
598
+ "this",
599
+ "thisitthat"
600
+ ],
601
+ [
602
+ "thisitthat",
603
+ "queryable"
604
+ ],
605
+ [
606
+ "timesExpression",
607
+ "mathematicalExpression"
608
+ ],
609
+ [
610
+ "timesOperator",
611
+ "mathematicalOperator"
612
+ ],
613
+ [
614
+ "to",
615
+ "preposition"
616
+ ],
617
+ [
618
+ "toAble",
619
+ "toAble"
620
+ ],
621
+ [
622
+ "type",
623
+ "property"
624
+ ],
625
+ [
626
+ "type",
627
+ "whatAble"
628
+ ],
629
+ [
630
+ "unknown",
631
+ "hierarchyAble"
632
+ ],
633
+ [
634
+ "unknown",
635
+ "notAble"
636
+ ],
637
+ [
638
+ "unknown",
639
+ "object"
640
+ ],
641
+ [
642
+ "unknown",
643
+ "queryable"
644
+ ],
645
+ [
646
+ "unknown",
647
+ "theAble"
648
+ ],
649
+ [
650
+ "verby",
651
+ "verby"
652
+ ],
653
+ [
654
+ "what",
655
+ "object"
656
+ ],
657
+ [
658
+ "what",
659
+ "queryable"
660
+ ],
661
+ [
662
+ "whatAble",
663
+ "queryable"
664
+ ],
665
+ [
666
+ "whose",
667
+ "object"
668
+ ],
669
+ [
670
+ "x",
671
+ "number"
672
+ ],
673
+ [
674
+ "xfx",
675
+ "queryable"
676
+ ],
677
+ [
678
+ "y",
679
+ "number"
680
+ ]
681
+ ],
682
+ "metadata": {
683
+ "opChoices": [
684
+ {
685
+ "op": [
686
+ "unknown",
687
+ 0
688
+ ],
689
+ "ops": [
690
+ [
691
+ "unknown",
692
+ 0
693
+ ],
694
+ [
695
+ "is",
696
+ 0
697
+ ],
698
+ [
699
+ "unknown",
700
+ 0
701
+ ]
702
+ ],
703
+ "counter": 1
704
+ },
705
+ {
706
+ "op": [
707
+ "unknown",
708
+ 0
709
+ ],
710
+ "ops": [
711
+ [
712
+ "is",
713
+ 0
714
+ ],
715
+ [
716
+ "unknown",
717
+ 0
718
+ ]
719
+ ],
720
+ "counter": 2
721
+ },
722
+ {
723
+ "op": [
724
+ "is",
725
+ 0
726
+ ],
727
+ "ops": [
728
+ [
729
+ "is",
730
+ 0
731
+ ]
732
+ ],
733
+ "counter": 3
734
+ },
735
+ {
736
+ "op": [
737
+ "is",
738
+ 1
739
+ ],
740
+ "ops": [
741
+ [
742
+ "is",
743
+ 1
744
+ ]
745
+ ],
746
+ "counter": 4
747
+ }
748
+ ]
749
+ },
750
+ "trace": "undefined",
751
+ "contexts": [
752
+ {
753
+ "number": "many",
754
+ "text": "formulas are concepts",
755
+ "marker": "is",
756
+ "word": "are",
757
+ "range": {
758
+ "start": 0,
759
+ "end": 20
760
+ },
761
+ "one": {
762
+ "number": "many",
763
+ "value": "formulas",
764
+ "unknown": true,
765
+ "text": "formulas",
766
+ "marker": "unknown",
767
+ "word": "formulas",
768
+ "range": {
769
+ "start": 0,
770
+ "end": 20
771
+ },
772
+ "dead": true,
773
+ "types": [
774
+ "unknown"
775
+ ],
776
+ "level": 1
777
+ },
778
+ "two": {
779
+ "value": "concepts",
780
+ "unknown": true,
781
+ "text": "concepts",
782
+ "marker": "unknown",
783
+ "word": "concepts",
784
+ "range": {
785
+ "start": 13,
786
+ "end": 20
787
+ },
788
+ "dead": true,
789
+ "types": [
790
+ "unknown"
791
+ ],
792
+ "level": 1,
793
+ "concept": true
794
+ },
795
+ "dead": true,
796
+ "level": 2,
797
+ "topLevel": true,
798
+ "touchedBy": [
799
+ "formulas#call2"
800
+ ]
801
+ }
802
+ ],
803
+ "generated": [
804
+ ""
805
+ ],
806
+ "paraphrases": [
807
+ "formulas are concepts"
808
+ ],
809
+ "paraphrasesParenthesized": [],
810
+ "generatedParenthesized": [],
811
+ "responses": [
812
+ ""
813
+ ],
814
+ "associations": [
815
+ [
816
+ [
817
+ "is",
818
+ 0
819
+ ],
820
+ [
821
+ "unknown",
822
+ 0
823
+ ]
824
+ ],
825
+ [
826
+ [
827
+ "is",
828
+ 0
829
+ ],
830
+ [
831
+ "unknown",
832
+ 0
833
+ ],
834
+ [
835
+ "unknown",
836
+ 1
837
+ ]
838
+ ],
839
+ [
840
+ [
841
+ "is",
842
+ 0
843
+ ],
844
+ [
845
+ "unknown",
846
+ 1
847
+ ]
848
+ ]
849
+ ],
850
+ "learned_contextual_priorities": [],
851
+ "query": "formulas are concepts",
852
+ "key": {
853
+ "query": "formulas are concepts"
854
+ }
855
+ },
856
+ {
857
+ "extraConfig": true,
858
+ "name": "formulas",
859
+ "operators": [
860
+ "([formula])",
861
+ "([solve] (equals/1) ([forVariable|for]) (variable))",
862
+ "(([formula]) [formulaForVariable|] ([forVariable|]) (variable))",
863
+ "([calculate] ([expression]))",
864
+ "(([expression]) [equals] ([expression]))"
865
+ ],
866
+ "priorities": [
867
+ {
868
+ "context": [
869
+ [
870
+ "mathematicalOperator",
871
+ 0
872
+ ],
873
+ [
874
+ "number",
875
+ 0
876
+ ]
877
+ ],
878
+ "choose": [
879
+ 0
880
+ ]
881
+ }
882
+ ],
883
+ "semantics": [
884
+ {
885
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:109"
886
+ }
887
+ ],
888
+ "bridges": [
889
+ {
890
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:120",
891
+ "id": "formulaForVariable",
892
+ "isA": [
893
+ "preposition",
894
+ "queryable"
895
+ ],
896
+ "convolution": true,
897
+ "bridge": "{ number: before[0].number, ...next(operator), what: before[0], equality: after[0], variable: after[1] }"
898
+ },
899
+ {
900
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:132",
901
+ "id": "solve",
902
+ "bridge": "{ ...next(operator), equality: after[0], variable: after[2] }"
903
+ },
904
+ {
905
+ "id": "forVariable",
906
+ "isA": [
907
+ "preposition"
908
+ ]
909
+ },
910
+ {
911
+ "id": "formula"
912
+ },
913
+ {
914
+ "id": "expression",
915
+ "children": [
916
+ "mathematicalExpression",
917
+ "number"
918
+ ],
919
+ "before": [
920
+ "verby"
921
+ ]
922
+ },
923
+ {
924
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:159",
925
+ "id": "calculate",
926
+ "isA": [
927
+ "verby"
928
+ ],
929
+ "bridge": "{ ...next(operator), expression: after[0] }",
930
+ "localHierarchy": [
931
+ [
932
+ "unknown",
933
+ "expression"
934
+ ]
935
+ ]
936
+ },
937
+ {
938
+ "where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:171",
939
+ "id": "equals",
940
+ "bridge": "{ ...next(operator), left: before[0], right: after[0] }",
941
+ "words": [
942
+ "="
943
+ ],
944
+ "after": [
945
+ "mathematicalOperator"
946
+ ],
947
+ "localHierarchy": [
948
+ [
949
+ "unknown",
950
+ "expression"
951
+ ]
952
+ ]
953
+ }
954
+ ]
955
+ }
956
+ ],
957
+ "fragments": [],
958
+ "semantics": [],
959
+ "associations": [
960
+ [
961
+ [
962
+ "is",
963
+ 0
964
+ ],
965
+ [
966
+ "unknown",
967
+ 0
968
+ ]
969
+ ],
970
+ [
971
+ [
972
+ "is",
973
+ 0
974
+ ],
975
+ [
976
+ "unknown",
977
+ 0
978
+ ],
979
+ [
980
+ "unknown",
981
+ 1
982
+ ]
983
+ ],
984
+ [
985
+ [
986
+ "is",
987
+ 0
988
+ ],
989
+ [
990
+ "unknown",
991
+ 1
992
+ ]
993
+ ]
994
+ ],
995
+ "learned_contextual_priorities": []
996
+ }