ekms 8.9.1-beta.26 → 8.9.1-beta.28

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 (108) hide show
  1. package/common/animals.instance.json +6427 -714
  2. package/common/articles.js +4 -7
  3. package/common/articles.test.json +268 -136
  4. package/common/asking.test.json +1504 -798
  5. package/common/avatar.js +8 -0
  6. package/common/avatar.test.json +3292 -1852
  7. package/common/characters.test.json +962 -464
  8. package/common/colors.instance.json +22950 -1756
  9. package/common/colors.test.json +140 -68
  10. package/common/comparable.instance.json +1279 -149
  11. package/common/comparable.js +11 -11
  12. package/common/comparable.test.json +455 -230
  13. package/common/concept.js +9 -1
  14. package/common/concept.test.json +2023 -928
  15. package/common/conjunction.js +12 -0
  16. package/common/conjunction.test.json +219 -102
  17. package/common/countable.test.json +906 -444
  18. package/common/crew.instance.json +18796 -2069
  19. package/common/crew.js +19 -0
  20. package/common/crew.test.json +7104 -3435
  21. package/common/currency.js +0 -1
  22. package/common/currency.test.json +753 -369
  23. package/common/dialogues.js +74 -27
  24. package/common/dialogues.test.json +4225 -1915
  25. package/common/dimension.instance.json +744 -112
  26. package/common/dimension.js +16 -2
  27. package/common/dimension.test.json +10410 -4721
  28. package/common/edible.instance.json +21412 -2527
  29. package/common/edible.js +13 -0
  30. package/common/edible.test.json +1033 -487
  31. package/common/emotions.instance.json +2269 -254
  32. package/common/emotions.js +10 -2
  33. package/common/emotions.test.json +928 -403
  34. package/common/errors.test.json +77 -38
  35. package/common/evaluate.test.json +43 -22
  36. package/common/events.test.json +453 -210
  37. package/common/fastfood.instance.json +80935 -9140
  38. package/common/fastfood.js +83 -2
  39. package/common/fastfood.test.json +37703 -20376
  40. package/common/formulas.instance.json +309 -53
  41. package/common/formulas.test.json +6286 -3094
  42. package/common/help.test.json +272 -128
  43. package/common/helpers/concept.js +1 -0
  44. package/common/helpers/properties.js +1 -27
  45. package/common/hierarchy.js +9 -0
  46. package/common/hierarchy.test.json +21532 -10628
  47. package/common/javascript.test.json +185 -86
  48. package/common/kirk.instance.json +302 -3
  49. package/common/kirk.test.json +621 -285
  50. package/common/length.instance.json +9630 -697
  51. package/common/length.test.json +3359 -1737
  52. package/common/listener.test.json +33 -18
  53. package/common/math.instance.json +278 -52
  54. package/common/math.test.json +22940 -13876
  55. package/common/meta.instance.json +1 -0
  56. package/common/meta.js +8 -8
  57. package/common/meta.test.json +584 -272
  58. package/common/nameable.test.json +1800 -843
  59. package/common/negation.test.json +114 -60
  60. package/common/numbers.test.json +198 -108
  61. package/common/ordering.instance.json +3848 -541
  62. package/common/ordering.test.json +1158 -540
  63. package/common/ordinals.js +7 -1
  64. package/common/ordinals.test.json +256 -136
  65. package/common/people.instance.json +3803 -537
  66. package/common/people.js +0 -14
  67. package/common/people.test.json +14361 -7176
  68. package/common/percentages.test.json +289 -134
  69. package/common/pipboy.instance.json +13187 -1238
  70. package/common/pipboy.js +22 -41
  71. package/common/pipboy.test.json +5598 -2688
  72. package/common/pokemon.instance.json +5930 -660
  73. package/common/pokemon.test.json +975 -453
  74. package/common/pressure.instance.json +2589 -286
  75. package/common/pressure.test.json +991 -445
  76. package/common/properties.instance.json +887 -80
  77. package/common/properties.js +13 -22
  78. package/common/properties.test.json +20521 -9542
  79. package/common/punctuation.test.json +305 -146
  80. package/common/reports.instance.json +965 -108
  81. package/common/reports.js +7 -0
  82. package/common/reports.test.json +13247 -6426
  83. package/common/scorekeeper.instance.json +1 -0
  84. package/common/scorekeeper.js +17 -7
  85. package/common/scorekeeper.test.json +26256 -11598
  86. package/common/sizeable.test.json +455 -230
  87. package/common/spock.instance.json +302 -3
  88. package/common/spock.test.json +621 -285
  89. package/common/stgame.test.json +962 -464
  90. package/common/stm.test.json +755 -374
  91. package/common/tell.test.json +195 -90
  92. package/common/temperature.instance.json +5940 -285
  93. package/common/temperature.test.json +990 -444
  94. package/common/testing.test.json +67 -34
  95. package/common/time.test.json +2386 -1066
  96. package/common/tokenize.js +3 -2
  97. package/common/tokenize.test.json +33 -18
  98. package/common/ui.instance.json +123 -21
  99. package/common/ui.js +0 -16
  100. package/common/ui.test.json +612 -312
  101. package/common/weight.instance.json +9798 -680
  102. package/common/weight.js +10 -0
  103. package/common/weight.test.json +6185 -2711
  104. package/common/wp.instance.json +13555 -1583
  105. package/common/wp.js +11 -6
  106. package/common/wp.test.json +27299 -13463
  107. package/common/yesno.test.json +132 -72
  108. package/package.json +2 -2
@@ -55,7 +55,7 @@ const config = {
55
55
  "([resetIdSuffix])",
56
56
 
57
57
  "(([queryable]) [is|] ([queryable|]))",
58
- "([is:queryBridge|] ([queryable]) ([queryable]))",
58
+ "([isQuery|] ([queryable]) ([queryable]))",
59
59
  // "(([queryable]) [is:isEdBridge|is,are] ([isEdAble|]))",
60
60
  // who is the car owned by
61
61
  "(([queryable]) [(<isEd|> ([isEdAble|]))])",
@@ -111,14 +111,55 @@ const config = {
111
111
  // [['is', 0], ['unknown', 1]],
112
112
  // [['isEd', 0], ['means', 0]],
113
113
  // [['unknown', 0], ['list', 0], ['unknown', 0]],
114
- [['thatVerb', 0], ['verb', 0]],
115
- [['isEdee', 0], ['isEd', 0], ['isEder', 0], ['by', 0]],
116
- [['isEdee', 0], ['isEd', 0], ['isEdAble', 0]],
117
- [['unknown', 1], ['isEd', 0], ['isEdAble', 0]],
118
- [['unknown', 0], ['isEd', 0], ['isEdAble', 0]],
119
- [["isEd",0],["unknown",1],["isEdAble",0]],
120
- // ...listorama('unknown'),
121
- // ...listorama('queryable'),
114
+ { context: [['the', 0], ['listable', 0], ['list', 0], ['listable', 0]], choose: 1 },
115
+
116
+ { context: [['queryable', 0], ['is', 0], ['article', 0], ['theAble', 0]], choose: 1 },
117
+ { context: [['queryable', 1], ['is', 0], ['article', 0], ['theAble', 0]], choose: 1 },
118
+ { context: [['queryable', 1], ['is', 0], ['article', 0], ['theAble', 1]], choose: 1 },
119
+
120
+
121
+ { context: [['isQuery', 0], ['a', 0], ['unknown', 0], ['a', 0], ['unknown', 0]], choose: 0 },
122
+
123
+ { context: [['isQuery', 0], ['unknown', 0], ['unknown', 0]], choose: 0 },
124
+
125
+ { context: [['isQuery', 0], ['unknown', 0], ['article', 0], ['unknown', 0]], choose: 0 },
126
+
127
+ { context: [['isQuery', 0], ['queryable', 0], ['article', 0], ['queryable', 0]], choose: 0 },
128
+ { context: [['isQuery', 0], ['queryable', 1], ['article', 0], ['queryable', 0]], choose: 0 },
129
+ { context: [['isQuery', 0], ['queryable', 1], ['article', 0], ['queryable', 1]], choose: 0 },
130
+
131
+ { context: [['unknown', 0], ['is', 0], ['unknown', 0]], choose: 1 },
132
+ { context: [["unknown",0],["is",0],["article",0],["queryable",0]], choose: 1 },
133
+ { context: [["unknown",0],["is",0],["article",0],["queryable",1]], choose: 1 },
134
+
135
+ { context: [["a",0],["unknown",0],["is",0],["a",0],["unknown",0]], choose: 2 },
136
+
137
+ { context: [['article', 0], ['unknown', 0], ['is', 0], ['article', 0], ['unknown', 0]], choose: 2 },
138
+ { context: [['queryable', 0], ['is', 0], ['article', 0], ['unknown', 1]], choose: 1 },
139
+ { context: [['queryable', 1], ['is', 0], ['article', 0], ['unknown', 1]], choose: 1 },
140
+
141
+ { context: [["article",0],["unknown",0],["isEdAble",0],["by",0],["unknown",0]], choose: 1 },
142
+
143
+ { context: [["queryable",0],["is",0],["isEder",0],["isEdAble",0],["by",0]], choose: 1 },
144
+ { context: [["queryable",1],["is",0],["isEder",0],["isEdAble",0],["by",0]], choose: 1 },
145
+ { context: [["queryable",1],["is",0],["isEder",1],["isEdAble",0],["by",0]], choose: 1 },
146
+ { context: [["queryable",0],["is",0],["unknown",0],["isEdAble",0],["by",0]], choose: 1 },
147
+ { context: [["queryable",1],["is",0],["unknown",0],["isEdAble",0],["by",0]], choose: 1 },
148
+
149
+ { context: [["unknown",0],["isEd",0],["isEdAble",0],["by",0],["unknown",0]], choose: 1 },
150
+ { context: [["unknown",0],["isEd",0],["isEdAble",0],["by",1]], choose: 1 },
151
+ { context: [["unknown",0],["isEd",0],["isEdAble",0]], choose: 1 },
152
+
153
+ { context: [["isEdee",0],["isEd",0],["isEdAble",0],["by",0],["isEder",0]], choose: 1 },
154
+ { context: [["isEdee",1],["isEd",0],["isEdAble",0],["by",0],["isEder",0]], choose: 1 },
155
+ { context: [["isEdee",1],["isEd",0],["isEdAble",0],["by",0],["isEder",1]], choose: 1 },
156
+ { context: [["isEdee",0],["isEd",0],["isEdAble",0],["by",1]], choose: 1 },
157
+ { context: [["isEdee",1],["isEd",0],["isEdAble",0],["by",1]], choose: 1 },
158
+
159
+
160
+ ...listorama('unknown'),
161
+ ...listorama('queryable'),
162
+ // ...listorama('listable'),
122
163
  ]
123
164
  },
124
165
  bridges: [
@@ -134,12 +175,11 @@ const config = {
134
175
  id: 'queryable',
135
176
  children: [ 'negatable' ],
136
177
  },
137
- /*
138
178
  {
139
179
  id: 'queryable',
140
180
  level: 1,
181
+ isA: ['listable'],
141
182
  },
142
- */
143
183
  {
144
184
  id: 'makeObject',
145
185
  bridge: "{ ...next(operator), object: after[0] }",
@@ -158,7 +198,6 @@ const config = {
158
198
  },
159
199
  {
160
200
  id: 'resetIdSuffix',
161
- bridge: "{ ...next(operator) }",
162
201
  semantic: ({context, api}) => {
163
202
  api.setIdSuffix('')
164
203
  }
@@ -172,10 +211,9 @@ const config = {
172
211
  optional: { 1: "{ marker: 'unknown', implicit: true, concept: true }", },
173
212
  },
174
213
 
175
- { id: "debug23", level: 0, bridge: "{ ...next(operator) }" },
176
- // { id: "what", level: 0, bridge: "{ ...next(operator), ...after[0], query: ['what'], determined: true }" },
214
+ { id: "debug23" },
177
215
  { id: "what", level: 0, optional: "{ ...next(operator), query: ['what'], determined: true }", bridge: "{ ...after, query: ['what'], modifiers: ['what'], what: operator }" },
178
- { id: "whatAble", level: 0, bridge: "{ ...next(operator) }" },
216
+ { id: "whatAble" },
179
217
 
180
218
  // context.instance == variables.instance (unification)
181
219
  {
@@ -188,12 +226,12 @@ const config = {
188
226
  return `to ${await gp(context.toObject)}`
189
227
  },
190
228
  },
191
- { id: "toAble", level: 0, bridge: "{ ...next(operator) }" },
229
+ { id: "toAble" },
192
230
 
193
231
  { id: "be", level: 0, bridge: "{ ...next(operator), type: after[0] }" },
194
- { id: "briefOrWordy", level: 0, bridge: "{ ...next(operator) }" },
232
+ { id: "briefOrWordy" },
195
233
 
196
- { id: "yesno", level: 0, bridge: "{ ...next(operator) }" },
234
+ { id: "yesno" },
197
235
  { id: "canBeQuestion", level: 0, bridge: "{ ...next(operator) }" },
198
236
  { id: "canBeQuestion", level: 1, bridge: "{ ...next(operator) }" },
199
237
  { id: "questionMark", level: 0, bridge: "{ ...before[0], query: [before.marker] }" },
@@ -206,14 +244,17 @@ const config = {
206
244
  // { id: "isEd", level: 0, bridge: "{ ...context }" },
207
245
  { id: "isEdAble", level: 0, bridge: "{ ...next(operator) }" },
208
246
  { id: "isEdAble", level: 1, bridge: "{ ...next(operator) }" },
209
- { id: "isEdee", level: 0, bridge: "{ ...next(operator) }" },
210
- { id: "isEder", level: 0, bridge: "{ ...next(operator) }" },
247
+ { id: "isEdee" },
248
+ { id: "isEder" },
211
249
  { id: "is", level: 0,
212
- bridge: "{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }",
213
- isA: ['verb'],
214
- queryBridge: "{ ...next(operator), one: after[0], two: after[1], query: true }" ,
250
+ bridge: "{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }",
251
+ isA: ['verb'],
215
252
  },
216
253
  { id: "is", level: 1, bridge: "{ ...next(operator) }" },
254
+ { id: "isQuery", level: 0,
255
+ bridge: "{ ...operator, marker: operator('is', 1), one: after[0], two: after[1], query: true, generate: [operator, 'one', 'two'] }" ,
256
+ isA: ['verb'],
257
+ },
217
258
 
218
259
  { id: "canBeDoQuestion", level: 0, bridge: "{ ...next(operator) }" },
219
260
  { id: "canBeDoQuestion", level: 1, bridge: "{ ...next(operator) }" },
@@ -301,9 +342,7 @@ const config = {
301
342
  },
302
343
  {
303
344
  id: "reason",
304
- level: 0,
305
345
  isA: ['theAble', 'queryable'],
306
- bridge: "{ ...next(operator) }"
307
346
  },
308
347
  /*
309
348
  {
@@ -337,8 +376,16 @@ const config = {
337
376
  "wordy": [{"id": "briefOrWordy", "initial": "{ value: 'wordy' }" }],
338
377
  "does": [{"id": "does", "initial": "{ number: 'one' }" }],
339
378
  "do": [{"id": "does", "initial": "{ number: 'many' }" }],
340
- "is": [{"id": "is", "initial": "{ number: 'one' }" }, {"id": "isEd", "initial": "{ number: 'one' }" }],
341
- "are": [{"id": "is", "initial": "{ number: 'many' }" }, {"id": "isEd", "initial": "{ number: 'many' }" }],
379
+ "is": [
380
+ {"id": "is", "initial": "{ number: 'one' }" },
381
+ {"id": "isQuery", "initial": "{ number: 'one' }" },
382
+ {"id": "isEd", "initial": "{ number: 'one' }" }
383
+ ],
384
+ "are": [
385
+ {"id": "is", "initial": "{ number: 'many' }" },
386
+ {"id": "isQuery", "initial": "{ number: 'many' }" },
387
+ {"id": "isEd", "initial": "{ number: 'many' }" }
388
+ ],
342
389
  }
343
390
  },
344
391