tpmkms_4wp 9.0.3-beta.0 → 9.0.3-beta.2

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.
@@ -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
  }
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: {
@@ -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] },
@@ -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",