tpmkms 9.8.0 → 9.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/common/actions.instance.json +10 -8
  2. package/common/actions.js +13 -11
  3. package/common/angle.instance.json +25 -17
  4. package/common/animals.instance.json +54 -28
  5. package/common/askfor.instance.json +89 -192
  6. package/common/askfor.js +49 -12
  7. package/common/asking.js +13 -5
  8. package/common/avatar.js +3 -3
  9. package/common/can.instance.json +32 -20
  10. package/common/can.js +2 -2
  11. package/common/colors.instance.json +44 -16
  12. package/common/colors.js +1 -1
  13. package/common/comparable.instance.json +25 -22
  14. package/common/compass.instance.json +9 -3
  15. package/common/concept.instance.json +14 -6
  16. package/common/concept.js +2 -0
  17. package/common/conjunction.js +17 -9
  18. package/common/control.js +10 -18
  19. package/common/countable.js +4 -3
  20. package/common/crew.instance.json +95 -27
  21. package/common/dateTimeSelectors.instance.json +4 -4
  22. package/common/dateTimeSelectors.js +4 -7
  23. package/common/dates.instance.json +52 -28
  24. package/common/dates.js +16 -11
  25. package/common/debug.instance.json +48 -0
  26. package/common/debug.js +50 -0
  27. package/common/debug.test.json +1 -0
  28. package/common/dialogues.js +126 -70
  29. package/common/dimension.instance.json +239 -495
  30. package/common/dimension.js +51 -9
  31. package/common/drone.instance.json +395 -84
  32. package/common/drone.js +43 -50
  33. package/common/drone_v1.instance.json +36 -12
  34. package/common/drone_v1.js +14 -9
  35. package/common/edible.instance.json +96 -32
  36. package/common/emotions.instance.json +15 -1
  37. package/common/evaluate.js +10 -13
  38. package/common/fastfood.instance.json +282 -100
  39. package/common/fastfood.js +30 -15
  40. package/common/formulas.instance.json +162 -24
  41. package/common/formulas.js +18 -9
  42. package/common/gdefaults.js +20 -96
  43. package/common/helpers/concept.js +2 -9
  44. package/common/helpers/conjunction.js +11 -1
  45. package/common/helpers/dialogues.js +48 -24
  46. package/common/helpers/gdefaults.js +15 -5
  47. package/common/helpers/properties.js +125 -326
  48. package/common/helpers.js +28 -58
  49. package/common/hierarchy.js +71 -41
  50. package/common/kirk.instance.json +3 -1
  51. package/common/latin.instance.json +10 -10
  52. package/common/latin.js +5 -5
  53. package/common/length.instance.json +247 -61
  54. package/common/math.instance.json +144 -5
  55. package/common/math.js +18 -5
  56. package/common/menus.instance.json +29 -11
  57. package/common/menus.js +8 -5
  58. package/common/meta.js +14 -13
  59. package/common/nameable.js +9 -5
  60. package/common/numbers.instance.json +5 -3
  61. package/common/numbers.js +28 -28
  62. package/common/ordering.instance.json +53 -4
  63. package/common/ordinals.js +25 -25
  64. package/common/people.instance.json +66 -12
  65. package/common/percentages.js +4 -2
  66. package/common/pipboy.instance.json +89 -44
  67. package/common/pipboy.js +21 -14
  68. package/common/pokemon.instance.json +39 -13
  69. package/common/pressure.instance.json +14 -6
  70. package/common/properties.instance.json +2370 -511
  71. package/common/properties.js +496 -78
  72. package/common/punctuation.js +1 -0
  73. package/common/rates.instance.json +2 -2
  74. package/common/rates.js +3 -3
  75. package/common/reminders.instance.json +16 -0
  76. package/common/reminders.js +24 -20
  77. package/common/reports.instance.json +11 -12
  78. package/common/reports.js +12 -12
  79. package/common/scorekeeper.js +20 -10
  80. package/common/sdefaults.js +30 -9
  81. package/common/spock.instance.json +3 -1
  82. package/common/stm.js +16 -21
  83. package/common/temperature.instance.json +19 -11
  84. package/common/testing.js +2 -2
  85. package/common/time.instance.json +104 -47
  86. package/common/time.js +9 -8
  87. package/common/ui.instance.json +4 -2
  88. package/common/ui.js +5 -5
  89. package/common/weight.instance.json +86 -21
  90. package/common/weight.js +5 -1
  91. package/common/words.js +113 -2
  92. package/common/wp.instance.json +125 -18
  93. package/common/wp.js +6 -2
  94. package/main.js +2 -0
  95. package/package.json +7 -3
@@ -264,7 +264,6 @@
264
264
  "level": 2,
265
265
  "context_index": 1,
266
266
  "topLevel": true,
267
- "context_id": 2,
268
267
  "touchedBy": [
269
268
  "edible#call2"
270
269
  ]
@@ -575,6 +574,9 @@
575
574
  }
576
575
  ],
577
576
  "learned_contextual_priorities": [],
577
+ "explain_associations_details": [
578
+ null
579
+ ],
578
580
  "query": "food and drinks are edible",
579
581
  "key": {
580
582
  "query": "food and drinks are edible"
@@ -680,7 +682,6 @@
680
682
  "level": 1,
681
683
  "context_index": 1,
682
684
  "topLevel": true,
683
- "context_id": 2,
684
685
  "touchedBy": [
685
686
  "edible#call2"
686
687
  ]
@@ -826,6 +827,9 @@
826
827
  }
827
828
  ],
828
829
  "learned_contextual_priorities": [],
830
+ "explain_associations_details": [
831
+ null
832
+ ],
829
833
  "query": "chicken modifies strips",
830
834
  "key": {
831
835
  "query": "chicken modifies strips"
@@ -931,7 +935,6 @@
931
935
  "level": 1,
932
936
  "context_index": 1,
933
937
  "topLevel": true,
934
- "context_id": 2,
935
938
  "touchedBy": [
936
939
  "edible#call2"
937
940
  ]
@@ -1077,6 +1080,9 @@
1077
1080
  }
1078
1081
  ],
1079
1082
  "learned_contextual_priorities": [],
1083
+ "explain_associations_details": [
1084
+ null
1085
+ ],
1080
1086
  "query": "chicken modifies nugget",
1081
1087
  "key": {
1082
1088
  "query": "chicken modifies nugget"
@@ -1467,7 +1473,6 @@
1467
1473
  "level": 2,
1468
1474
  "context_index": 1,
1469
1475
  "topLevel": true,
1470
- "context_id": 2,
1471
1476
  "touchedBy": [
1472
1477
  "edible#call2"
1473
1478
  ]
@@ -2023,6 +2028,9 @@
2023
2028
  }
2024
2029
  ],
2025
2030
  "learned_contextual_priorities": [],
2031
+ "explain_associations_details": [
2032
+ null
2033
+ ],
2026
2034
  "query": "nuggets, chicken strips and chicken nuggets are food",
2027
2035
  "key": {
2028
2036
  "query": "nuggets, chicken strips and chicken nuggets are food"
@@ -2146,7 +2154,6 @@
2146
2154
  "level": 2,
2147
2155
  "context_index": 1,
2148
2156
  "topLevel": true,
2149
- "context_id": 2,
2150
2157
  "touchedBy": [
2151
2158
  "edible#call2"
2152
2159
  ]
@@ -2307,6 +2314,9 @@
2307
2314
  }
2308
2315
  ],
2309
2316
  "learned_contextual_priorities": [],
2317
+ "explain_associations_details": [
2318
+ null
2319
+ ],
2310
2320
  "query": "sushi is food",
2311
2321
  "key": {
2312
2322
  "query": "sushi is food"
@@ -2596,7 +2606,6 @@
2596
2606
  "level": 2,
2597
2607
  "context_index": 1,
2598
2608
  "topLevel": true,
2599
- "context_id": 2,
2600
2609
  "touchedBy": [
2601
2610
  "edible#call2"
2602
2611
  ]
@@ -3057,6 +3066,9 @@
3057
3066
  }
3058
3067
  ],
3059
3068
  "learned_contextual_priorities": [],
3069
+ "explain_associations_details": [
3070
+ null
3071
+ ],
3060
3072
  "query": "apples oranges and bananas are fruit",
3061
3073
  "key": {
3062
3074
  "query": "apples oranges and bananas are fruit"
@@ -3162,7 +3174,6 @@
3162
3174
  "level": 1,
3163
3175
  "context_index": 1,
3164
3176
  "topLevel": true,
3165
- "context_id": 2,
3166
3177
  "touchedBy": [
3167
3178
  "edible#call2"
3168
3179
  ]
@@ -3308,6 +3319,9 @@
3308
3319
  }
3309
3320
  ],
3310
3321
  "learned_contextual_priorities": [],
3322
+ "explain_associations_details": [
3323
+ null
3324
+ ],
3311
3325
  "query": "hot modifies dog",
3312
3326
  "key": {
3313
3327
  "query": "hot modifies dog"
@@ -3469,7 +3483,6 @@
3469
3483
  "level": 2,
3470
3484
  "context_index": 1,
3471
3485
  "topLevel": true,
3472
- "context_id": 2,
3473
3486
  "touchedBy": [
3474
3487
  "edible#call2"
3475
3488
  ]
@@ -3650,6 +3663,9 @@
3650
3663
  }
3651
3664
  ],
3652
3665
  "learned_contextual_priorities": [],
3666
+ "explain_associations_details": [
3667
+ null
3668
+ ],
3653
3669
  "query": "hot dogs are sausages",
3654
3670
  "key": {
3655
3671
  "query": "hot dogs are sausages"
@@ -3772,7 +3788,6 @@
3772
3788
  "level": 2,
3773
3789
  "context_index": 1,
3774
3790
  "topLevel": true,
3775
- "context_id": 2,
3776
3791
  "touchedBy": [
3777
3792
  "edible#call2"
3778
3793
  ]
@@ -3933,6 +3948,9 @@
3933
3948
  }
3934
3949
  ],
3935
3950
  "learned_contextual_priorities": [],
3951
+ "explain_associations_details": [
3952
+ null
3953
+ ],
3936
3954
  "query": "sausages are meat",
3937
3955
  "key": {
3938
3956
  "query": "sausages are meat"
@@ -4038,7 +4056,6 @@
4038
4056
  "level": 1,
4039
4057
  "context_index": 1,
4040
4058
  "topLevel": true,
4041
- "context_id": 2,
4042
4059
  "touchedBy": [
4043
4060
  "edible#call2"
4044
4061
  ]
@@ -4184,6 +4201,9 @@
4184
4201
  }
4185
4202
  ],
4186
4203
  "learned_contextual_priorities": [],
4204
+ "explain_associations_details": [
4205
+ null
4206
+ ],
4187
4207
  "query": "french modifies fries",
4188
4208
  "key": {
4189
4209
  "query": "french modifies fries"
@@ -4306,7 +4326,6 @@
4306
4326
  "level": 2,
4307
4327
  "context_index": 1,
4308
4328
  "topLevel": true,
4309
- "context_id": 2,
4310
4329
  "touchedBy": [
4311
4330
  "edible#call2"
4312
4331
  ]
@@ -4467,6 +4486,9 @@
4467
4486
  }
4468
4487
  ],
4469
4488
  "learned_contextual_priorities": [],
4489
+ "explain_associations_details": [
4490
+ null
4491
+ ],
4470
4492
  "query": "fries are food",
4471
4493
  "key": {
4472
4494
  "query": "fries are food"
@@ -4589,7 +4611,6 @@
4589
4611
  "level": 2,
4590
4612
  "context_index": 1,
4591
4613
  "topLevel": true,
4592
- "context_id": 2,
4593
4614
  "touchedBy": [
4594
4615
  "edible#call2"
4595
4616
  ]
@@ -4750,6 +4771,9 @@
4750
4771
  }
4751
4772
  ],
4752
4773
  "learned_contextual_priorities": [],
4774
+ "explain_associations_details": [
4775
+ null
4776
+ ],
4753
4777
  "query": "meat is food",
4754
4778
  "key": {
4755
4779
  "query": "meat is food"
@@ -4872,7 +4896,6 @@
4872
4896
  "level": 2,
4873
4897
  "context_index": 1,
4874
4898
  "topLevel": true,
4875
- "context_id": 2,
4876
4899
  "touchedBy": [
4877
4900
  "edible#call2"
4878
4901
  ]
@@ -5033,6 +5056,9 @@
5033
5056
  }
5034
5057
  ],
5035
5058
  "learned_contextual_priorities": [],
5059
+ "explain_associations_details": [
5060
+ null
5061
+ ],
5036
5062
  "query": "fruits are food",
5037
5063
  "key": {
5038
5064
  "query": "fruits are food"
@@ -5256,7 +5282,6 @@
5256
5282
  "level": 2,
5257
5283
  "context_index": 1,
5258
5284
  "topLevel": true,
5259
- "context_id": 2,
5260
5285
  "touchedBy": [
5261
5286
  "edible#call2"
5262
5287
  ]
@@ -5547,6 +5572,9 @@
5547
5572
  }
5548
5573
  ],
5549
5574
  "learned_contextual_priorities": [],
5575
+ "explain_associations_details": [
5576
+ null
5577
+ ],
5550
5578
  "query": "pie and salad are foods",
5551
5579
  "key": {
5552
5580
  "query": "pie and salad are foods"
@@ -5652,7 +5680,6 @@
5652
5680
  "level": 1,
5653
5681
  "context_index": 1,
5654
5682
  "topLevel": true,
5655
- "context_id": 2,
5656
5683
  "touchedBy": [
5657
5684
  "edible#call2"
5658
5685
  ]
@@ -5798,6 +5825,9 @@
5798
5825
  }
5799
5826
  ],
5800
5827
  "learned_contextual_priorities": [],
5828
+ "explain_associations_details": [
5829
+ null
5830
+ ],
5801
5831
  "query": "apple modifies pie",
5802
5832
  "key": {
5803
5833
  "query": "apple modifies pie"
@@ -5921,7 +5951,6 @@
5921
5951
  "level": 2,
5922
5952
  "context_index": 1,
5923
5953
  "topLevel": true,
5924
- "context_id": 2,
5925
5954
  "touchedBy": [
5926
5955
  "edible#call2"
5927
5956
  ]
@@ -6082,6 +6111,9 @@
6082
6111
  }
6083
6112
  ],
6084
6113
  "learned_contextual_priorities": [],
6114
+ "explain_associations_details": [
6115
+ null
6116
+ ],
6085
6117
  "query": "sandwiches are food",
6086
6118
  "key": {
6087
6119
  "query": "sandwiches are food"
@@ -6707,7 +6739,6 @@
6707
6739
  "level": 2,
6708
6740
  "context_index": 1,
6709
6741
  "topLevel": true,
6710
- "context_id": 2,
6711
6742
  "touchedBy": [
6712
6743
  "edible#call2"
6713
6744
  ]
@@ -8023,6 +8054,9 @@
8023
8054
  }
8024
8055
  ],
8025
8056
  "learned_contextual_priorities": [],
8057
+ "explain_associations_details": [
8058
+ null
8059
+ ],
8026
8060
  "query": "carrots, peas, cabbage, potatoes and broccoli are vegetables",
8027
8061
  "key": {
8028
8062
  "query": "carrots, peas, cabbage, potatoes and broccoli are vegetables"
@@ -8241,7 +8275,6 @@
8241
8275
  "level": 2,
8242
8276
  "context_index": 1,
8243
8277
  "topLevel": true,
8244
- "context_id": 2,
8245
8278
  "touchedBy": [
8246
8279
  "edible#call2"
8247
8280
  ]
@@ -8532,6 +8565,9 @@
8532
8565
  }
8533
8566
  ],
8534
8567
  "learned_contextual_priorities": [],
8568
+ "explain_associations_details": [
8569
+ null
8570
+ ],
8535
8571
  "query": "vegetables and bread are food",
8536
8572
  "key": {
8537
8573
  "query": "vegetables and bread are food"
@@ -8637,7 +8673,6 @@
8637
8673
  "level": 1,
8638
8674
  "context_index": 1,
8639
8675
  "topLevel": true,
8640
- "context_id": 2,
8641
8676
  "touchedBy": [
8642
8677
  "edible#call2"
8643
8678
  ]
@@ -8783,6 +8818,9 @@
8783
8818
  }
8784
8819
  ],
8785
8820
  "learned_contextual_priorities": [],
8821
+ "explain_associations_details": [
8822
+ null
8823
+ ],
8786
8824
  "query": "french modifies toast",
8787
8825
  "key": {
8788
8826
  "query": "french modifies toast"
@@ -9169,7 +9207,6 @@
9169
9207
  "level": 2,
9170
9208
  "context_index": 1,
9171
9209
  "topLevel": true,
9172
- "context_id": 2,
9173
9210
  "touchedBy": [
9174
9211
  "edible#call2"
9175
9212
  ]
@@ -9745,6 +9782,9 @@
9745
9782
  }
9746
9783
  ],
9747
9784
  "learned_contextual_priorities": [],
9785
+ "explain_associations_details": [
9786
+ null
9787
+ ],
9748
9788
  "query": "muffins, french toast and pancakes are bread",
9749
9789
  "key": {
9750
9790
  "query": "muffins, french toast and pancakes are bread"
@@ -9909,7 +9949,6 @@
9909
9949
  "level": 2,
9910
9950
  "context_index": 1,
9911
9951
  "topLevel": true,
9912
- "context_id": 2,
9913
9952
  "touchedBy": [
9914
9953
  "edible#call2"
9915
9954
  ]
@@ -10135,6 +10174,9 @@
10135
10174
  }
10136
10175
  ],
10137
10176
  "learned_contextual_priorities": [],
10177
+ "explain_associations_details": [
10178
+ null
10179
+ ],
10138
10180
  "query": "grain is a food",
10139
10181
  "key": {
10140
10182
  "query": "grain is a food"
@@ -10240,7 +10282,6 @@
10240
10282
  "level": 1,
10241
10283
  "context_index": 1,
10242
10284
  "topLevel": true,
10243
- "context_id": 2,
10244
10285
  "touchedBy": [
10245
10286
  "edible#call2"
10246
10287
  ]
@@ -10386,6 +10427,9 @@
10386
10427
  }
10387
10428
  ],
10388
10429
  "learned_contextual_priorities": [],
10430
+ "explain_associations_details": [
10431
+ null
10432
+ ],
10389
10433
  "query": "cereal modifies grain",
10390
10434
  "key": {
10391
10435
  "query": "cereal modifies grain"
@@ -10587,7 +10631,6 @@
10587
10631
  "level": 2,
10588
10632
  "context_index": 1,
10589
10633
  "topLevel": true,
10590
- "context_id": 2,
10591
10634
  "touchedBy": [
10592
10635
  "edible#call2"
10593
10636
  ]
@@ -10833,6 +10876,9 @@
10833
10876
  }
10834
10877
  ],
10835
10878
  "learned_contextual_priorities": [],
10879
+ "explain_associations_details": [
10880
+ null
10881
+ ],
10836
10882
  "query": "oatmeal is a cereal grain",
10837
10883
  "key": {
10838
10884
  "query": "oatmeal is a cereal grain"
@@ -10996,7 +11042,6 @@
10996
11042
  "level": 2,
10997
11043
  "context_index": 1,
10998
11044
  "topLevel": true,
10999
- "context_id": 2,
11000
11045
  "touchedBy": [
11001
11046
  "edible#call2"
11002
11047
  ]
@@ -11222,6 +11267,9 @@
11222
11267
  }
11223
11268
  ],
11224
11269
  "learned_contextual_priorities": [],
11270
+ "explain_associations_details": [
11271
+ null
11272
+ ],
11225
11273
  "query": "sausage is a meat",
11226
11274
  "key": {
11227
11275
  "query": "sausage is a meat"
@@ -11432,7 +11480,6 @@
11432
11480
  "level": 2,
11433
11481
  "context_index": 1,
11434
11482
  "topLevel": true,
11435
- "context_id": 2,
11436
11483
  "touchedBy": [
11437
11484
  "edible#call2"
11438
11485
  ]
@@ -11733,6 +11780,9 @@
11733
11780
  }
11734
11781
  ],
11735
11782
  "learned_contextual_priorities": [],
11783
+ "explain_associations_details": [
11784
+ null
11785
+ ],
11736
11786
  "query": "a hamburger is a sandwich",
11737
11787
  "key": {
11738
11788
  "query": "a hamburger is a sandwich"
@@ -11943,7 +11993,6 @@
11943
11993
  "level": 2,
11944
11994
  "context_index": 1,
11945
11995
  "topLevel": true,
11946
- "context_id": 2,
11947
11996
  "touchedBy": [
11948
11997
  "edible#call2"
11949
11998
  ]
@@ -12244,6 +12293,9 @@
12244
12293
  }
12245
12294
  ],
12246
12295
  "learned_contextual_priorities": [],
12296
+ "explain_associations_details": [
12297
+ null
12298
+ ],
12247
12299
  "query": "a cheeseburger is a hamburger",
12248
12300
  "key": {
12249
12301
  "query": "a cheeseburger is a hamburger"
@@ -12408,7 +12460,6 @@
12408
12460
  "level": 2,
12409
12461
  "context_index": 1,
12410
12462
  "topLevel": true,
12411
- "context_id": 2,
12412
12463
  "touchedBy": [
12413
12464
  "edible#call2"
12414
12465
  ]
@@ -12634,6 +12685,9 @@
12634
12685
  }
12635
12686
  ],
12636
12687
  "learned_contextual_priorities": [],
12688
+ "explain_associations_details": [
12689
+ null
12690
+ ],
12637
12691
  "query": "cheese is a food",
12638
12692
  "key": {
12639
12693
  "query": "cheese is a food"
@@ -12798,7 +12852,6 @@
12798
12852
  "level": 2,
12799
12853
  "context_index": 1,
12800
12854
  "topLevel": true,
12801
- "context_id": 2,
12802
12855
  "touchedBy": [
12803
12856
  "edible#call2"
12804
12857
  ]
@@ -13024,6 +13077,9 @@
13024
13077
  }
13025
13078
  ],
13026
13079
  "learned_contextual_priorities": [],
13080
+ "explain_associations_details": [
13081
+ null
13082
+ ],
13027
13083
  "query": "cheddar is a cheese",
13028
13084
  "key": {
13029
13085
  "query": "cheddar is a cheese"
@@ -13997,7 +14053,6 @@
13997
14053
  "level": 2,
13998
14054
  "context_index": 1,
13999
14055
  "topLevel": true,
14000
- "context_id": 2,
14001
14056
  "touchedBy": [
14002
14057
  "edible#call2"
14003
14058
  ]
@@ -16363,6 +16418,9 @@
16363
16418
  }
16364
16419
  ],
16365
16420
  "learned_contextual_priorities": [],
16421
+ "explain_associations_details": [
16422
+ null
16423
+ ],
16366
16424
  "query": "milk, pop, soda, coffee, tea, shakes and juice are drinks",
16367
16425
  "key": {
16368
16426
  "query": "milk, pop, soda, coffee, tea, shakes and juice are drinks"
@@ -16468,7 +16526,6 @@
16468
16526
  "level": 1,
16469
16527
  "context_index": 1,
16470
16528
  "topLevel": true,
16471
- "context_id": 2,
16472
16529
  "touchedBy": [
16473
16530
  "edible#call2"
16474
16531
  ]
@@ -16614,6 +16671,9 @@
16614
16671
  }
16615
16672
  ],
16616
16673
  "learned_contextual_priorities": [],
16674
+ "explain_associations_details": [
16675
+ null
16676
+ ],
16617
16677
  "query": "apple modifies juice",
16618
16678
  "key": {
16619
16679
  "query": "apple modifies juice"
@@ -16719,7 +16779,6 @@
16719
16779
  "level": 1,
16720
16780
  "context_index": 1,
16721
16781
  "topLevel": true,
16722
- "context_id": 2,
16723
16782
  "touchedBy": [
16724
16783
  "edible#call2"
16725
16784
  ]
@@ -16865,6 +16924,9 @@
16865
16924
  }
16866
16925
  ],
16867
16926
  "learned_contextual_priorities": [],
16927
+ "explain_associations_details": [
16928
+ null
16929
+ ],
16868
16930
  "query": "chocolate modifies milk",
16869
16931
  "key": {
16870
16932
  "query": "chocolate modifies milk"
@@ -17029,7 +17091,6 @@
17029
17091
  "level": 2,
17030
17092
  "context_index": 1,
17031
17093
  "topLevel": true,
17032
- "context_id": 2,
17033
17094
  "touchedBy": [
17034
17095
  "edible#call2"
17035
17096
  ]
@@ -17255,6 +17316,9 @@
17255
17316
  }
17256
17317
  ],
17257
17318
  "learned_contextual_priorities": [],
17319
+ "explain_associations_details": [
17320
+ null
17321
+ ],
17258
17322
  "query": "lemonade is a drink",
17259
17323
  "key": {
17260
17324
  "query": "lemonade is a drink"
@@ -431,6 +431,18 @@
431
431
  ],
432
432
  "level": 0
433
433
  },
434
+ "relationBacked": false,
435
+ "orderingArgs": {},
436
+ "relationArgs": [
437
+ {
438
+ "tag": "sentientBeing",
439
+ "id": "sentientBeing"
440
+ },
441
+ {
442
+ "tag": "emotion",
443
+ "id": "emotion"
444
+ }
445
+ ],
434
446
  "operator": {
435
447
  "value": "feel",
436
448
  "isVerb": true,
@@ -660,7 +672,6 @@
660
672
  "level": 1,
661
673
  "context_index": 1,
662
674
  "topLevel": true,
663
- "context_id": 2,
664
675
  "metaInfo": "The mapping from from the expression being defined \"sentientbeing1 feels emotion1\" to the definition phrase \"the emotion of sentientbeing1 is emotion1\" is [{\"from\":[\"sentientBeing\"],\"to\":[\"one\",\"objects\",\"1\"]},{\"from\":[\"emotion\"],\"to\":[\"two\"]},{\"from\":[\"number\"],\"to\":[\"number\"]}]",
665
676
  "touchedBy": [
666
677
  "emotions#call2"
@@ -1732,6 +1743,9 @@
1732
1743
  }
1733
1744
  ],
1734
1745
  "learned_contextual_priorities": [],
1746
+ "explain_associations_details": [
1747
+ null
1748
+ ],
1735
1749
  "query": "sentientBeing1 feels emotion1 means the emotion of sentientBeing1 is emotion1",
1736
1750
  "key": {
1737
1751
  "query": "sentientBeing1 feels emotion1 means the emotion of sentientBeing1 is emotion1"
@@ -14,7 +14,7 @@ const config = {
14
14
  {
15
15
  where: where(),
16
16
  id: 'value1',
17
- evaluator: ({context}) => {
17
+ semantic: ({context}) => {
18
18
  context.evalue = 'value1 after evaluation'
19
19
  },
20
20
  scope: "testing",
@@ -25,26 +25,23 @@ const config = {
25
25
  after: ['verb'],
26
26
  enhanced_associations: false,
27
27
  bridge: "{ ...next(operator), postModifiers: ['value'], value: after[0] }",
28
- semantic: async ({context, e, resolveResponse}) => {
29
- resolveResponse(context, (await e(context.value)).evalue)
28
+ semantic: async ({context, e, resolveEvaluate}) => {
29
+ resolveEvaluate(context, (await e(context.value, where())).evalue)
30
30
  }
31
31
  }
32
32
  ],
33
33
  };
34
34
 
35
35
  function initializer({objects, config, isModule}) {
36
- config.addArgs(({config, api, isA}) => ({
37
- resolveResponse: (context, value) => {
38
- context.response = value || { marker: 'answerNotKnown' }
39
- if (context.response) {
40
- context.isResponse = true
41
- }
42
- },
36
+ config.addArgs(({config, api, toList, isA}) => ({
43
37
  resolveEvaluate: (context, value) => {
44
- if (value == undefined) {
45
- throw new Error("The arguments are context and the value. The value may not be undefined.")
38
+ if (Array.isArray(value)) {
39
+ value = toList(value)
40
+ }
41
+ context.evalue = value || { marker: 'undefined' }
42
+ if (context.evalue) {
43
+ context.isResponse = true
46
44
  }
47
- context.evalue = value
48
45
  },
49
46
  }))
50
47
  }