tpmkms_4wp 8.9.1-beta.4 → 8.9.1-beta.40
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.
- package/common/animals.instance.json +6736 -831
- package/common/articles.js +22 -9
- package/common/articles.test.json +640 -2
- package/common/asking.js +3 -3
- package/common/asking.test.json +1599 -140
- package/common/avatar.js +9 -1
- package/common/avatar.test.json +6008 -2749
- package/common/characters.js +1 -1
- package/common/characters.test.json +1371 -95
- package/common/colors.instance.json +23062 -1689
- package/common/colors.test.json +704 -136
- package/common/comparable.instance.json +1337 -159
- package/common/comparable.js +13 -13
- package/common/comparable.test.json +3239 -558
- package/common/concept.js +11 -3
- package/common/concept.test.json +2853 -694
- package/common/conjunction.js +13 -1
- package/common/conjunction.test.json +229 -1
- package/common/countable.js +3 -9
- package/common/countable.test.json +1310 -638
- package/common/crew.instance.json +19486 -2159
- package/common/crew.js +19 -0
- package/common/crew.test.json +10218 -2145
- package/common/currency.js +2 -3
- package/common/currency.test.json +948 -64
- package/common/dialogues.js +103 -35
- package/common/dialogues.test.json +6611 -1905
- package/common/dimension.instance.json +760 -120
- package/common/dimension.js +18 -4
- package/common/dimension.test.json +23680 -11550
- package/common/edible.instance.json +21878 -2723
- package/common/edible.js +13 -0
- package/common/edible.test.json +1580 -304
- package/common/emotions.instance.json +2224 -253
- package/common/emotions.js +10 -2
- package/common/emotions.test.json +1134 -107
- package/common/errors.js +1 -1
- package/common/errors.test.json +88 -0
- package/common/evaluate.test.json +100 -1
- package/common/events.js +1 -1
- package/common/events.test.json +2197 -242
- package/common/fastfood.instance.json +82857 -10609
- package/common/fastfood.js +99 -12
- package/common/fastfood.test.json +65486 -21430
- package/common/formulas.instance.json +325 -58
- package/common/formulas.js +1 -1
- package/common/formulas.test.json +13202 -6757
- package/common/gdefaults.js +18 -8
- package/common/help.js +4 -4
- package/common/help.test.json +292 -4
- package/common/helpers/concept.js +6 -5
- package/common/helpers/conjunction.js +1 -1
- package/common/helpers/formulas.js +4 -4
- package/common/helpers/frankenhash.js +4 -4
- package/common/helpers/meta.js +4 -4
- package/common/helpers/ordering.js +2 -2
- package/common/helpers/properties.js +18 -48
- package/common/helpers.js +1 -1
- package/common/hierarchy.js +12 -3
- package/common/hierarchy.test.json +53813 -17340
- package/common/javascript.js +1 -1
- package/common/javascript.test.json +214 -11
- package/common/kirk.instance.json +322 -7
- package/common/kirk.test.json +1123 -254
- package/common/length.instance.json +9890 -797
- package/common/length.test.json +12055 -8184
- package/common/listener.test.json +39 -1
- package/common/math.instance.json +294 -57
- package/common/math.js +1 -1
- package/common/math.test.json +38557 -17754
- package/common/meta.instance.json +1 -0
- package/common/meta.js +13 -13
- package/common/meta.test.json +2770 -275
- package/common/nameable.js +1 -1
- package/common/nameable.test.json +5150 -1475
- package/common/negation.js +1 -1
- package/common/negation.test.json +146 -8
- package/common/numbers.js +1 -1
- package/common/numbers.test.json +234 -0
- package/common/ordering.instance.json +3861 -508
- package/common/ordering.test.json +2680 -1283
- package/common/ordinals.js +12 -2
- package/common/ordinals.test.json +627 -3
- package/common/people.instance.json +4041 -652
- package/common/people.js +1 -15
- package/common/people.test.json +27157 -13664
- package/common/percentages.js +1 -2
- package/common/percentages.test.json +313 -0
- package/common/pipboy.instance.json +13628 -1529
- package/common/pipboy.js +28 -48
- package/common/pipboy.test.json +17367 -5640
- package/common/pokemon.instance.json +6163 -690
- package/common/pokemon.test.json +1826 -389
- package/common/pos.js +16 -6
- package/common/pressure.instance.json +2635 -291
- package/common/pressure.test.json +2997 -1629
- package/common/properties.instance.json +907 -128
- package/common/properties.js +19 -28
- package/common/properties.test.json +46801 -14612
- package/common/punctuation.js +1 -1
- package/common/punctuation.test.json +327 -0
- package/common/reports.instance.json +997 -118
- package/common/reports.js +16 -9
- package/common/reports.test.json +16653 -2453
- package/common/scorekeeper.instance.json +1 -0
- package/common/scorekeeper.js +22 -12
- package/common/scorekeeper.test.json +42546 -15408
- package/common/sdefaults.js +2 -2
- package/common/sizeable.js +2 -2
- package/common/sizeable.test.json +1170 -215
- package/common/spock.instance.json +322 -7
- package/common/spock.test.json +1123 -254
- package/common/stgame.js +0 -1
- package/common/stgame.test.json +1371 -91
- package/common/stm.js +6 -6
- package/common/stm.test.json +842 -9
- package/common/tell.js +1 -1
- package/common/tell.test.json +224 -1
- package/common/temperature.instance.json +5980 -285
- package/common/temperature.test.json +2610 -1272
- package/common/tester.js +1 -1
- package/common/testing.test.json +84 -1
- package/common/time.test.json +5345 -272
- package/common/tokenize.js +3 -2
- package/common/tokenize.test.json +39 -0
- package/common/ui.instance.json +139 -26
- package/common/ui.js +0 -16
- package/common/ui.test.json +4620 -140
- package/common/weight.instance.json +10025 -771
- package/common/weight.js +10 -0
- package/common/weight.test.json +18658 -12176
- package/common/wp.instance.json +15801 -1655
- package/common/wp.js +181 -49
- package/common/wp.test.json +112970 -20663
- package/common/yesno.js +1 -1
- package/common/yesno.test.json +168 -4
- package/package.json +11 -6
package/common/fastfood.js
CHANGED
@@ -69,9 +69,39 @@ 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
|
+
},
|
72
79
|
"french fries and waffle fries are fries",
|
80
|
+
{
|
81
|
+
associations: {
|
82
|
+
positive: [
|
83
|
+
{ context: [["is",0],["hamburger",0]], choose: 1 },
|
84
|
+
]
|
85
|
+
},
|
86
|
+
},
|
73
87
|
"single, double, triple, baconator, and bacon deluxe are hamburgers",
|
74
88
|
// "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
|
+
},
|
75
105
|
"spicy, homestyle, asiago ranch chicken club, ultimate chicken grill and premium cod are sandwiches",
|
76
106
|
"meals are food",
|
77
107
|
"a combo is a meal",
|
@@ -104,6 +134,24 @@ const template = {
|
|
104
134
|
"a go wrap is a sandwich",
|
105
135
|
"chicken modifies go wrap",
|
106
136
|
"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
|
+
},
|
107
155
|
"single, double, triple, baconator, bacon deluxe, spicy homestyle and premium cod are meals",
|
108
156
|
"coca modifies cola",
|
109
157
|
"diet modifies coke",
|
@@ -131,6 +179,13 @@ const template = {
|
|
131
179
|
"apple modifies slice",
|
132
180
|
"natural cut modifies fries",
|
133
181
|
"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
|
+
},
|
134
189
|
{
|
135
190
|
where: where(),
|
136
191
|
operators: [
|
@@ -275,10 +330,9 @@ const template = {
|
|
275
330
|
{ context: [['meal', 0], ['list', 0], ['meal', 0], ['comboMeal', 0]], ordered: true, choose: [0,1,2] },
|
276
331
|
// { context: [['crispy_chicken_club', 0], ['chicken_club', 0], ['chicken_sandwich', 0]], choose: [0] },
|
277
332
|
{ context: [['breakfast_baconator', 0], ['breakfast_meal', 0]], choose: [0] },
|
278
|
-
{ context: [['list', 0], ['
|
333
|
+
{ context: [['list', 0], ['article',0], ['smoothie_ingredient', 0], ['smoothie', 0]], ordered: true, choose: [1,2] },
|
279
334
|
]
|
280
335
|
},
|
281
|
-
// { stop: true },
|
282
336
|
"junior modifies crispy chicken club",
|
283
337
|
"nuggets, junior bacon cheeseburgers, chicken go wraps and junior crispy chicken clubs are value meals",
|
284
338
|
"combos, chili, fries and drinks are sizeable",
|
@@ -323,7 +377,7 @@ const template = {
|
|
323
377
|
|
324
378
|
const hasDrink = (isA, item) => {
|
325
379
|
let hasDrink = false
|
326
|
-
for (
|
380
|
+
for (const modification of (item.modifications || [])) {
|
327
381
|
if (isA(modification.id, 'drink')) {
|
328
382
|
hasDrink = true
|
329
383
|
break
|
@@ -385,7 +439,7 @@ const template = {
|
|
385
439
|
const { api, context } = args
|
386
440
|
if (isMany(context)) {
|
387
441
|
let count = getCount(context) || Number.MAX_SAFE_INTEGER
|
388
|
-
for (
|
442
|
+
for (const item of needsDrink) {
|
389
443
|
if (count < 1) {
|
390
444
|
break
|
391
445
|
}
|
@@ -471,6 +525,33 @@ const template = {
|
|
471
525
|
}
|
472
526
|
},
|
473
527
|
],
|
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
|
+
},
|
474
555
|
},
|
475
556
|
],
|
476
557
|
}
|
@@ -534,8 +615,19 @@ class API {
|
|
534
615
|
return [...this._objects.items]
|
535
616
|
}
|
536
617
|
|
618
|
+
fixUpItemId(item) {
|
619
|
+
if (item.id == 'coke') {
|
620
|
+
item.id = 'coca_cola'
|
621
|
+
}
|
622
|
+
|
623
|
+
if (item.id == 'fry') {
|
624
|
+
item.id = 'french_fry'
|
625
|
+
}
|
626
|
+
}
|
627
|
+
|
537
628
|
addDrink(item_id, drink) {
|
538
629
|
const item = this.toItem(item_id)
|
630
|
+
this.fixUpItemId(drink)
|
539
631
|
item.modifications.push(drink)
|
540
632
|
item.needsDrink = false
|
541
633
|
}
|
@@ -598,7 +690,7 @@ class API {
|
|
598
690
|
|
599
691
|
if (item.combo) {
|
600
692
|
item.needsDrink = true
|
601
|
-
for (
|
693
|
+
for (const modification of item.modifications || []) {
|
602
694
|
// TODO check for awailable
|
603
695
|
if (this.args.isA(modification.id, 'drink')) {
|
604
696
|
item.needsDrink = false
|
@@ -606,13 +698,8 @@ class API {
|
|
606
698
|
}
|
607
699
|
}
|
608
700
|
|
609
|
-
if (item.id == 'coke') {
|
610
|
-
item.id = 'coca_cola'
|
611
|
-
}
|
612
701
|
|
613
|
-
|
614
|
-
item.id = 'french_fry'
|
615
|
-
}
|
702
|
+
this.fixUpItemId(item)
|
616
703
|
|
617
704
|
return [
|
618
705
|
"hamburger",
|
@@ -939,7 +1026,7 @@ const config = {
|
|
939
1026
|
name: 'fastfood',
|
940
1027
|
operators: [
|
941
1028
|
"([orderNoun|order])",
|
942
|
-
"([showOrder|show] ([orderNoun/
|
1029
|
+
"([showOrder|show] ([orderNoun/0]))",
|
943
1030
|
],
|
944
1031
|
// flatten: ['list'],
|
945
1032
|
// TODO use node naming not python
|