tpmkms_4wp 9.0.3 → 9.1.1-beta.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 (53) hide show
  1. package/common/animals.instance.json +0 -130
  2. package/common/articles.js +8 -0
  3. package/common/avatar.js +0 -8
  4. package/common/colors.instance.json +136 -192
  5. package/common/comparable.instance.json +2 -93
  6. package/common/comparable.js +6 -7
  7. package/common/concept.js +0 -8
  8. package/common/conjunction.js +0 -7
  9. package/common/crew.instance.json +83 -903
  10. package/common/crew.js +0 -19
  11. package/common/dialogues.js +18 -63
  12. package/common/dimension.instance.json +2 -136
  13. package/common/dimension.js +0 -8
  14. package/common/edible.instance.json +474 -675
  15. package/common/edible.js +0 -13
  16. package/common/emotions.instance.json +0 -10
  17. package/common/emotions.js +0 -8
  18. package/common/fastfood.instance.json +3761 -7798
  19. package/common/fastfood.js +0 -120
  20. package/common/formulas.instance.json +0 -10
  21. package/common/help.js +0 -5
  22. package/common/helpers/properties.js +1 -1
  23. package/common/hierarchy.js +0 -9
  24. package/common/kirk.instance.json +0 -10
  25. package/common/length.instance.json +0 -150
  26. package/common/math.instance.json +0 -10
  27. package/common/menus.instance.json +2 -0
  28. package/common/menus.js +61 -0
  29. package/common/menus.test.json +2 -0
  30. package/common/meta.js +7 -0
  31. package/common/negation.js +5 -0
  32. package/common/ordering.instance.json +0 -20
  33. package/common/ordinals.js +0 -5
  34. package/common/people.instance.json +147 -196
  35. package/common/people.js +0 -4
  36. package/common/pipboy.instance.json +102 -753
  37. package/common/pipboy.js +0 -17
  38. package/common/pokemon.instance.json +140 -679
  39. package/common/pressure.instance.json +0 -40
  40. package/common/properties.instance.json +0 -10
  41. package/common/properties.js +1 -14
  42. package/common/reports.instance.json +1 -21
  43. package/common/reports.js +0 -7
  44. package/common/scorekeeper.js +0 -12
  45. package/common/spock.instance.json +0 -10
  46. package/common/temperature.instance.json +112 -40
  47. package/common/ui.instance.json +0 -10
  48. package/common/weight.instance.json +0 -367
  49. package/common/weight.js +0 -9
  50. package/common/wp.instance.json +45 -681
  51. package/common/wp.js +0 -18
  52. package/main.js +2 -0
  53. package/package.json +7 -3
@@ -69,39 +69,9 @@ const template = {
69
69
  "smoothie modifies ingredients",
70
70
  "strawberry, guava, mango passion, wild berry, and strawberry banana are smoothie ingredients",
71
71
  "a smoothie is a drink",
72
- {
73
- associations: {
74
- positive: [
75
- { context: [["french",0],["fry",0],["list",0],["waffle",0],["fry",0],["is",0],["fry",0]], choose: 5 },
76
- ]
77
- },
78
- },
79
72
  "french fries and waffle fries are fries",
80
- {
81
- associations: {
82
- positive: [
83
- { context: [["is",0],["hamburger",0]], choose: 1 },
84
- ]
85
- },
86
- },
87
73
  "single, double, triple, baconator, and bacon deluxe are hamburgers",
88
74
  // "spicy homestyle asiago ranch chicken club 10 piece nuggets ultimate chicken grill and premium cod are sandwiches",
89
- {
90
- associations: {
91
- positive: [
92
- { context: [["unknown",0],["unknown",0],["comma",0],["asiago",0],["ranch",0],["chicken",0],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 14 },
93
- { context: [["unknown",0],["unknown",0],["asiago",0],["ranch",0],["chicken",0],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 13 },
94
- { context: [["unknown",0],["unknown",0],["asiago",1],["ranch",0],["chicken",0],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 13 },
95
- { context: [["unknown",0],["unknown",0],["asiago",1],["ranch",1],["chicken",0],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 13 },
96
- { context: [["unknown",0],["unknown",0],["asiago",1],["ranch",1],["chicken",1],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 13 },
97
- { context: [["unknown",0],["unknown",0],["asiago",1],["ranch",1],["chicken_club",1],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 12 },
98
- { context: [["unknown",0],["unknown",0],["asiago_ranch_chicken_club",1],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 10 },
99
- { context: [["unknown",0],["unknown",0],["asiago_ranch_chicken_club",1],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 9 },
100
-
101
- { context: [["unknown",0],["comma",0],["unknown",0],["comma",0],["asiago",0],["ranch",0],["chicken",0],["club",0],["comma",0],["ultimate",0],["chicken",0],["grill",0],["list",0],["premium",0],["cod",0],["is",0],["sandwich",0]], choose: 15 },
102
- ]
103
- },
104
- },
105
75
  "spicy, homestyle, asiago ranch chicken club, ultimate chicken grill and premium cod are sandwiches",
106
76
  "meals are food",
107
77
  "a combo is a meal",
@@ -134,24 +104,6 @@ const template = {
134
104
  "a go wrap is a sandwich",
135
105
  "chicken modifies go wrap",
136
106
  "breakfast baconator, french toast sandwich, egg muffin, chicken on french toast, pancake platter, double sausage muffin, pancakes, french toast and oatmeal are breakfast meals",
137
- {
138
- associations: {
139
- positive: [
140
- { context: [["single",0],["comma",0],["double",0],["comma",0],["triple",0],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 16 },
141
- { context: [["single",1],["comma",0],["double",0],["comma",0],["triple",0],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 16 },
142
- { context: [["single",1],["double",0],["comma",0],["triple",0],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 15 },
143
- { context: [["single",1],["double",1],["comma",0],["triple",0],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 15 },
144
- { context: [["single",1],["double",1],["triple",0],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 14 },
145
- { context: [["single",1],["double",1],["triple",1],["comma",0],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 14 },
146
- { context: [["single",1],["double",1],["triple",1],["baconator",0],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 13 },
147
- { context: [["single",1],["double",1],["triple",1],["baconator",1],["comma",0],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 13 },
148
- { context: [["single",1],["double",1],["triple",1],["baconator",1],["bacon",0],["deluxe",0],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 12 },
149
- { context: [["single",1],["double",1],["triple",1],["baconator",1],["bacon_deluxe",1],["comma",0],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 11 },
150
- { context: [["single",1],["double",1],["triple",1],["baconator",1],["bacon_deluxe",1],["spicy",0],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 10 },
151
- { context: [["single",1],["double",1],["triple",1],["baconator",1],["bacon_deluxe",1],["spicy",1],["homestyle",0],["list",0],["premium",0],["cod",0],["is",0],["meal",0]], choose: 10 },
152
- ]
153
- }
154
- },
155
107
  "single, double, triple, baconator, bacon deluxe, spicy homestyle and premium cod are meals",
156
108
  "coca modifies cola",
157
109
  "diet modifies coke",
@@ -179,13 +131,6 @@ const template = {
179
131
  "apple modifies slice",
180
132
  "natural cut modifies fries",
181
133
  "hamburgers, cheeseburgers, crispy chicken and nuggets are kids meals",
182
- {
183
- associations: {
184
- positive: [
185
- { context: [["showOrder",0],["the",0],["orderNoun",1]], choose: 0 },
186
- ],
187
- },
188
- },
189
134
  {
190
135
  where: where(),
191
136
  operators: [
@@ -228,44 +173,6 @@ const template = {
228
173
  { context: [['combo', 1], ['list', 0], ['number', 1], ['combo', 1]], ordered: true, choose: [2,3] },
229
174
  { context: [['list', 0], ['number', 1], ['combo', 1]], ordered: true, choose: [1,2] },
230
175
  { context: [['list', 0], ['number', 1], ['smoothie_ingredient', 1], ['smoothie', 0]], ordered: true, choose: [1,2] },
231
-
232
- /*
233
-
234
- { "context": [['number', 0], ['numberNumberCombo', 0], ], "choose": [0] },
235
- { "context": [['list', 0], ['numberNumberCombo', 0], ], "choose": [0] },
236
- // [['list', 0], ['comboNumber', 0], ],
237
- // [['comboNumber', 0], ['list', 0]],
238
- // this is just to learn associations and contextual_priorities I don't want the semantic to actually run
239
- // TODO make this learn cp#2 { query: "combo one and (2 combo twos)", skipSemantics: true },
240
- // TODO make this learn cp#1 { query: "(single and double) combo", skipSemantics: true },
241
- // cp#1
242
- { context: [['meal', 0], ['list',0], ['meal', 0], ['combo', 0]], ordered: true, choose: [0,1,2] },
243
- // cp#2
244
- // have a way of specifing this
245
- // { context: [['list',0], ['number', 0], ['combo', 0], ['number', 0]], ordered: true, choose: [comboNumber (in between 2 and 3)] },
246
- { context: [['list',0], ['number', 0], ['combo', 0], ['number', 0]], ordered: true, choose: [2,3] },
247
- { context: [['list',0], ['number', 1], ['combo', 0], ['number', 0]], ordered: true, choose: [2,3] },
248
- { context: [['list',0], ['number', 1], ['combo', 0], ['number', 1]], ordered: true, choose: [2,3] },
249
- {"context":[["mango_passion_smoothie",1],["list",0],["strawberry",1],['smoothie',1]],"ordered":true,"choose":[2,3]},
250
- {"context":[["list",0],["number",0],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[1,2]},
251
- {"context":[["list",0],["number",1],["strawberry",1],['smoothie',0]],"ordered":true,"choose":[1,2]},
252
- {"context":[["list",0],["number",1],["strawberry",1],['smoothie',1]],"ordered":true,"choose":[1,2]},
253
-
254
- // {"context":[["list",0],["number",1],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[1,2]},
255
- // {"context":[["list",0],["number",1],["strawberry",0],['smoothie',1]],"ordered":true,"choose":[1,2]},
256
-
257
- // 2 strawberry and 3 mange smoothies
258
- // 2 strawberry smoothies and 3 mango smoothies
259
- {"context":[['mango_passion_smoothie', 1],["list",0],["number",1],["strawberry",1],['smoothie',1]],"ordered":true,"choose":[3,4]},
260
- {"context":[['smoothie', 0],["list",0],["number",1],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[3,4]},
261
- {"context":[['smoothie', 1],["list",0],["number",1],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[3,4]},
262
- {"context":[["list",0],["number",1],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[1,2]},
263
- {"context":[["list",0],["number",1],["strawberry",0],['smoothie',1]],"ordered":true,"choose":[1,2]},
264
-
265
- {"context":[["mango_passion", 1],["list",0],["number",0],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[0,2,3]},
266
- {"context":[["mango_passion", 1],["list",0],["number",1],["strawberry",0],['smoothie',0]],"ordered":true,"choose":[0,2,3]},
267
- {"context":[["mango_passion", 1],["list",0],["number",1],["strawberry",1],['smoothie',0]],"ordered":true,"choose":[0,2,3]},
268
- */
269
176
  ],
270
177
  generators: [
271
178
  {
@@ -525,33 +432,6 @@ const template = {
525
432
  }
526
433
  },
527
434
  ],
528
- associations: {
529
- positive: [
530
- { context: [["article",0],["size",0],["drink",0]], choose: 2 },
531
- { context: [["article",0],["size",0],["smoothie_modifier",0],["drink",0]], choose: 3 },
532
- { context: [["integer",0],["drink",0]], choose: 1 },
533
- { context: [["drink",0],["list",0],["article",0],["drink",0]], choose: 1 },
534
- { context: [["drink",1],["list",0],["article",0],["drink",0]], choose: 1 },
535
- { context: [["drink",1],["list",0],["article",0],["drink",1]], choose: 1 },
536
-
537
- // { context: [["combo",0],["integer",0],["list",0],["a",0],["guava",0],["smoothie",0]], choose: <indexOfMainElement> },
538
- { context: [["combo",0],["integer",0],["list",0],["article",0],["smoothie_modifier",0],["drink",0]], choose: 1 },
539
- { context: [["combo",0],["integer",1],["list",0],["article",0],["smoothie_modifier",0],["drink",0]], choose: 1 },
540
- { context: [["combo",1],["list",0],["article",0],["smoothie_modifier",0],["drink",0]], choose: 1 },
541
- { context: [["combo",1],["list",0],["article",0],["smoothie_modifier",1],["drink",0]], choose: 1 },
542
-
543
- { context: [["combo",0],["integer",0],["withModification",0],["object",0],["object",0],["list",0],["article",0],["smoothie_ingredient",0],["drink",0]], choose: 1 },
544
- { context: [["combo",0],["integer",1],["withModification",0],["object",0],["object",0],["list",0],["article",0],["smoothie_ingredient",0],["drink",0]], choose: 1 },
545
- { context: [["combo",0],["integer",1],["withModification",0],["object",1],["list",0],["article",0],["smoothie_ingredient",0],["drink",0]], choose: 1 },
546
- { context: [["combo",1],["withModification",0],["object",1],["list",0],["article",0],["object",0],["drink",0]], choose: 1 },
547
- { context: [["combo",1],["withModification",0],["object",1],["list",0],["article",0],["object",1],["drink",0]], choose: 1 },
548
-
549
- { context: [["article",0],["object",0],["list",0],["article",0],["object",0],["object",0],["drink",0]], choose: 1 },
550
- { context: [["article",0],["object",0],["list",0],["article",0],["object",1],["drink",0]], choose: 1 },
551
- { context: [["article",0],["object",1],["list",0],["article",0],["object",1],["drink",0]], choose: 1 },
552
- { context: [["object",1],["list",0],["article",0],["object",1],["drink",0]], choose: 1 },
553
- ],
554
- },
555
435
  },
556
436
  ],
557
437
  }
@@ -873,16 +873,6 @@
873
873
  "hierarchyAble",
874
874
  false
875
875
  ],
876
- [
877
- "unknown",
878
- "queryable",
879
- false
880
- ],
881
- [
882
- "unknown",
883
- "theAble",
884
- false
885
- ],
886
876
  [
887
877
  "verb",
888
878
  "verb",
package/common/help.js CHANGED
@@ -72,11 +72,6 @@ const config = {
72
72
  },
73
73
  { id: "withKM", level: 0, bridge: "{ ...next(operator), kms: after[0] }" },
74
74
  ],
75
- associations: {
76
- positive: [
77
- [['help', 0]],
78
- ]
79
- },
80
75
  debug: false,
81
76
  version: '3',
82
77
  words: {
@@ -111,7 +111,7 @@ class API {
111
111
  ...next(operator),
112
112
  constrained: true,
113
113
  ${before[0].tag}: default(after[0].object, after[0]),
114
- ${after[0].tag}: { greg: true, ...before[0] }
114
+ ${after[0].tag}: { ...before[0] }
115
115
  }
116
116
  }
117
117
  ] }`,
@@ -51,15 +51,6 @@ const config = {
51
51
  ['have', 'canBeQuestion'],
52
52
  ['have', 'canBeDoQuestion'],
53
53
  ],
54
- associations: {
55
- negative: [],
56
- positive: [
57
- { context: [["what",0],["is",0],["the",0],["type",1]], choose: 1 },
58
- { context: [["what",0],["is",0],["the",0],["type",0],["propertyOf",0],["object",0]], choose: 1 },
59
- { context: [["what",0],["is",0],["the",0],["type",1],["propertyOf",0],["object",0]], choose: 1 },
60
- { context: [["what",0],["is",0],["the",0],["type",1],["propertyOf",0],["object",1]], choose: 1 },
61
- ]
62
- },
63
54
  priorities: [
64
55
  { "context": [['isEd', 0], ['is', 0], ], "choose": [1] },
65
56
  { "context": [['a', 0], ['questionMark', 0], ['is', 0], ], "choose": [0] },
@@ -1375,16 +1375,6 @@
1375
1375
  "hierarchyAble",
1376
1376
  false
1377
1377
  ],
1378
- [
1379
- "unknown",
1380
- "queryable",
1381
- false
1382
- ],
1383
- [
1384
- "unknown",
1385
- "theAble",
1386
- false
1387
- ],
1388
1378
  [
1389
1379
  "verb",
1390
1380
  "verb",
@@ -974,16 +974,6 @@
974
974
  "hierarchyAble",
975
975
  false
976
976
  ],
977
- [
978
- "unknown",
979
- "queryable",
980
- false
981
- ],
982
- [
983
- "unknown",
984
- "theAble",
985
- false
986
- ],
987
977
  [
988
978
  "verb",
989
979
  "verb",
@@ -2414,16 +2404,6 @@
2414
2404
  "hierarchyAble",
2415
2405
  false
2416
2406
  ],
2417
- [
2418
- "unknown",
2419
- "queryable",
2420
- false
2421
- ],
2422
- [
2423
- "unknown",
2424
- "theAble",
2425
- false
2426
- ],
2427
2407
  [
2428
2408
  "verb",
2429
2409
  "verb",
@@ -5038,16 +5018,6 @@
5038
5018
  "hierarchyAble",
5039
5019
  false
5040
5020
  ],
5041
- [
5042
- "unknown",
5043
- "queryable",
5044
- false
5045
- ],
5046
- [
5047
- "unknown",
5048
- "theAble",
5049
- false
5050
- ],
5051
5021
  [
5052
5022
  "verb",
5053
5023
  "verb",
@@ -6762,16 +6732,6 @@
6762
6732
  "hierarchyAble",
6763
6733
  false
6764
6734
  ],
6765
- [
6766
- "unknown",
6767
- "queryable",
6768
- false
6769
- ],
6770
- [
6771
- "unknown",
6772
- "theAble",
6773
- false
6774
- ],
6775
6735
  [
6776
6736
  "verb",
6777
6737
  "verb",
@@ -8486,16 +8446,6 @@
8486
8446
  "hierarchyAble",
8487
8447
  false
8488
8448
  ],
8489
- [
8490
- "unknown",
8491
- "queryable",
8492
- false
8493
- ],
8494
- [
8495
- "unknown",
8496
- "theAble",
8497
- false
8498
- ],
8499
8449
  [
8500
8450
  "verb",
8501
8451
  "verb",
@@ -10201,16 +10151,6 @@
10201
10151
  "hierarchyAble",
10202
10152
  false
10203
10153
  ],
10204
- [
10205
- "unknown",
10206
- "queryable",
10207
- false
10208
- ],
10209
- [
10210
- "unknown",
10211
- "theAble",
10212
- false
10213
- ],
10214
10154
  [
10215
10155
  "verb",
10216
10156
  "verb",
@@ -11926,16 +11866,6 @@
11926
11866
  "hierarchyAble",
11927
11867
  false
11928
11868
  ],
11929
- [
11930
- "unknown",
11931
- "queryable",
11932
- false
11933
- ],
11934
- [
11935
- "unknown",
11936
- "theAble",
11937
- false
11938
- ],
11939
11869
  [
11940
11870
  "verb",
11941
11871
  "verb",
@@ -13651,16 +13581,6 @@
13651
13581
  "hierarchyAble",
13652
13582
  false
13653
13583
  ],
13654
- [
13655
- "unknown",
13656
- "queryable",
13657
- false
13658
- ],
13659
- [
13660
- "unknown",
13661
- "theAble",
13662
- false
13663
- ],
13664
13584
  [
13665
13585
  "verb",
13666
13586
  "verb",
@@ -15366,16 +15286,6 @@
15366
15286
  "hierarchyAble",
15367
15287
  false
15368
15288
  ],
15369
- [
15370
- "unknown",
15371
- "queryable",
15372
- false
15373
- ],
15374
- [
15375
- "unknown",
15376
- "theAble",
15377
- false
15378
- ],
15379
15289
  [
15380
15290
  "verb",
15381
15291
  "verb",
@@ -17090,16 +17000,6 @@
17090
17000
  "hierarchyAble",
17091
17001
  false
17092
17002
  ],
17093
- [
17094
- "unknown",
17095
- "queryable",
17096
- false
17097
- ],
17098
- [
17099
- "unknown",
17100
- "theAble",
17101
- false
17102
- ],
17103
17003
  [
17104
17004
  "verb",
17105
17005
  "verb",
@@ -18814,16 +18714,6 @@
18814
18714
  "hierarchyAble",
18815
18715
  false
18816
18716
  ],
18817
- [
18818
- "unknown",
18819
- "queryable",
18820
- false
18821
- ],
18822
- [
18823
- "unknown",
18824
- "theAble",
18825
- false
18826
- ],
18827
18717
  [
18828
18718
  "verb",
18829
18719
  "verb",
@@ -20538,16 +20428,6 @@
20538
20428
  "hierarchyAble",
20539
20429
  false
20540
20430
  ],
20541
- [
20542
- "unknown",
20543
- "queryable",
20544
- false
20545
- ],
20546
- [
20547
- "unknown",
20548
- "theAble",
20549
- false
20550
- ],
20551
20431
  [
20552
20432
  "verb",
20553
20433
  "verb",
@@ -22176,16 +22056,6 @@
22176
22056
  "hierarchyAble",
22177
22057
  false
22178
22058
  ],
22179
- [
22180
- "unknown",
22181
- "queryable",
22182
- false
22183
- ],
22184
- [
22185
- "unknown",
22186
- "theAble",
22187
- false
22188
- ],
22189
22059
  [
22190
22060
  "verb",
22191
22061
  "verb",
@@ -23891,16 +23761,6 @@
23891
23761
  "hierarchyAble",
23892
23762
  false
23893
23763
  ],
23894
- [
23895
- "unknown",
23896
- "queryable",
23897
- false
23898
- ],
23899
- [
23900
- "unknown",
23901
- "theAble",
23902
- false
23903
- ],
23904
23764
  [
23905
23765
  "verb",
23906
23766
  "verb",
@@ -25616,16 +25476,6 @@
25616
25476
  "hierarchyAble",
25617
25477
  false
25618
25478
  ],
25619
- [
25620
- "unknown",
25621
- "queryable",
25622
- false
25623
- ],
25624
- [
25625
- "unknown",
25626
- "theAble",
25627
- false
25628
- ],
25629
25479
  [
25630
25480
  "verb",
25631
25481
  "verb",
@@ -784,16 +784,6 @@
784
784
  "hierarchyAble",
785
785
  false
786
786
  ],
787
- [
788
- "unknown",
789
- "queryable",
790
- false
791
- ],
792
- [
793
- "unknown",
794
- "theAble",
795
- false
796
- ],
797
787
  [
798
788
  "verb",
799
789
  "verb",
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,61 @@
1
+ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
2
+ const { defaultContextCheck } = require('./helpers')
3
+ const ui = require('./ui')
4
+ const menus_tests = require('./menus.test.json')
5
+ const menus_instance = require('./menus.instance.json')
6
+
7
+ class API {
8
+ initialize({ objects }) {
9
+ this._objects = objects
10
+ }
11
+
12
+ move(direction, steps = 1, units = undefined) {
13
+ this._objects.move = { direction, steps, units }
14
+ }
15
+
16
+ select(item) {
17
+ this._objects.select = { item }
18
+ }
19
+
20
+ unselect(item) {
21
+ this._objects.unselect = { item }
22
+ }
23
+
24
+ cancel(direction) {
25
+ this._objects.cancel = true
26
+ }
27
+
28
+ stop(action) {
29
+ this._objects.stop = action
30
+ }
31
+ }
32
+
33
+ const config = {
34
+ name: 'menus',
35
+ };
36
+
37
+ const template = {
38
+ fragments: [
39
+ ],
40
+ }
41
+
42
+ knowledgeModule({
43
+ config,
44
+ includes: [ui],
45
+ api: () => new API(),
46
+
47
+ module,
48
+ description: 'Control menues with speech',
49
+ test: {
50
+ name: './menus.test.json',
51
+ contents: menus_tests,
52
+ checks: {
53
+ objects: ['move', 'select', 'unselect', 'cancel', 'stop'],
54
+ context: defaultContextCheck(['operator', 'direction', 'moveable']),
55
+ },
56
+ },
57
+ template: {
58
+ template,
59
+ instance: menus_instance
60
+ }
61
+ })
@@ -0,0 +1,2 @@
1
+ [
2
+ ]
package/common/meta.js CHANGED
@@ -49,6 +49,13 @@ const config = {
49
49
  // forget (word)
50
50
  // what does (word) mean
51
51
  ],
52
+ associations: {
53
+ positive: [
54
+ { "context": [['*', 0], ['means', 0], ['*', 0]], "choose": 1 },
55
+ { "context": [['*', 1], ['means', 0], ['*', 0]], "choose": 1 },
56
+ { "context": [['*', 1], ['means', 0], ['*', 1]], "choose": 1 },
57
+ ]
58
+ },
52
59
  priorities: [
53
60
  { "context": [['orList', 0], ['if', 0], ['then', 0], ], "choose": [0] },
54
61
  // [['means', 0], ['is', 0]],
@@ -10,6 +10,11 @@ const config = {
10
10
  "([negatable])",
11
11
  "([not] (negatable/*))",
12
12
  ],
13
+ associations: {
14
+ positive: [
15
+ { context: [["not",0],["unknown",0]], choose: 1 },
16
+ ]
17
+ },
13
18
  bridges: [
14
19
  {
15
20
  id: 'not',
@@ -376,16 +376,6 @@
376
376
  "hierarchyAble",
377
377
  false
378
378
  ],
379
- [
380
- "unknown",
381
- "queryable",
382
- false
383
- ],
384
- [
385
- "unknown",
386
- "theAble",
387
- false
388
- ],
389
379
  [
390
380
  "verb",
391
381
  "verb",
@@ -1633,16 +1623,6 @@
1633
1623
  "hierarchyAble",
1634
1624
  false
1635
1625
  ],
1636
- [
1637
- "unknown",
1638
- "queryable",
1639
- false
1640
- ],
1641
- [
1642
- "unknown",
1643
- "theAble",
1644
- false
1645
- ],
1646
1626
  [
1647
1627
  "verb",
1648
1628
  "verb",
@@ -12,11 +12,6 @@ const config = {
12
12
  "([orderable])",
13
13
  "((ordinal/*) [ordinalOnOrdered|] (orderable/*))",
14
14
  ],
15
- associations: {
16
- positive: [
17
- { context: [['article', 0], ['ordinal', 0]], choose: 1 },
18
- ]
19
- },
20
15
  bridges: [
21
16
  {
22
17
  id: "ordinal",