tpmkms_4wp 9.5.1-beta.3 → 9.5.1-beta.31
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 +21 -61
- package/common/asking.js +112 -102
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2174 -0
- package/common/can.js +254 -0
- package/common/can.test.json +51307 -0
- package/common/characters.js +3 -3
- package/common/colors.instance.json +10 -10
- package/common/comparable.instance.json +2 -2
- package/common/concept.js +19 -22
- package/common/concept.test.json +54 -40
- package/common/conjunction.js +13 -5
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +164 -150
- package/common/crew.js +1 -1
- package/common/currency.js +1 -1
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +3 -3
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +3 -3
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +41 -119
- package/common/dialogues.test.json +1171 -996
- package/common/dimension.instance.json +21374 -562
- package/common/dimension.js +145 -51
- package/common/dimension.test.json +8753 -3495
- package/common/drone.instance.json +23710 -0
- package/common/drone.js +429 -0
- package/common/drone.test.json +61113 -0
- package/common/edible.instance.json +23 -95
- package/common/emotions.instance.json +53 -80
- package/common/emotions.js +1 -1
- package/common/english_helpers.js +277 -67
- package/common/fastfood.instance.json +180 -372
- package/common/fastfood.js +4 -4
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +1 -1
- package/common/gdefaults.js +94 -17
- package/common/help.js +11 -11
- package/common/help.test.json +65 -11
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +7 -2
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +8 -8
- package/common/helpers/properties.js +104 -23
- package/common/helpers.js +114 -48
- package/common/hierarchy.js +6 -4
- package/common/kirk.instance.json +1 -1
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +10 -10
- package/common/latin.js +5 -5
- package/common/length.instance.json +27612 -2890
- package/common/length.js +6 -1
- package/common/length.test.json +45315 -3925
- package/common/math.instance.json +20 -20
- package/common/math.js +45 -44
- package/common/menus.instance.json +6 -9
- package/common/menus.js +2 -9
- package/common/meta.js +50 -33
- package/common/nameable.js +13 -6
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +20 -30
- package/common/ordering.js +1 -1
- package/common/ordering.test.json +414 -426
- package/common/people.instance.json +82 -348
- package/common/people.js +1 -1
- package/common/people.test.json +952 -681
- package/common/pipboy.instance.json +16 -16
- package/common/pokemon.instance.json +8 -8
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +3579 -1610
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +6 -17
- package/common/properties.js +19 -6
- package/common/properties.test.json +8746 -6638
- package/common/rates.instance.json +59 -0
- package/common/rates.js +97 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.js +1 -1
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +3 -3
- package/common/reports.js +18 -16
- package/common/scorekeeper.js +4 -4
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +1 -1
- package/common/spock.test.json +606 -430
- package/common/stgame.js +1 -1
- package/common/stm.js +15 -4
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +3786 -1705
- package/common/temperature.test.json +433 -477
- package/common/tester.js +3 -3
- package/common/time.instance.json +24762 -0
- package/common/time.js +137 -141
- package/common/time.test.json +31876 -3757
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +2 -5
- package/common/ui.js +1 -8
- package/common/weight.instance.json +10359 -4077
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +53 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +336 -8
- package/common/wp.js +8 -4
- package/common/wp.test.json +7385 -6906
- package/main.js +4 -2
- package/package.json +18 -5
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
]
|
|
902
902
|
},
|
|
903
903
|
{
|
|
904
|
-
"apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n
|
|
904
|
+
"apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n function hasDrink(isA, item) {\n let hasDrink = false\n for (const modification of (item.modifications || [])) {\n if (isA(modification.id, 'drink')) {\n hasDrink = true\n break\n }\n }\n return hasDrink\n }\n\n function needsDrink (item) {\n return item.needsDrink\n }\n\n function askAbout({api, isA}) {\n const items = []\n for (const item of api.items()) {\n if (needsDrink(item) && !hasDrink(isA, item)) {\n items.push(item)\n }\n }\n return items\n }\n\n ask([\n {\n where: where(),\n oneShot: false,\n onNevermind: ({verbatim, ...args}) => {\n // this is cross km boundaries from the dialogues km to this one so the api if for dialogs. \n // i need to get the one for fastfood here.\n const api = args.kms.fastfood.api\n const needsDrink = askAbout({ args, api })\n for (const item of needsDrink) {\n api.remove(item)\n }\n },\n matchq: (args) => askAbout(args).length > 0 && args.context.marker == 'controlEnd',\n applyq: (args) => {\n args.context.cascade = true\n const needsDrink = askAbout(args)\n // const details = args.gp({ marker: 'list', value: needsDrink.map((item) => item.food)})\n if (needsDrink.length > 1) {\n return `What drinks do you want?`\n } else {\n return `What drink do you want?`\n }\n },\n matchr: (args) => {\n if (args.isA(args.context.marker, 'drink') && askAbout(args).length > 0) {\n const needsDrink = askAbout(args)\n if (args.api.isAvailableModification(needsDrink[0].food, { ...args.context , id: args.context.value })) {\n return true\n }\n }\n return false\n },\n applyr: (args) => {\n // TODO check for is available for all modifications\n const needsDrink = askAbout(args)\n const { api, context } = args\n if (isMany(context)) {\n let count = getCount(context) || Number.MAX_SAFE_INTEGER\n for (const item of needsDrink) {\n if (count < 1) {\n break\n }\n count -= 1\n api.addDrink(item.item_id, { id: context.value }) \n }\n } else {\n const item_id = needsDrink[0].item_id\n api.addDrink(item_id, { id: context.value }) \n }\n }\n },\n ])\n }"
|
|
905
905
|
},
|
|
906
906
|
{
|
|
907
907
|
"operators": [
|
|
@@ -4137,7 +4137,7 @@
|
|
|
4137
4137
|
"word": "food",
|
|
4138
4138
|
"range": {
|
|
4139
4139
|
"start": 0,
|
|
4140
|
-
"end":
|
|
4140
|
+
"end": 3
|
|
4141
4141
|
},
|
|
4142
4142
|
"dead": true,
|
|
4143
4143
|
"types": [
|
|
@@ -7197,7 +7197,7 @@
|
|
|
7197
7197
|
"word": "drinks",
|
|
7198
7198
|
"range": {
|
|
7199
7199
|
"start": 0,
|
|
7200
|
-
"end":
|
|
7200
|
+
"end": 5
|
|
7201
7201
|
},
|
|
7202
7202
|
"dead": true,
|
|
7203
7203
|
"types": [
|
|
@@ -39627,7 +39627,7 @@
|
|
|
39627
39627
|
"word": "club",
|
|
39628
39628
|
"range": {
|
|
39629
39629
|
"start": 0,
|
|
39630
|
-
"end":
|
|
39630
|
+
"end": 3
|
|
39631
39631
|
},
|
|
39632
39632
|
"dead": true,
|
|
39633
39633
|
"types": [
|
|
@@ -69467,7 +69467,7 @@
|
|
|
69467
69467
|
"word": "fries",
|
|
69468
69468
|
"range": {
|
|
69469
69469
|
"start": 0,
|
|
69470
|
-
"end":
|
|
69470
|
+
"end": 11
|
|
69471
69471
|
},
|
|
69472
69472
|
"types": [
|
|
69473
69473
|
"fry",
|
|
@@ -89029,7 +89029,7 @@
|
|
|
89029
89029
|
""
|
|
89030
89030
|
],
|
|
89031
89031
|
"paraphrases": [
|
|
89032
|
-
"strawberry, guava, mango passion, wild berry and strawberry banana
|
|
89032
|
+
"strawberry, guava, mango passion, wild berry and strawberry banana modify smoothie"
|
|
89033
89033
|
],
|
|
89034
89034
|
"paraphrasesParenthesized": [],
|
|
89035
89035
|
"generatedParenthesized": [],
|
|
@@ -96141,7 +96141,7 @@
|
|
|
96141
96141
|
"text": "strawberry, guava, mango passion, wild berry, and strawberry banana",
|
|
96142
96142
|
"range": {
|
|
96143
96143
|
"start": 0,
|
|
96144
|
-
"end":
|
|
96144
|
+
"end": 66
|
|
96145
96145
|
},
|
|
96146
96146
|
"types": [
|
|
96147
96147
|
"guava",
|
|
@@ -109138,7 +109138,7 @@
|
|
|
109138
109138
|
"text": "strawberry, guava, mango passion, wild berry, and strawberry banana",
|
|
109139
109139
|
"range": {
|
|
109140
109140
|
"start": 0,
|
|
109141
|
-
"end":
|
|
109141
|
+
"end": 66
|
|
109142
109142
|
},
|
|
109143
109143
|
"types": [
|
|
109144
109144
|
"guava",
|
|
@@ -109717,28 +109717,6 @@
|
|
|
109717
109717
|
0
|
|
109718
109718
|
]
|
|
109719
109719
|
],
|
|
109720
|
-
[
|
|
109721
|
-
[
|
|
109722
|
-
"ingredient",
|
|
109723
|
-
0
|
|
109724
|
-
],
|
|
109725
|
-
[
|
|
109726
|
-
"is",
|
|
109727
|
-
0
|
|
109728
|
-
],
|
|
109729
|
-
[
|
|
109730
|
-
"list",
|
|
109731
|
-
1
|
|
109732
|
-
],
|
|
109733
|
-
[
|
|
109734
|
-
"smoothie",
|
|
109735
|
-
0
|
|
109736
|
-
],
|
|
109737
|
-
[
|
|
109738
|
-
"strawberry",
|
|
109739
|
-
0
|
|
109740
|
-
]
|
|
109741
|
-
],
|
|
109742
109720
|
[
|
|
109743
109721
|
[
|
|
109744
109722
|
"is",
|
|
@@ -116562,7 +116540,7 @@
|
|
|
116562
116540
|
"word": "smoothie",
|
|
116563
116541
|
"range": {
|
|
116564
116542
|
"start": 0,
|
|
116565
|
-
"end":
|
|
116543
|
+
"end": 9
|
|
116566
116544
|
},
|
|
116567
116545
|
"dead": true,
|
|
116568
116546
|
"types": [
|
|
@@ -122224,7 +122202,7 @@
|
|
|
122224
122202
|
"text": "french fries and waffle fries",
|
|
122225
122203
|
"range": {
|
|
122226
122204
|
"start": 0,
|
|
122227
|
-
"end":
|
|
122205
|
+
"end": 28
|
|
122228
122206
|
},
|
|
122229
122207
|
"types": [
|
|
122230
122208
|
"french_fry",
|
|
@@ -128406,7 +128384,7 @@
|
|
|
128406
128384
|
"text": "single, double, triple, baconator, and bacon deluxe",
|
|
128407
128385
|
"range": {
|
|
128408
128386
|
"start": 0,
|
|
128409
|
-
"end":
|
|
128387
|
+
"end": 50
|
|
128410
128388
|
},
|
|
128411
128389
|
"types": [
|
|
128412
128390
|
"bacon_deluxe",
|
|
@@ -136306,7 +136284,7 @@
|
|
|
136306
136284
|
"text": "spicy, homestyle, asiago ranch chicken club, ultimate chicken grill and premium cod",
|
|
136307
136285
|
"range": {
|
|
136308
136286
|
"start": 0,
|
|
136309
|
-
"end":
|
|
136287
|
+
"end": 82
|
|
136310
136288
|
},
|
|
136311
136289
|
"types": [
|
|
136312
136290
|
"asiago_ranch_chicken_club",
|
|
@@ -144449,7 +144427,7 @@
|
|
|
144449
144427
|
"word": "meals",
|
|
144450
144428
|
"range": {
|
|
144451
144429
|
"start": 0,
|
|
144452
|
-
"end":
|
|
144430
|
+
"end": 4
|
|
144453
144431
|
},
|
|
144454
144432
|
"dead": true,
|
|
144455
144433
|
"types": [
|
|
@@ -150205,7 +150183,7 @@
|
|
|
150205
150183
|
"word": "combo",
|
|
150206
150184
|
"range": {
|
|
150207
150185
|
"start": 0,
|
|
150208
|
-
"end":
|
|
150186
|
+
"end": 6
|
|
150209
150187
|
},
|
|
150210
150188
|
"dead": true,
|
|
150211
150189
|
"types": [
|
|
@@ -150305,24 +150283,6 @@
|
|
|
150305
150283
|
0
|
|
150306
150284
|
]
|
|
150307
150285
|
],
|
|
150308
|
-
[
|
|
150309
|
-
[
|
|
150310
|
-
"a",
|
|
150311
|
-
0
|
|
150312
|
-
],
|
|
150313
|
-
[
|
|
150314
|
-
"is",
|
|
150315
|
-
0
|
|
150316
|
-
],
|
|
150317
|
-
[
|
|
150318
|
-
"meal",
|
|
150319
|
-
0
|
|
150320
|
-
],
|
|
150321
|
-
[
|
|
150322
|
-
"unknown",
|
|
150323
|
-
0
|
|
150324
|
-
]
|
|
150325
|
-
],
|
|
150326
150286
|
[
|
|
150327
150287
|
[
|
|
150328
150288
|
"is",
|
|
@@ -156182,7 +156142,7 @@
|
|
|
156182
156142
|
"word": "chili",
|
|
156183
156143
|
"range": {
|
|
156184
156144
|
"start": 0,
|
|
156185
|
-
"end":
|
|
156145
|
+
"end": 4
|
|
156186
156146
|
},
|
|
156187
156147
|
"dead": true,
|
|
156188
156148
|
"types": [
|
|
@@ -162092,7 +162052,7 @@
|
|
|
162092
162052
|
"word": "shake",
|
|
162093
162053
|
"range": {
|
|
162094
162054
|
"start": 0,
|
|
162095
|
-
"end":
|
|
162055
|
+
"end": 6
|
|
162096
162056
|
},
|
|
162097
162057
|
"dead": true,
|
|
162098
162058
|
"types": [
|
|
@@ -210058,7 +210018,7 @@
|
|
|
210058
210018
|
"word": "frosty",
|
|
210059
210019
|
"range": {
|
|
210060
210020
|
"start": 0,
|
|
210061
|
-
"end":
|
|
210021
|
+
"end": 5
|
|
210062
210022
|
},
|
|
210063
210023
|
"dead": true,
|
|
210064
210024
|
"types": [
|
|
@@ -327172,7 +327132,7 @@
|
|
|
327172
327132
|
"word": "wrap",
|
|
327173
327133
|
"range": {
|
|
327174
327134
|
"start": 0,
|
|
327175
|
-
"end":
|
|
327135
|
+
"end": 8
|
|
327176
327136
|
},
|
|
327177
327137
|
"types": [
|
|
327178
327138
|
"go_wrap",
|
|
@@ -344610,7 +344570,7 @@
|
|
|
344610
344570
|
"text": "breakfast baconator, french toast sandwich, egg muffin, chicken on french toast, pancake platter, double sausage muffin, pancakes, french toast and oatmeal",
|
|
344611
344571
|
"range": {
|
|
344612
344572
|
"start": 0,
|
|
344613
|
-
"end":
|
|
344573
|
+
"end": 154
|
|
344614
344574
|
},
|
|
344615
344575
|
"types": [
|
|
344616
344576
|
"breakfast_baconator",
|
|
@@ -345369,6 +345329,80 @@
|
|
|
345369
345329
|
0
|
|
345370
345330
|
]
|
|
345371
345331
|
],
|
|
345332
|
+
[
|
|
345333
|
+
[
|
|
345334
|
+
"breakfast",
|
|
345335
|
+
0
|
|
345336
|
+
],
|
|
345337
|
+
[
|
|
345338
|
+
"breakfast_baconator",
|
|
345339
|
+
0
|
|
345340
|
+
],
|
|
345341
|
+
[
|
|
345342
|
+
"chicken",
|
|
345343
|
+
0
|
|
345344
|
+
],
|
|
345345
|
+
[
|
|
345346
|
+
"comma",
|
|
345347
|
+
0
|
|
345348
|
+
],
|
|
345349
|
+
[
|
|
345350
|
+
"double",
|
|
345351
|
+
0
|
|
345352
|
+
],
|
|
345353
|
+
[
|
|
345354
|
+
"egg",
|
|
345355
|
+
0
|
|
345356
|
+
],
|
|
345357
|
+
[
|
|
345358
|
+
"french",
|
|
345359
|
+
0
|
|
345360
|
+
],
|
|
345361
|
+
[
|
|
345362
|
+
"french_toast_sandwich",
|
|
345363
|
+
0
|
|
345364
|
+
],
|
|
345365
|
+
[
|
|
345366
|
+
"is",
|
|
345367
|
+
0
|
|
345368
|
+
],
|
|
345369
|
+
[
|
|
345370
|
+
"list",
|
|
345371
|
+
0
|
|
345372
|
+
],
|
|
345373
|
+
[
|
|
345374
|
+
"meal",
|
|
345375
|
+
0
|
|
345376
|
+
],
|
|
345377
|
+
[
|
|
345378
|
+
"muffin",
|
|
345379
|
+
0
|
|
345380
|
+
],
|
|
345381
|
+
[
|
|
345382
|
+
"oatmeal",
|
|
345383
|
+
0
|
|
345384
|
+
],
|
|
345385
|
+
[
|
|
345386
|
+
"on",
|
|
345387
|
+
0
|
|
345388
|
+
],
|
|
345389
|
+
[
|
|
345390
|
+
"pancake",
|
|
345391
|
+
0
|
|
345392
|
+
],
|
|
345393
|
+
[
|
|
345394
|
+
"platter",
|
|
345395
|
+
0
|
|
345396
|
+
],
|
|
345397
|
+
[
|
|
345398
|
+
"sausage",
|
|
345399
|
+
0
|
|
345400
|
+
],
|
|
345401
|
+
[
|
|
345402
|
+
"toast",
|
|
345403
|
+
0
|
|
345404
|
+
]
|
|
345405
|
+
],
|
|
345372
345406
|
[
|
|
345373
345407
|
[
|
|
345374
345408
|
"breakfast",
|
|
@@ -345719,7 +345753,7 @@
|
|
|
345719
345753
|
0
|
|
345720
345754
|
],
|
|
345721
345755
|
[
|
|
345722
|
-
"
|
|
345756
|
+
"platter",
|
|
345723
345757
|
0
|
|
345724
345758
|
],
|
|
345725
345759
|
[
|
|
@@ -360063,7 +360097,7 @@
|
|
|
360063
360097
|
"text": "single, double, triple, baconator, bacon deluxe, spicy homestyle and premium cod",
|
|
360064
360098
|
"range": {
|
|
360065
360099
|
"start": 0,
|
|
360066
|
-
"end":
|
|
360100
|
+
"end": 79
|
|
360067
360101
|
},
|
|
360068
360102
|
"types": [
|
|
360069
360103
|
"bacon_deluxe",
|
|
@@ -360462,64 +360496,6 @@
|
|
|
360462
360496
|
0
|
|
360463
360497
|
]
|
|
360464
360498
|
],
|
|
360465
|
-
[
|
|
360466
|
-
[
|
|
360467
|
-
"bacon",
|
|
360468
|
-
0
|
|
360469
|
-
],
|
|
360470
|
-
[
|
|
360471
|
-
"baconator",
|
|
360472
|
-
0
|
|
360473
|
-
],
|
|
360474
|
-
[
|
|
360475
|
-
"cod",
|
|
360476
|
-
0
|
|
360477
|
-
],
|
|
360478
|
-
[
|
|
360479
|
-
"comma",
|
|
360480
|
-
0
|
|
360481
|
-
],
|
|
360482
|
-
[
|
|
360483
|
-
"deluxe",
|
|
360484
|
-
0
|
|
360485
|
-
],
|
|
360486
|
-
[
|
|
360487
|
-
"double",
|
|
360488
|
-
0
|
|
360489
|
-
],
|
|
360490
|
-
[
|
|
360491
|
-
"homestyle",
|
|
360492
|
-
0
|
|
360493
|
-
],
|
|
360494
|
-
[
|
|
360495
|
-
"is",
|
|
360496
|
-
0
|
|
360497
|
-
],
|
|
360498
|
-
[
|
|
360499
|
-
"list",
|
|
360500
|
-
0
|
|
360501
|
-
],
|
|
360502
|
-
[
|
|
360503
|
-
"meal",
|
|
360504
|
-
0
|
|
360505
|
-
],
|
|
360506
|
-
[
|
|
360507
|
-
"premium",
|
|
360508
|
-
0
|
|
360509
|
-
],
|
|
360510
|
-
[
|
|
360511
|
-
"single",
|
|
360512
|
-
0
|
|
360513
|
-
],
|
|
360514
|
-
[
|
|
360515
|
-
"spicy",
|
|
360516
|
-
0
|
|
360517
|
-
],
|
|
360518
|
-
[
|
|
360519
|
-
"triple",
|
|
360520
|
-
0
|
|
360521
|
-
]
|
|
360522
|
-
],
|
|
360523
360499
|
[
|
|
360524
360500
|
[
|
|
360525
360501
|
"bacon_deluxe",
|
|
@@ -395706,7 +395682,7 @@
|
|
|
395706
395682
|
"text": "coke, coca cola, diet coke, sprite, fanta, barqs and iced tea",
|
|
395707
395683
|
"range": {
|
|
395708
395684
|
"start": 0,
|
|
395709
|
-
"end":
|
|
395685
|
+
"end": 60
|
|
395710
395686
|
},
|
|
395711
395687
|
"types": [
|
|
395712
395688
|
"coca_cola",
|
|
@@ -476151,7 +476127,7 @@
|
|
|
476151
476127
|
"text": "fries and drinks",
|
|
476152
476128
|
"range": {
|
|
476153
476129
|
"start": 0,
|
|
476154
|
-
"end":
|
|
476130
|
+
"end": 15
|
|
476155
476131
|
},
|
|
476156
476132
|
"types": [
|
|
476157
476133
|
"drink",
|
|
@@ -485405,7 +485381,7 @@
|
|
|
485405
485381
|
""
|
|
485406
485382
|
],
|
|
485407
485383
|
"paraphrases": [
|
|
485408
|
-
"broccoli and cheddar literally
|
|
485384
|
+
"broccoli and cheddar literally modify potato"
|
|
485409
485385
|
],
|
|
485410
485386
|
"paraphrasesParenthesized": [],
|
|
485411
485387
|
"generatedParenthesized": [],
|
|
@@ -494724,7 +494700,7 @@
|
|
|
494724
494700
|
""
|
|
494725
494701
|
],
|
|
494726
494702
|
"paraphrases": [
|
|
494727
|
-
"bacon and cheddar literally
|
|
494703
|
+
"bacon and cheddar literally modify potato"
|
|
494728
494704
|
],
|
|
494729
494705
|
"paraphrasesParenthesized": [],
|
|
494730
494706
|
"generatedParenthesized": [],
|
|
@@ -504120,7 +504096,7 @@
|
|
|
504120
504096
|
""
|
|
504121
504097
|
],
|
|
504122
504098
|
"paraphrases": [
|
|
504123
|
-
"chili and cheese literally
|
|
504099
|
+
"chili and cheese literally modify potato"
|
|
504124
504100
|
],
|
|
504125
504101
|
"paraphrasesParenthesized": [],
|
|
504126
504102
|
"generatedParenthesized": [],
|
|
@@ -541514,7 +541490,7 @@
|
|
|
541514
541490
|
"word": "water",
|
|
541515
541491
|
"range": {
|
|
541516
541492
|
"start": 0,
|
|
541517
|
-
"end":
|
|
541493
|
+
"end": 12
|
|
541518
541494
|
},
|
|
541519
541495
|
"types": [
|
|
541520
541496
|
"bottled_water",
|
|
@@ -570901,7 +570877,7 @@
|
|
|
570901
570877
|
"text": "hamburgers, cheeseburgers, crispy chicken and nuggets",
|
|
570902
570878
|
"range": {
|
|
570903
570879
|
"start": 0,
|
|
570904
|
-
"end":
|
|
570880
|
+
"end": 52
|
|
570905
570881
|
},
|
|
570906
570882
|
"types": [
|
|
570907
570883
|
"cheeseburger",
|
|
@@ -593232,7 +593208,7 @@
|
|
|
593232
593208
|
"text": "nuggets, junior bacon cheeseburgers, chicken go wraps and junior crispy chicken clubs",
|
|
593233
593209
|
"range": {
|
|
593234
593210
|
"start": 0,
|
|
593235
|
-
"end":
|
|
593211
|
+
"end": 84
|
|
593236
593212
|
},
|
|
593237
593213
|
"types": [
|
|
593238
593214
|
"chicken_go_wrap",
|
|
@@ -593643,60 +593619,6 @@
|
|
|
593643
593619
|
0
|
|
593644
593620
|
]
|
|
593645
593621
|
],
|
|
593646
|
-
[
|
|
593647
|
-
[
|
|
593648
|
-
"bacon",
|
|
593649
|
-
0
|
|
593650
|
-
],
|
|
593651
|
-
[
|
|
593652
|
-
"cheeseburger",
|
|
593653
|
-
0
|
|
593654
|
-
],
|
|
593655
|
-
[
|
|
593656
|
-
"chicken",
|
|
593657
|
-
0
|
|
593658
|
-
],
|
|
593659
|
-
[
|
|
593660
|
-
"club",
|
|
593661
|
-
0
|
|
593662
|
-
],
|
|
593663
|
-
[
|
|
593664
|
-
"comma",
|
|
593665
|
-
0
|
|
593666
|
-
],
|
|
593667
|
-
[
|
|
593668
|
-
"crispy",
|
|
593669
|
-
0
|
|
593670
|
-
],
|
|
593671
|
-
[
|
|
593672
|
-
"go",
|
|
593673
|
-
0
|
|
593674
|
-
],
|
|
593675
|
-
[
|
|
593676
|
-
"is",
|
|
593677
|
-
0
|
|
593678
|
-
],
|
|
593679
|
-
[
|
|
593680
|
-
"junior",
|
|
593681
|
-
0
|
|
593682
|
-
],
|
|
593683
|
-
[
|
|
593684
|
-
"list",
|
|
593685
|
-
0
|
|
593686
|
-
],
|
|
593687
|
-
[
|
|
593688
|
-
"meal",
|
|
593689
|
-
0
|
|
593690
|
-
],
|
|
593691
|
-
[
|
|
593692
|
-
"value",
|
|
593693
|
-
0
|
|
593694
|
-
],
|
|
593695
|
-
[
|
|
593696
|
-
"wrap",
|
|
593697
|
-
0
|
|
593698
|
-
]
|
|
593699
|
-
],
|
|
593700
593622
|
[
|
|
593701
593623
|
[
|
|
593702
593624
|
"bacon_cheeseburger",
|
|
@@ -594099,24 +594021,6 @@
|
|
|
594099
594021
|
0
|
|
594100
594022
|
]
|
|
594101
594023
|
],
|
|
594102
|
-
[
|
|
594103
|
-
[
|
|
594104
|
-
"is",
|
|
594105
|
-
0
|
|
594106
|
-
],
|
|
594107
|
-
[
|
|
594108
|
-
"list",
|
|
594109
|
-
1
|
|
594110
|
-
],
|
|
594111
|
-
[
|
|
594112
|
-
"meal",
|
|
594113
|
-
0
|
|
594114
|
-
],
|
|
594115
|
-
[
|
|
594116
|
-
"value",
|
|
594117
|
-
0
|
|
594118
|
-
]
|
|
594119
|
-
],
|
|
594120
594024
|
[
|
|
594121
594025
|
[
|
|
594122
594026
|
"is",
|
|
@@ -606001,7 +605905,7 @@
|
|
|
606001
605905
|
"text": "combos, chili, fries and drinks",
|
|
606002
605906
|
"range": {
|
|
606003
605907
|
"start": 0,
|
|
606004
|
-
"end":
|
|
605908
|
+
"end": 30
|
|
606005
605909
|
},
|
|
606006
605910
|
"types": [
|
|
606007
605911
|
"chili",
|
|
@@ -606978,7 +606882,7 @@
|
|
|
606978
606882
|
]
|
|
606979
606883
|
},
|
|
606980
606884
|
{
|
|
606981
|
-
"apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n
|
|
606885
|
+
"apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n function hasDrink(isA, item) {\n let hasDrink = false\n for (const modification of (item.modifications || [])) {\n if (isA(modification.id, 'drink')) {\n hasDrink = true\n break\n }\n }\n return hasDrink\n }\n\n function needsDrink (item) {\n return item.needsDrink\n }\n\n function askAbout({api, isA}) {\n const items = []\n for (const item of api.items()) {\n if (needsDrink(item) && !hasDrink(isA, item)) {\n items.push(item)\n }\n }\n return items\n }\n\n ask([\n {\n where: where(),\n oneShot: false,\n onNevermind: ({verbatim, ...args}) => {\n // this is cross km boundaries from the dialogues km to this one so the api if for dialogs. \n // i need to get the one for fastfood here.\n const api = args.kms.fastfood.api\n const needsDrink = askAbout({ args, api })\n for (const item of needsDrink) {\n api.remove(item)\n }\n },\n matchq: (args) => askAbout(args).length > 0 && args.context.marker == 'controlEnd',\n applyq: (args) => {\n args.context.cascade = true\n const needsDrink = askAbout(args)\n // const details = args.gp({ marker: 'list', value: needsDrink.map((item) => item.food)})\n if (needsDrink.length > 1) {\n return `What drinks do you want?`\n } else {\n return `What drink do you want?`\n }\n },\n matchr: (args) => {\n if (args.isA(args.context.marker, 'drink') && askAbout(args).length > 0) {\n const needsDrink = askAbout(args)\n if (args.api.isAvailableModification(needsDrink[0].food, { ...args.context , id: args.context.value })) {\n return true\n }\n }\n return false\n },\n applyr: (args) => {\n // TODO check for is available for all modifications\n const needsDrink = askAbout(args)\n const { api, context } = args\n if (isMany(context)) {\n let count = getCount(context) || Number.MAX_SAFE_INTEGER\n for (const item of needsDrink) {\n if (count < 1) {\n break\n }\n count -= 1\n api.addDrink(item.item_id, { id: context.value }) \n }\n } else {\n const item_id = needsDrink[0].item_id\n api.addDrink(item_id, { id: context.value }) \n }\n }\n },\n ])\n }"
|
|
606982
606886
|
},
|
|
606983
606887
|
{
|
|
606984
606888
|
"extraConfig": true,
|
|
@@ -607551,24 +607455,6 @@
|
|
|
607551
607455
|
0
|
|
607552
607456
|
]
|
|
607553
607457
|
],
|
|
607554
|
-
[
|
|
607555
|
-
[
|
|
607556
|
-
"a",
|
|
607557
|
-
0
|
|
607558
|
-
],
|
|
607559
|
-
[
|
|
607560
|
-
"is",
|
|
607561
|
-
0
|
|
607562
|
-
],
|
|
607563
|
-
[
|
|
607564
|
-
"meal",
|
|
607565
|
-
0
|
|
607566
|
-
],
|
|
607567
|
-
[
|
|
607568
|
-
"unknown",
|
|
607569
|
-
0
|
|
607570
|
-
]
|
|
607571
|
-
],
|
|
607572
607458
|
[
|
|
607573
607459
|
[
|
|
607574
607460
|
"a",
|
|
@@ -607959,64 +607845,6 @@
|
|
|
607959
607845
|
0
|
|
607960
607846
|
]
|
|
607961
607847
|
],
|
|
607962
|
-
[
|
|
607963
|
-
[
|
|
607964
|
-
"bacon",
|
|
607965
|
-
0
|
|
607966
|
-
],
|
|
607967
|
-
[
|
|
607968
|
-
"baconator",
|
|
607969
|
-
0
|
|
607970
|
-
],
|
|
607971
|
-
[
|
|
607972
|
-
"cod",
|
|
607973
|
-
0
|
|
607974
|
-
],
|
|
607975
|
-
[
|
|
607976
|
-
"comma",
|
|
607977
|
-
0
|
|
607978
|
-
],
|
|
607979
|
-
[
|
|
607980
|
-
"deluxe",
|
|
607981
|
-
0
|
|
607982
|
-
],
|
|
607983
|
-
[
|
|
607984
|
-
"double",
|
|
607985
|
-
0
|
|
607986
|
-
],
|
|
607987
|
-
[
|
|
607988
|
-
"homestyle",
|
|
607989
|
-
0
|
|
607990
|
-
],
|
|
607991
|
-
[
|
|
607992
|
-
"is",
|
|
607993
|
-
0
|
|
607994
|
-
],
|
|
607995
|
-
[
|
|
607996
|
-
"list",
|
|
607997
|
-
0
|
|
607998
|
-
],
|
|
607999
|
-
[
|
|
608000
|
-
"meal",
|
|
608001
|
-
0
|
|
608002
|
-
],
|
|
608003
|
-
[
|
|
608004
|
-
"premium",
|
|
608005
|
-
0
|
|
608006
|
-
],
|
|
608007
|
-
[
|
|
608008
|
-
"single",
|
|
608009
|
-
0
|
|
608010
|
-
],
|
|
608011
|
-
[
|
|
608012
|
-
"spicy",
|
|
608013
|
-
0
|
|
608014
|
-
],
|
|
608015
|
-
[
|
|
608016
|
-
"triple",
|
|
608017
|
-
0
|
|
608018
|
-
]
|
|
608019
|
-
],
|
|
608020
607848
|
[
|
|
608021
607849
|
[
|
|
608022
607850
|
"bacon",
|
|
@@ -608155,60 +607983,6 @@
|
|
|
608155
607983
|
0
|
|
608156
607984
|
]
|
|
608157
607985
|
],
|
|
608158
|
-
[
|
|
608159
|
-
[
|
|
608160
|
-
"bacon",
|
|
608161
|
-
0
|
|
608162
|
-
],
|
|
608163
|
-
[
|
|
608164
|
-
"cheeseburger",
|
|
608165
|
-
0
|
|
608166
|
-
],
|
|
608167
|
-
[
|
|
608168
|
-
"chicken",
|
|
608169
|
-
0
|
|
608170
|
-
],
|
|
608171
|
-
[
|
|
608172
|
-
"club",
|
|
608173
|
-
0
|
|
608174
|
-
],
|
|
608175
|
-
[
|
|
608176
|
-
"comma",
|
|
608177
|
-
0
|
|
608178
|
-
],
|
|
608179
|
-
[
|
|
608180
|
-
"crispy",
|
|
608181
|
-
0
|
|
608182
|
-
],
|
|
608183
|
-
[
|
|
608184
|
-
"go",
|
|
608185
|
-
0
|
|
608186
|
-
],
|
|
608187
|
-
[
|
|
608188
|
-
"is",
|
|
608189
|
-
0
|
|
608190
|
-
],
|
|
608191
|
-
[
|
|
608192
|
-
"junior",
|
|
608193
|
-
0
|
|
608194
|
-
],
|
|
608195
|
-
[
|
|
608196
|
-
"list",
|
|
608197
|
-
0
|
|
608198
|
-
],
|
|
608199
|
-
[
|
|
608200
|
-
"meal",
|
|
608201
|
-
0
|
|
608202
|
-
],
|
|
608203
|
-
[
|
|
608204
|
-
"value",
|
|
608205
|
-
0
|
|
608206
|
-
],
|
|
608207
|
-
[
|
|
608208
|
-
"wrap",
|
|
608209
|
-
0
|
|
608210
|
-
]
|
|
608211
|
-
],
|
|
608212
607986
|
[
|
|
608213
607987
|
[
|
|
608214
607988
|
"bacon",
|
|
@@ -609497,6 +609271,80 @@
|
|
|
609497
609271
|
0
|
|
609498
609272
|
]
|
|
609499
609273
|
],
|
|
609274
|
+
[
|
|
609275
|
+
[
|
|
609276
|
+
"breakfast",
|
|
609277
|
+
0
|
|
609278
|
+
],
|
|
609279
|
+
[
|
|
609280
|
+
"breakfast_baconator",
|
|
609281
|
+
0
|
|
609282
|
+
],
|
|
609283
|
+
[
|
|
609284
|
+
"chicken",
|
|
609285
|
+
0
|
|
609286
|
+
],
|
|
609287
|
+
[
|
|
609288
|
+
"comma",
|
|
609289
|
+
0
|
|
609290
|
+
],
|
|
609291
|
+
[
|
|
609292
|
+
"double",
|
|
609293
|
+
0
|
|
609294
|
+
],
|
|
609295
|
+
[
|
|
609296
|
+
"egg",
|
|
609297
|
+
0
|
|
609298
|
+
],
|
|
609299
|
+
[
|
|
609300
|
+
"french",
|
|
609301
|
+
0
|
|
609302
|
+
],
|
|
609303
|
+
[
|
|
609304
|
+
"french_toast_sandwich",
|
|
609305
|
+
0
|
|
609306
|
+
],
|
|
609307
|
+
[
|
|
609308
|
+
"is",
|
|
609309
|
+
0
|
|
609310
|
+
],
|
|
609311
|
+
[
|
|
609312
|
+
"list",
|
|
609313
|
+
0
|
|
609314
|
+
],
|
|
609315
|
+
[
|
|
609316
|
+
"meal",
|
|
609317
|
+
0
|
|
609318
|
+
],
|
|
609319
|
+
[
|
|
609320
|
+
"muffin",
|
|
609321
|
+
0
|
|
609322
|
+
],
|
|
609323
|
+
[
|
|
609324
|
+
"oatmeal",
|
|
609325
|
+
0
|
|
609326
|
+
],
|
|
609327
|
+
[
|
|
609328
|
+
"on",
|
|
609329
|
+
0
|
|
609330
|
+
],
|
|
609331
|
+
[
|
|
609332
|
+
"pancake",
|
|
609333
|
+
0
|
|
609334
|
+
],
|
|
609335
|
+
[
|
|
609336
|
+
"platter",
|
|
609337
|
+
0
|
|
609338
|
+
],
|
|
609339
|
+
[
|
|
609340
|
+
"sausage",
|
|
609341
|
+
0
|
|
609342
|
+
],
|
|
609343
|
+
[
|
|
609344
|
+
"toast",
|
|
609345
|
+
0
|
|
609346
|
+
]
|
|
609347
|
+
],
|
|
609500
609348
|
[
|
|
609501
609349
|
[
|
|
609502
609350
|
"breakfast",
|
|
@@ -609847,7 +609695,7 @@
|
|
|
609847
609695
|
0
|
|
609848
609696
|
],
|
|
609849
609697
|
[
|
|
609850
|
-
"
|
|
609698
|
+
"platter",
|
|
609851
609699
|
0
|
|
609852
609700
|
],
|
|
609853
609701
|
[
|
|
@@ -612877,28 +612725,6 @@
|
|
|
612877
612725
|
0
|
|
612878
612726
|
]
|
|
612879
612727
|
],
|
|
612880
|
-
[
|
|
612881
|
-
[
|
|
612882
|
-
"ingredient",
|
|
612883
|
-
0
|
|
612884
|
-
],
|
|
612885
|
-
[
|
|
612886
|
-
"is",
|
|
612887
|
-
0
|
|
612888
|
-
],
|
|
612889
|
-
[
|
|
612890
|
-
"list",
|
|
612891
|
-
1
|
|
612892
|
-
],
|
|
612893
|
-
[
|
|
612894
|
-
"smoothie",
|
|
612895
|
-
0
|
|
612896
|
-
],
|
|
612897
|
-
[
|
|
612898
|
-
"strawberry",
|
|
612899
|
-
0
|
|
612900
|
-
]
|
|
612901
|
-
],
|
|
612902
612728
|
[
|
|
612903
612729
|
[
|
|
612904
612730
|
"is",
|
|
@@ -613023,24 +612849,6 @@
|
|
|
613023
612849
|
0
|
|
613024
612850
|
]
|
|
613025
612851
|
],
|
|
613026
|
-
[
|
|
613027
|
-
[
|
|
613028
|
-
"is",
|
|
613029
|
-
0
|
|
613030
|
-
],
|
|
613031
|
-
[
|
|
613032
|
-
"list",
|
|
613033
|
-
1
|
|
613034
|
-
],
|
|
613035
|
-
[
|
|
613036
|
-
"meal",
|
|
613037
|
-
0
|
|
613038
|
-
],
|
|
613039
|
-
[
|
|
613040
|
-
"value",
|
|
613041
|
-
0
|
|
613042
|
-
]
|
|
613043
|
-
],
|
|
613044
612852
|
[
|
|
613045
612853
|
[
|
|
613046
612854
|
"is",
|