ekms 9.5.1-beta.5 → 9.5.1-beta.6

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 (70) hide show
  1. package/common/animals.instance.json +21 -61
  2. package/common/asking.js +102 -100
  3. package/common/can.instance.json +17 -0
  4. package/common/can.js +188 -0
  5. package/common/characters.js +3 -3
  6. package/common/colors.instance.json +38 -10
  7. package/common/comparable.instance.json +2 -2
  8. package/common/concept.test.json +54 -40
  9. package/common/conjunction.js +13 -5
  10. package/common/crew.instance.json +26 -26
  11. package/common/crew.js +1 -1
  12. package/common/currency.js +1 -1
  13. package/common/dates.instance.json +87 -3
  14. package/common/dialogues.js +11 -8
  15. package/common/dimension.instance.json +1 -1
  16. package/common/edible.instance.json +79 -95
  17. package/common/emotions.instance.json +6 -10
  18. package/common/emotions.js +1 -1
  19. package/common/english_helpers.js +277 -67
  20. package/common/fastfood.instance.json +235 -807
  21. package/common/fastfood.js +4 -4
  22. package/common/formulas.instance.json +1 -1
  23. package/common/gdefaults.js +41 -9
  24. package/common/help.js +2 -2
  25. package/common/helpers/concept.js +1 -1
  26. package/common/helpers/conjunction.js +54 -44
  27. package/common/helpers/dateTimeSelectors.js +2 -2
  28. package/common/helpers/dialogues.js +1 -1
  29. package/common/helpers/formulas.js +13 -11
  30. package/common/helpers/menus.js +12 -12
  31. package/common/helpers/meta.js +8 -8
  32. package/common/helpers/properties.js +76 -15
  33. package/common/helpers.js +82 -46
  34. package/common/hierarchy.js +3 -3
  35. package/common/kirk.instance.json +1 -1
  36. package/common/length.instance.json +2 -2
  37. package/common/math.instance.json +20 -20
  38. package/common/math.js +45 -44
  39. package/common/menus.instance.json +3 -3
  40. package/common/menus.js +1 -1
  41. package/common/meta.js +49 -33
  42. package/common/ordering.instance.json +16 -28
  43. package/common/ordering.js +1 -1
  44. package/common/ordering.test.json +354 -296
  45. package/common/people.instance.json +36 -47
  46. package/common/people.js +1 -1
  47. package/common/people.test.json +952 -681
  48. package/common/pipboy.instance.json +72 -16
  49. package/common/pokemon.instance.json +8 -8
  50. package/common/pokemon.js +1 -1
  51. package/common/pressure.instance.json +2 -2
  52. package/common/properties.instance.json +1 -1
  53. package/common/properties.js +16 -3
  54. package/common/reminders.js +1 -1
  55. package/common/reports.instance.json +3 -3
  56. package/common/reports.js +18 -16
  57. package/common/scorekeeper.js +4 -4
  58. package/common/sdefaults.js +22 -2
  59. package/common/spock.instance.json +1 -1
  60. package/common/stgame.js +1 -1
  61. package/common/stm.js +2 -2
  62. package/common/tell.js +1 -1
  63. package/common/temperature.instance.json +2 -2
  64. package/common/tester.js +3 -3
  65. package/common/time.js +3 -3
  66. package/common/tokenize.js +1 -1
  67. package/common/weight.instance.json +2 -2
  68. package/common/wp.instance.json +62 -6
  69. package/common/wp.js +4 -4
  70. package/package.json +4 -2
@@ -901,7 +901,7 @@
901
901
  ]
902
902
  },
903
903
  {
904
- "apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n const 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 const needsDrink = (item) => {\n return item.needsDrink\n }\n\n const 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 }"
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": 16
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": 19
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": 17
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": 28
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 modifies smoothie"
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": 80
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": 91
109141
+ "end": 66
109142
109142
  },
109143
109143
  "types": [
109144
109144
  "guava",
@@ -109711,10 +109711,6 @@
109711
109711
  [
109712
109712
  "smoothie",
109713
109713
  0
109714
- ],
109715
- [
109716
- "strawberry",
109717
- 0
109718
109714
  ]
109719
109715
  ],
109720
109716
  [
@@ -116562,7 +116558,7 @@
116562
116558
  "word": "smoothie",
116563
116559
  "range": {
116564
116560
  "start": 0,
116565
- "end": 20
116561
+ "end": 9
116566
116562
  },
116567
116563
  "dead": true,
116568
116564
  "types": [
@@ -116658,6 +116654,20 @@
116658
116654
  0
116659
116655
  ]
116660
116656
  ],
116657
+ [
116658
+ [
116659
+ "a",
116660
+ 0
116661
+ ],
116662
+ [
116663
+ "drink",
116664
+ 0
116665
+ ],
116666
+ [
116667
+ "is",
116668
+ 0
116669
+ ]
116670
+ ],
116661
116671
  [
116662
116672
  [
116663
116673
  "a",
@@ -122224,7 +122234,7 @@
122224
122234
  "text": "french fries and waffle fries",
122225
122235
  "range": {
122226
122236
  "start": 0,
122227
- "end": 38
122237
+ "end": 28
122228
122238
  },
122229
122239
  "types": [
122230
122240
  "french_fry",
@@ -128406,7 +128416,7 @@
128406
128416
  "text": "single, double, triple, baconator, and bacon deluxe",
128407
128417
  "range": {
128408
128418
  "start": 0,
128409
- "end": 65
128419
+ "end": 50
128410
128420
  },
128411
128421
  "types": [
128412
128422
  "bacon_deluxe",
@@ -136306,7 +136316,7 @@
136306
136316
  "text": "spicy, homestyle, asiago ranch chicken club, ultimate chicken grill and premium cod",
136307
136317
  "range": {
136308
136318
  "start": 0,
136309
- "end": 97
136319
+ "end": 82
136310
136320
  },
136311
136321
  "types": [
136312
136322
  "asiago_ranch_chicken_club",
@@ -144449,7 +144459,7 @@
144449
144459
  "word": "meals",
144450
144460
  "range": {
144451
144461
  "start": 0,
144452
- "end": 13
144462
+ "end": 4
144453
144463
  },
144454
144464
  "dead": true,
144455
144465
  "types": [
@@ -150205,7 +150215,7 @@
150205
150215
  "word": "combo",
150206
150216
  "range": {
150207
150217
  "start": 0,
150208
- "end": 16
150218
+ "end": 6
150209
150219
  },
150210
150220
  "dead": true,
150211
150221
  "types": [
@@ -150305,24 +150315,6 @@
150305
150315
  0
150306
150316
  ]
150307
150317
  ],
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
150318
  [
150327
150319
  [
150328
150320
  "is",
@@ -156182,7 +156174,7 @@
156182
156174
  "word": "chili",
156183
156175
  "range": {
156184
156176
  "start": 0,
156185
- "end": 14
156177
+ "end": 4
156186
156178
  },
156187
156179
  "dead": true,
156188
156180
  "types": [
@@ -162092,7 +162084,7 @@
162092
162084
  "word": "shake",
162093
162085
  "range": {
162094
162086
  "start": 0,
162095
- "end": 17
162087
+ "end": 6
162096
162088
  },
162097
162089
  "dead": true,
162098
162090
  "types": [
@@ -162192,6 +162184,24 @@
162192
162184
  0
162193
162185
  ]
162194
162186
  ],
162187
+ [
162188
+ [
162189
+ "a",
162190
+ 0
162191
+ ],
162192
+ [
162193
+ "drink",
162194
+ 0
162195
+ ],
162196
+ [
162197
+ "is",
162198
+ 0
162199
+ ],
162200
+ [
162201
+ "shake",
162202
+ 0
162203
+ ]
162204
+ ],
162195
162205
  [
162196
162206
  [
162197
162207
  "drink",
@@ -210058,7 +210068,7 @@
210058
210068
  "word": "frosty",
210059
210069
  "range": {
210060
210070
  "start": 0,
210061
- "end": 16
210071
+ "end": 5
210062
210072
  },
210063
210073
  "dead": true,
210064
210074
  "types": [
@@ -327172,7 +327182,7 @@
327172
327182
  "word": "wrap",
327173
327183
  "range": {
327174
327184
  "start": 0,
327175
- "end": 22
327185
+ "end": 8
327176
327186
  },
327177
327187
  "types": [
327178
327188
  "go_wrap",
@@ -327312,6 +327322,24 @@
327312
327322
  0
327313
327323
  ]
327314
327324
  ],
327325
+ [
327326
+ [
327327
+ "a",
327328
+ 0
327329
+ ],
327330
+ [
327331
+ "go_wrap",
327332
+ 0
327333
+ ],
327334
+ [
327335
+ "is",
327336
+ 0
327337
+ ],
327338
+ [
327339
+ "sandwich",
327340
+ 0
327341
+ ]
327342
+ ],
327315
327343
  [
327316
327344
  [
327317
327345
  "go_wrap",
@@ -344610,7 +344638,7 @@
344610
344638
  "text": "breakfast baconator, french toast sandwich, egg muffin, chicken on french toast, pancake platter, double sausage muffin, pancakes, french toast and oatmeal",
344611
344639
  "range": {
344612
344640
  "start": 0,
344613
- "end": 174
344641
+ "end": 154
344614
344642
  },
344615
344643
  "types": [
344616
344644
  "breakfast_baconator",
@@ -345527,7 +345555,7 @@
345527
345555
  0
345528
345556
  ],
345529
345557
  [
345530
- "chicken",
345558
+ "chicken_on_french_toast",
345531
345559
  0
345532
345560
  ],
345533
345561
  [
@@ -345570,16 +345598,12 @@
345570
345598
  "oatmeal",
345571
345599
  0
345572
345600
  ],
345573
- [
345574
- "on",
345575
- 0
345576
- ],
345577
345601
  [
345578
345602
  "pancake",
345579
345603
  0
345580
345604
  ],
345581
345605
  [
345582
- "platter",
345606
+ "pancake_platter",
345583
345607
  0
345584
345608
  ],
345585
345609
  [
@@ -345649,7 +345673,7 @@
345649
345673
  0
345650
345674
  ],
345651
345675
  [
345652
- "pancake_platter",
345676
+ "platter",
345653
345677
  0
345654
345678
  ],
345655
345679
  [
@@ -345679,7 +345703,7 @@
345679
345703
  0
345680
345704
  ],
345681
345705
  [
345682
- "double",
345706
+ "double_sausage_muffin",
345683
345707
  0
345684
345708
  ],
345685
345709
  [
@@ -345706,10 +345730,6 @@
345706
345730
  "meal",
345707
345731
  0
345708
345732
  ],
345709
- [
345710
- "muffin",
345711
- 0
345712
- ],
345713
345733
  [
345714
345734
  "oatmeal",
345715
345735
  0
@@ -345722,10 +345742,6 @@
345722
345742
  "pancake_platter",
345723
345743
  0
345724
345744
  ],
345725
- [
345726
- "sausage",
345727
- 0
345728
- ],
345729
345745
  [
345730
345746
  "toast",
345731
345747
  0
@@ -345745,11 +345761,7 @@
345745
345761
  0
345746
345762
  ],
345747
345763
  [
345748
- "comma",
345749
- 0
345750
- ],
345751
- [
345752
- "double",
345764
+ "double_sausage_muffin",
345753
345765
  0
345754
345766
  ],
345755
345767
  [
@@ -345776,10 +345788,6 @@
345776
345788
  "meal",
345777
345789
  0
345778
345790
  ],
345779
- [
345780
- "muffin",
345781
- 0
345782
- ],
345783
345791
  [
345784
345792
  "oatmeal",
345785
345793
  0
@@ -345789,11 +345797,7 @@
345789
345797
  0
345790
345798
  ],
345791
345799
  [
345792
- "platter",
345793
- 0
345794
- ],
345795
- [
345796
- "sausage",
345800
+ "pancake_platter",
345797
345801
  0
345798
345802
  ],
345799
345803
  [
@@ -345814,10 +345818,6 @@
345814
345818
  "chicken_on_french_toast",
345815
345819
  0
345816
345820
  ],
345817
- [
345818
- "comma",
345819
- 0
345820
- ],
345821
345821
  [
345822
345822
  "double_sausage_muffin",
345823
345823
  0
@@ -345827,7 +345827,7 @@
345827
345827
  0
345828
345828
  ],
345829
345829
  [
345830
- "french",
345830
+ "french_toast",
345831
345831
  0
345832
345832
  ],
345833
345833
  [
@@ -345857,10 +345857,6 @@
345857
345857
  [
345858
345858
  "pancake_platter",
345859
345859
  0
345860
- ],
345861
- [
345862
- "toast",
345863
- 0
345864
345860
  ]
345865
345861
  ],
345866
345862
  [
@@ -345884,10 +345880,6 @@
345884
345880
  "egg_muffin",
345885
345881
  0
345886
345882
  ],
345887
- [
345888
- "french",
345889
- 0
345890
- ],
345891
345883
  [
345892
345884
  "french_toast_sandwich",
345893
345885
  0
@@ -345898,16 +345890,12 @@
345898
345890
  ],
345899
345891
  [
345900
345892
  "list",
345901
- 0
345893
+ 1
345902
345894
  ],
345903
345895
  [
345904
345896
  "meal",
345905
345897
  0
345906
345898
  ],
345907
- [
345908
- "oatmeal",
345909
- 0
345910
- ],
345911
345899
  [
345912
345900
  "pancake",
345913
345901
  0
@@ -345915,10 +345903,6 @@
345915
345903
  [
345916
345904
  "pancake_platter",
345917
345905
  0
345918
- ],
345919
- [
345920
- "toast",
345921
- 0
345922
345906
  ]
345923
345907
  ],
345924
345908
  [
@@ -345942,10 +345926,6 @@
345942
345926
  "egg_muffin",
345943
345927
  0
345944
345928
  ],
345945
- [
345946
- "french_toast",
345947
- 0
345948
- ],
345949
345929
  [
345950
345930
  "french_toast_sandwich",
345951
345931
  0
@@ -345956,20 +345936,12 @@
345956
345936
  ],
345957
345937
  [
345958
345938
  "list",
345959
- 0
345939
+ 1
345960
345940
  ],
345961
345941
  [
345962
345942
  "meal",
345963
345943
  0
345964
345944
  ],
345965
- [
345966
- "oatmeal",
345967
- 0
345968
- ],
345969
- [
345970
- "pancake",
345971
- 0
345972
- ],
345973
345945
  [
345974
345946
  "pancake_platter",
345975
345947
  0
@@ -345988,10 +345960,6 @@
345988
345960
  "chicken_on_french_toast",
345989
345961
  0
345990
345962
  ],
345991
- [
345992
- "double_sausage_muffin",
345993
- 0
345994
- ],
345995
345963
  [
345996
345964
  "egg_muffin",
345997
345965
  0
@@ -346011,14 +345979,6 @@
346011
345979
  [
346012
345980
  "meal",
346013
345981
  0
346014
- ],
346015
- [
346016
- "pancake",
346017
- 0
346018
- ],
346019
- [
346020
- "pancake_platter",
346021
- 0
346022
345982
  ]
346023
345983
  ],
346024
345984
  [
@@ -346034,10 +345994,6 @@
346034
345994
  "chicken_on_french_toast",
346035
345995
  0
346036
345996
  ],
346037
- [
346038
- "double_sausage_muffin",
346039
- 0
346040
- ],
346041
345997
  [
346042
345998
  "egg_muffin",
346043
345999
  0
@@ -346073,13 +346029,25 @@
346073
346029
  0
346074
346030
  ],
346075
346031
  [
346076
- "chicken_on_french_toast",
346032
+ "comma",
346033
+ 0
346034
+ ],
346035
+ [
346036
+ "double",
346077
346037
  0
346078
346038
  ],
346079
346039
  [
346080
346040
  "egg_muffin",
346081
346041
  0
346082
346042
  ],
346043
+ [
346044
+ "french",
346045
+ 0
346046
+ ],
346047
+ [
346048
+ "french_toast",
346049
+ 0
346050
+ ],
346083
346051
  [
346084
346052
  "french_toast_sandwich",
346085
346053
  0
@@ -346090,11 +346058,35 @@
346090
346058
  ],
346091
346059
  [
346092
346060
  "list",
346093
- 1
346061
+ 0
346094
346062
  ],
346095
346063
  [
346096
346064
  "meal",
346097
346065
  0
346066
+ ],
346067
+ [
346068
+ "muffin",
346069
+ 0
346070
+ ],
346071
+ [
346072
+ "oatmeal",
346073
+ 0
346074
+ ],
346075
+ [
346076
+ "pancake",
346077
+ 0
346078
+ ],
346079
+ [
346080
+ "platter",
346081
+ 0
346082
+ ],
346083
+ [
346084
+ "sausage",
346085
+ 0
346086
+ ],
346087
+ [
346088
+ "toast",
346089
+ 0
346098
346090
  ]
346099
346091
  ],
346100
346092
  [
@@ -346107,13 +346099,21 @@
346107
346099
  0
346108
346100
  ],
346109
346101
  [
346110
- "chicken_on_french_toast",
346102
+ "comma",
346103
+ 0
346104
+ ],
346105
+ [
346106
+ "double",
346111
346107
  0
346112
346108
  ],
346113
346109
  [
346114
346110
  "egg_muffin",
346115
346111
  0
346116
346112
  ],
346113
+ [
346114
+ "french",
346115
+ 0
346116
+ ],
346117
346117
  [
346118
346118
  "french_toast_sandwich",
346119
346119
  0
@@ -346124,154 +346124,38 @@
346124
346124
  ],
346125
346125
  [
346126
346126
  "list",
346127
- 1
346127
+ 0
346128
346128
  ],
346129
346129
  [
346130
346130
  "meal",
346131
346131
  0
346132
346132
  ],
346133
346133
  [
346134
- "pancake_platter",
346135
- 0
346136
- ]
346137
- ],
346138
- [
346139
- [
346140
- "breakfast",
346141
- 0
346142
- ],
346143
- [
346144
- "breakfast_baconator",
346145
- 0
346146
- ],
346147
- [
346148
- "comma",
346149
- 0
346150
- ],
346151
- [
346152
- "double",
346153
- 0
346154
- ],
346155
- [
346156
- "egg_muffin",
346157
- 0
346158
- ],
346159
- [
346160
- "french",
346161
- 0
346162
- ],
346163
- [
346164
- "french_toast",
346165
- 0
346166
- ],
346167
- [
346168
- "french_toast_sandwich",
346169
- 0
346170
- ],
346171
- [
346172
- "is",
346173
- 0
346174
- ],
346175
- [
346176
- "list",
346177
- 0
346178
- ],
346179
- [
346180
- "meal",
346181
- 0
346182
- ],
346183
- [
346184
- "muffin",
346185
- 0
346186
- ],
346187
- [
346188
- "oatmeal",
346189
- 0
346190
- ],
346191
- [
346192
- "pancake",
346193
- 0
346194
- ],
346195
- [
346196
- "platter",
346197
- 0
346198
- ],
346199
- [
346200
- "sausage",
346201
- 0
346202
- ],
346203
- [
346204
- "toast",
346205
- 0
346206
- ]
346207
- ],
346208
- [
346209
- [
346210
- "breakfast",
346211
- 0
346212
- ],
346213
- [
346214
- "breakfast_baconator",
346215
- 0
346216
- ],
346217
- [
346218
- "comma",
346219
- 0
346220
- ],
346221
- [
346222
- "double",
346223
- 0
346224
- ],
346225
- [
346226
- "egg_muffin",
346227
- 0
346228
- ],
346229
- [
346230
- "french",
346231
- 0
346232
- ],
346233
- [
346234
- "french_toast_sandwich",
346235
- 0
346236
- ],
346237
- [
346238
- "is",
346239
- 0
346240
- ],
346241
- [
346242
- "list",
346243
- 0
346244
- ],
346245
- [
346246
- "meal",
346247
- 0
346248
- ],
346249
- [
346250
- "muffin",
346251
- 0
346252
- ],
346253
- [
346254
- "oatmeal",
346255
- 0
346256
- ],
346257
- [
346258
- "on",
346259
- 0
346260
- ],
346261
- [
346262
- "pancake",
346263
- 0
346264
- ],
346265
- [
346266
- "platter",
346267
- 0
346268
- ],
346269
- [
346270
- "sausage",
346271
- 0
346272
- ],
346273
- [
346274
- "toast",
346134
+ "muffin",
346135
+ 0
346136
+ ],
346137
+ [
346138
+ "oatmeal",
346139
+ 0
346140
+ ],
346141
+ [
346142
+ "on",
346143
+ 0
346144
+ ],
346145
+ [
346146
+ "pancake",
346147
+ 0
346148
+ ],
346149
+ [
346150
+ "platter",
346151
+ 0
346152
+ ],
346153
+ [
346154
+ "sausage",
346155
+ 0
346156
+ ],
346157
+ [
346158
+ "toast",
346275
346159
  0
346276
346160
  ]
346277
346161
  ],
@@ -360063,7 +359947,7 @@
360063
359947
  "text": "single, double, triple, baconator, bacon deluxe, spicy homestyle and premium cod",
360064
359948
  "range": {
360065
359949
  "start": 0,
360066
- "end": 89
359950
+ "end": 79
360067
359951
  },
360068
359952
  "types": [
360069
359953
  "bacon_deluxe",
@@ -360346,122 +360230,6 @@
360346
360230
  ""
360347
360231
  ],
360348
360232
  "associations": [
360349
- [
360350
- [
360351
- "bacon",
360352
- 0
360353
- ],
360354
- [
360355
- "baconator",
360356
- 0
360357
- ],
360358
- [
360359
- "cod",
360360
- 0
360361
- ],
360362
- [
360363
- "comma",
360364
- 0
360365
- ],
360366
- [
360367
- "deluxe",
360368
- 0
360369
- ],
360370
- [
360371
- "double",
360372
- 0
360373
- ],
360374
- [
360375
- "homestyle",
360376
- 0
360377
- ],
360378
- [
360379
- "is",
360380
- 0
360381
- ],
360382
- [
360383
- "list",
360384
- 0
360385
- ],
360386
- [
360387
- "meal",
360388
- 0
360389
- ],
360390
- [
360391
- "premium",
360392
- 0
360393
- ],
360394
- [
360395
- "single",
360396
- 0
360397
- ],
360398
- [
360399
- "spicy",
360400
- 0
360401
- ],
360402
- [
360403
- "triple",
360404
- 0
360405
- ]
360406
- ],
360407
- [
360408
- [
360409
- "bacon",
360410
- 0
360411
- ],
360412
- [
360413
- "baconator",
360414
- 0
360415
- ],
360416
- [
360417
- "cod",
360418
- 0
360419
- ],
360420
- [
360421
- "comma",
360422
- 0
360423
- ],
360424
- [
360425
- "deluxe",
360426
- 0
360427
- ],
360428
- [
360429
- "double",
360430
- 0
360431
- ],
360432
- [
360433
- "homestyle",
360434
- 0
360435
- ],
360436
- [
360437
- "is",
360438
- 0
360439
- ],
360440
- [
360441
- "list",
360442
- 0
360443
- ],
360444
- [
360445
- "meal",
360446
- 0
360447
- ],
360448
- [
360449
- "premium",
360450
- 0
360451
- ],
360452
- [
360453
- "single",
360454
- 0
360455
- ],
360456
- [
360457
- "spicy",
360458
- 0
360459
- ],
360460
- [
360461
- "triple",
360462
- 0
360463
- ]
360464
- ],
360465
360233
  [
360466
360234
  [
360467
360235
  "bacon",
@@ -395706,7 +395474,7 @@
395706
395474
  "text": "coke, coca cola, diet coke, sprite, fanta, barqs and iced tea",
395707
395475
  "range": {
395708
395476
  "start": 0,
395709
- "end": 68
395477
+ "end": 60
395710
395478
  },
395711
395479
  "types": [
395712
395480
  "coca_cola",
@@ -476151,7 +475919,7 @@
476151
475919
  "text": "fries and drinks",
476152
475920
  "range": {
476153
475921
  "start": 0,
476154
- "end": 33
475922
+ "end": 15
476155
475923
  },
476156
475924
  "types": [
476157
475925
  "drink",
@@ -485405,7 +485173,7 @@
485405
485173
  ""
485406
485174
  ],
485407
485175
  "paraphrases": [
485408
- "broccoli and cheddar literally modifies potato"
485176
+ "broccoli and cheddar literally modify potato"
485409
485177
  ],
485410
485178
  "paraphrasesParenthesized": [],
485411
485179
  "generatedParenthesized": [],
@@ -494724,7 +494492,7 @@
494724
494492
  ""
494725
494493
  ],
494726
494494
  "paraphrases": [
494727
- "bacon and cheddar literally modifies potato"
494495
+ "bacon and cheddar literally modify potato"
494728
494496
  ],
494729
494497
  "paraphrasesParenthesized": [],
494730
494498
  "generatedParenthesized": [],
@@ -504120,7 +503888,7 @@
504120
503888
  ""
504121
503889
  ],
504122
503890
  "paraphrases": [
504123
- "chili and cheese literally modifies potato"
503891
+ "chili and cheese literally modify potato"
504124
503892
  ],
504125
503893
  "paraphrasesParenthesized": [],
504126
503894
  "generatedParenthesized": [],
@@ -541514,7 +541282,7 @@
541514
541282
  "word": "water",
541515
541283
  "range": {
541516
541284
  "start": 0,
541517
- "end": 23
541285
+ "end": 12
541518
541286
  },
541519
541287
  "types": [
541520
541288
  "bottled_water",
@@ -570901,7 +570669,7 @@
570901
570669
  "text": "hamburgers, cheeseburgers, crispy chicken and nuggets",
570902
570670
  "range": {
570903
570671
  "start": 0,
570904
- "end": 67
570672
+ "end": 52
570905
570673
  },
570906
570674
  "types": [
570907
570675
  "cheeseburger",
@@ -593232,7 +593000,7 @@
593232
593000
  "text": "nuggets, junior bacon cheeseburgers, chicken go wraps and junior crispy chicken clubs",
593233
593001
  "range": {
593234
593002
  "start": 0,
593235
- "end": 100
593003
+ "end": 84
593236
593004
  },
593237
593005
  "types": [
593238
593006
  "chicken_go_wrap",
@@ -593643,60 +593411,6 @@
593643
593411
  0
593644
593412
  ]
593645
593413
  ],
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
593414
  [
593701
593415
  [
593702
593416
  "bacon_cheeseburger",
@@ -594099,24 +593813,6 @@
594099
593813
  0
594100
593814
  ]
594101
593815
  ],
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
593816
  [
594121
593817
  [
594122
593818
  "is",
@@ -606001,7 +605697,7 @@
606001
605697
  "text": "combos, chili, fries and drinks",
606002
605698
  "range": {
606003
605699
  "start": 0,
606004
- "end": 43
605700
+ "end": 30
606005
605701
  },
606006
605702
  "types": [
606007
605703
  "chili",
@@ -606266,6 +605962,24 @@
606266
605962
  0
606267
605963
  ]
606268
605964
  ],
605965
+ [
605966
+ [
605967
+ "combo",
605968
+ 0
605969
+ ],
605970
+ [
605971
+ "is",
605972
+ 0
605973
+ ],
605974
+ [
605975
+ "list",
605976
+ 1
605977
+ ],
605978
+ [
605979
+ "sizeable",
605980
+ 0
605981
+ ]
605982
+ ],
606269
605983
  [
606270
605984
  [
606271
605985
  "is",
@@ -606978,7 +606692,7 @@
606978
606692
  ]
606979
606693
  },
606980
606694
  {
606981
- "apply": "({ask, api}) => {\n // see if followup for drink is needed\n\n const 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 const needsDrink = (item) => {\n return item.needsDrink\n }\n\n const 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 }"
606695
+ "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
606696
  },
606983
606697
  {
606984
606698
  "extraConfig": true,
@@ -607425,6 +607139,38 @@
607425
607139
  0
607426
607140
  ]
607427
607141
  ],
607142
+ [
607143
+ [
607144
+ "a",
607145
+ 0
607146
+ ],
607147
+ [
607148
+ "drink",
607149
+ 0
607150
+ ],
607151
+ [
607152
+ "is",
607153
+ 0
607154
+ ]
607155
+ ],
607156
+ [
607157
+ [
607158
+ "a",
607159
+ 0
607160
+ ],
607161
+ [
607162
+ "drink",
607163
+ 0
607164
+ ],
607165
+ [
607166
+ "is",
607167
+ 0
607168
+ ],
607169
+ [
607170
+ "shake",
607171
+ 0
607172
+ ]
607173
+ ],
607428
607174
  [
607429
607175
  [
607430
607176
  "a",
@@ -607524,12 +607270,16 @@
607524
607270
  "a",
607525
607271
  0
607526
607272
  ],
607273
+ [
607274
+ "go_wrap",
607275
+ 0
607276
+ ],
607527
607277
  [
607528
607278
  "is",
607529
607279
  0
607530
607280
  ],
607531
607281
  [
607532
- "meal",
607282
+ "sandwich",
607533
607283
  0
607534
607284
  ]
607535
607285
  ],
@@ -607545,10 +607295,6 @@
607545
607295
  [
607546
607296
  "meal",
607547
607297
  0
607548
- ],
607549
- [
607550
- "unknown",
607551
- 0
607552
607298
  ]
607553
607299
  ],
607554
607300
  [
@@ -607901,122 +607647,6 @@
607901
607647
  0
607902
607648
  ]
607903
607649
  ],
607904
- [
607905
- [
607906
- "bacon",
607907
- 0
607908
- ],
607909
- [
607910
- "baconator",
607911
- 0
607912
- ],
607913
- [
607914
- "cod",
607915
- 0
607916
- ],
607917
- [
607918
- "comma",
607919
- 0
607920
- ],
607921
- [
607922
- "deluxe",
607923
- 0
607924
- ],
607925
- [
607926
- "double",
607927
- 0
607928
- ],
607929
- [
607930
- "homestyle",
607931
- 0
607932
- ],
607933
- [
607934
- "is",
607935
- 0
607936
- ],
607937
- [
607938
- "list",
607939
- 0
607940
- ],
607941
- [
607942
- "meal",
607943
- 0
607944
- ],
607945
- [
607946
- "premium",
607947
- 0
607948
- ],
607949
- [
607950
- "single",
607951
- 0
607952
- ],
607953
- [
607954
- "spicy",
607955
- 0
607956
- ],
607957
- [
607958
- "triple",
607959
- 0
607960
- ]
607961
- ],
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
607650
  [
608021
607651
  [
608022
607652
  "bacon",
@@ -608155,60 +607785,6 @@
608155
607785
  0
608156
607786
  ]
608157
607787
  ],
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
607788
  [
608213
607789
  [
608214
607790
  "bacon",
@@ -609645,150 +609221,6 @@
609645
609221
  0
609646
609222
  ]
609647
609223
  ],
609648
- [
609649
- [
609650
- "breakfast",
609651
- 0
609652
- ],
609653
- [
609654
- "breakfast_baconator",
609655
- 0
609656
- ],
609657
- [
609658
- "chicken",
609659
- 0
609660
- ],
609661
- [
609662
- "comma",
609663
- 0
609664
- ],
609665
- [
609666
- "double",
609667
- 0
609668
- ],
609669
- [
609670
- "egg_muffin",
609671
- 0
609672
- ],
609673
- [
609674
- "french",
609675
- 0
609676
- ],
609677
- [
609678
- "french_toast_sandwich",
609679
- 0
609680
- ],
609681
- [
609682
- "is",
609683
- 0
609684
- ],
609685
- [
609686
- "list",
609687
- 0
609688
- ],
609689
- [
609690
- "meal",
609691
- 0
609692
- ],
609693
- [
609694
- "muffin",
609695
- 0
609696
- ],
609697
- [
609698
- "oatmeal",
609699
- 0
609700
- ],
609701
- [
609702
- "on",
609703
- 0
609704
- ],
609705
- [
609706
- "pancake",
609707
- 0
609708
- ],
609709
- [
609710
- "platter",
609711
- 0
609712
- ],
609713
- [
609714
- "sausage",
609715
- 0
609716
- ],
609717
- [
609718
- "toast",
609719
- 0
609720
- ]
609721
- ],
609722
- [
609723
- [
609724
- "breakfast",
609725
- 0
609726
- ],
609727
- [
609728
- "breakfast_baconator",
609729
- 0
609730
- ],
609731
- [
609732
- "chicken_on_french_toast",
609733
- 0
609734
- ],
609735
- [
609736
- "comma",
609737
- 0
609738
- ],
609739
- [
609740
- "double",
609741
- 0
609742
- ],
609743
- [
609744
- "egg_muffin",
609745
- 0
609746
- ],
609747
- [
609748
- "french",
609749
- 0
609750
- ],
609751
- [
609752
- "french_toast_sandwich",
609753
- 0
609754
- ],
609755
- [
609756
- "is",
609757
- 0
609758
- ],
609759
- [
609760
- "list",
609761
- 0
609762
- ],
609763
- [
609764
- "meal",
609765
- 0
609766
- ],
609767
- [
609768
- "muffin",
609769
- 0
609770
- ],
609771
- [
609772
- "oatmeal",
609773
- 0
609774
- ],
609775
- [
609776
- "pancake",
609777
- 0
609778
- ],
609779
- [
609780
- "pancake_platter",
609781
- 0
609782
- ],
609783
- [
609784
- "sausage",
609785
- 0
609786
- ],
609787
- [
609788
- "toast",
609789
- 0
609790
- ]
609791
- ],
609792
609224
  [
609793
609225
  [
609794
609226
  "breakfast",
@@ -612079,6 +611511,24 @@
612079
611511
  0
612080
611512
  ]
612081
611513
  ],
611514
+ [
611515
+ [
611516
+ "combo",
611517
+ 0
611518
+ ],
611519
+ [
611520
+ "is",
611521
+ 0
611522
+ ],
611523
+ [
611524
+ "list",
611525
+ 1
611526
+ ],
611527
+ [
611528
+ "sizeable",
611529
+ 0
611530
+ ]
611531
+ ],
612082
611532
  [
612083
611533
  [
612084
611534
  "countable",
@@ -612871,10 +612321,6 @@
612871
612321
  [
612872
612322
  "smoothie",
612873
612323
  0
612874
- ],
612875
- [
612876
- "strawberry",
612877
- 0
612878
612324
  ]
612879
612325
  ],
612880
612326
  [
@@ -613023,24 +612469,6 @@
613023
612469
  0
613024
612470
  ]
613025
612471
  ],
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
612472
  [
613045
612473
  [
613046
612474
  "is",