tpmkms_4wp 8.0.0-beta.4 → 8.0.0-beta.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/common/animals.instance.json +2855 -1363
  2. package/common/animals.js +2 -2
  3. package/common/articles.js +108 -0
  4. package/common/articles.test.json +310 -0
  5. package/common/avatar.js +2 -2
  6. package/common/characters.js +9 -11
  7. package/common/colors.instance.json +6980 -3523
  8. package/common/colors.js +2 -2
  9. package/common/colors.test.json +345 -780
  10. package/common/comparable.js +2 -15
  11. package/common/concept.js +17 -11
  12. package/common/countable.js +5 -5
  13. package/common/crew.instance.json +13032 -6570
  14. package/common/crew.js +4 -4
  15. package/common/crew.test.json +714 -452
  16. package/common/currency.js +7 -7
  17. package/common/dialogues.js +117 -238
  18. package/common/dimension.instance.json +265 -264
  19. package/common/dimension.js +13 -13
  20. package/common/dimension.test.json +446 -1640
  21. package/common/edible.instance.json +19910 -9988
  22. package/common/edible.js +2 -2
  23. package/common/emotions.instance.json +146 -128
  24. package/common/emotions.js +4 -4
  25. package/common/evaluate.instance.json +2 -0
  26. package/common/evaluate.js +55 -0
  27. package/common/evaluate.test.json +574 -0
  28. package/common/events.js +6 -6
  29. package/common/fastfood.instance.json +221110 -111293
  30. package/common/fastfood.js +25 -25
  31. package/common/formulas.instance.json +241 -255
  32. package/common/formulas.js +14 -14
  33. package/common/gdefaults.js +19 -19
  34. package/common/help.js +4 -4
  35. package/common/help.test.json +22 -22
  36. package/common/helpers/concept.js +9 -6
  37. package/common/helpers/dialogues.js +2 -3
  38. package/common/helpers/properties.js +48 -58
  39. package/common/helpers.js +1 -1
  40. package/common/hierarchy.js +12 -16
  41. package/common/javascript.js +8 -8
  42. package/common/kirk.instance.json +583 -289
  43. package/common/kirk.js +2 -2
  44. package/common/length.instance.json +5530 -4754
  45. package/common/length.js +2 -2
  46. package/common/math.instance.json +176 -1168
  47. package/common/math.js +11 -11
  48. package/common/meta.js +22 -29
  49. package/common/nameable.instance.json +2 -0
  50. package/common/nameable.js +136 -0
  51. package/common/nameable.test.json +2121 -0
  52. package/common/negation.instance.json +2 -0
  53. package/common/negation.js +38 -0
  54. package/common/negation.test.json +308 -0
  55. package/common/numbers.js +3 -3
  56. package/common/ordering.instance.json +340 -228
  57. package/common/ordering.js +5 -5
  58. package/common/people.instance.json +2066 -1014
  59. package/common/people.js +4 -5
  60. package/common/percentages.instance.json +2 -0
  61. package/common/percentages.js +57 -0
  62. package/common/percentages.test.json +751 -0
  63. package/common/pipboy.instance.json +7974 -6300
  64. package/common/pipboy.js +29 -32
  65. package/common/pokemon.instance.json +4207 -2069
  66. package/common/pokemon.js +4 -4
  67. package/common/pos.js +1 -1
  68. package/common/pressure.instance.json +1341 -1189
  69. package/common/pressure.js +2 -2
  70. package/common/properties.instance.json +130 -60
  71. package/common/properties.js +54 -125
  72. package/common/punctuation.js +2 -2
  73. package/common/reports.instance.json +595 -557
  74. package/common/reports.js +58 -76
  75. package/common/scorekeeper.js +14 -22
  76. package/common/sdefaults.js +13 -3
  77. package/common/sizeable.js +2 -2
  78. package/common/spock.instance.json +583 -289
  79. package/common/spock.js +2 -2
  80. package/common/stgame.js +13 -9
  81. package/common/stm.js +136 -19
  82. package/common/stm.test.json +1734 -1
  83. package/common/tell.js +10 -10
  84. package/common/temperature.instance.json +1484 -1204
  85. package/common/temperature.js +2 -2
  86. package/common/tester.js +2 -2
  87. package/common/testing.js +5 -5
  88. package/common/time.js +7 -7
  89. package/common/tokenize.js +1 -1
  90. package/common/ui.instance.json +257 -258
  91. package/common/ui.js +9 -9
  92. package/common/weight.instance.json +5212 -4233
  93. package/common/weight.js +2 -2
  94. package/common/yesno.js +1 -1
  95. package/main.js +57 -46
  96. package/package.json +24 -6
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "configs": [
3
3
  "mathematical modifies operator",
4
- "* + / and - are mathematical operators",
5
4
  {
6
5
  "name": "math",
7
6
  "operators": [
8
7
  "([mathematicalExpression])",
9
- "([mathematicalOperator])",
8
+ "([mathematical_operator])",
10
9
  "(([number|]) [plusOperator] ([number|]))",
11
10
  "(([number|]) [minusOperator] ([number|]))",
12
11
  "(([number|]) [timesOperator] ([number|]))",
@@ -33,7 +32,7 @@
33
32
  ]
34
33
  },
35
34
  {
36
- "id": "mathematicalOperator",
35
+ "id": "mathematical_operator",
37
36
  "before": [
38
37
  "verby"
39
38
  ],
@@ -65,7 +64,7 @@
65
64
  "level": 0,
66
65
  "bridge": "{ ...next(operator), marker: next(operator('plusExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
67
66
  "isA": [
68
- "mathematicalOperator"
67
+ "mathematical_operator"
69
68
  ],
70
69
  "before": [],
71
70
  "localHierarchy": [
@@ -78,7 +77,7 @@
78
77
  "plus",
79
78
  "+"
80
79
  ],
81
- "generatorp": "({gp, context}) => context.word"
80
+ "generatorp": "({context}) => context.word"
82
81
  },
83
82
  {
84
83
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:44",
@@ -88,8 +87,8 @@
88
87
  "isA": [
89
88
  "mathematicalExpression"
90
89
  ],
91
- "generatorp": "({gp, context}) => `${gp(context.x)} ${context.word} ${gp(context.y)}`",
92
- "evaluator": "({e, context}) => {\n const x = toValue(e(context.x)) \n const y = toValue(e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
90
+ "generatorp": "async ({gp, context}) => `${await gp(context.x)} ${context.word} ${await gp(context.y)}`",
91
+ "evaluator": "async ({e, context}) => {\n const x = toValue(await e(context.x)) \n const y = toValue(await e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
93
92
  },
94
93
  {
95
94
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:32",
@@ -97,7 +96,7 @@
97
96
  "level": 0,
98
97
  "bridge": "{ ...next(operator), marker: next(operator('minusExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
99
98
  "isA": [
100
- "mathematicalOperator"
99
+ "mathematical_operator"
101
100
  ],
102
101
  "before": [],
103
102
  "localHierarchy": [
@@ -110,7 +109,7 @@
110
109
  "minus",
111
110
  "-"
112
111
  ],
113
- "generatorp": "({gp, context}) => context.word"
112
+ "generatorp": "({context}) => context.word"
114
113
  },
115
114
  {
116
115
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:44",
@@ -120,8 +119,8 @@
120
119
  "isA": [
121
120
  "mathematicalExpression"
122
121
  ],
123
- "generatorp": "({gp, context}) => `${gp(context.x)} ${context.word} ${gp(context.y)}`",
124
- "evaluator": "({e, context}) => {\n const x = toValue(e(context.x)) \n const y = toValue(e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
122
+ "generatorp": "async ({gp, context}) => `${await gp(context.x)} ${context.word} ${await gp(context.y)}`",
123
+ "evaluator": "async ({e, context}) => {\n const x = toValue(await e(context.x)) \n const y = toValue(await e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
125
124
  },
126
125
  {
127
126
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:32",
@@ -129,7 +128,7 @@
129
128
  "level": 0,
130
129
  "bridge": "{ ...next(operator), marker: next(operator('timesExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
131
130
  "isA": [
132
- "mathematicalOperator"
131
+ "mathematical_operator"
133
132
  ],
134
133
  "before": [
135
134
  [
@@ -151,7 +150,7 @@
151
150
  "times",
152
151
  "*"
153
152
  ],
154
- "generatorp": "({gp, context}) => context.word"
153
+ "generatorp": "({context}) => context.word"
155
154
  },
156
155
  {
157
156
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:44",
@@ -161,8 +160,8 @@
161
160
  "isA": [
162
161
  "mathematicalExpression"
163
162
  ],
164
- "generatorp": "({gp, context}) => `${gp(context.x)} ${context.word} ${gp(context.y)}`",
165
- "evaluator": "({e, context}) => {\n const x = toValue(e(context.x)) \n const y = toValue(e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
163
+ "generatorp": "async ({gp, context}) => `${await gp(context.x)} ${context.word} ${await gp(context.y)}`",
164
+ "evaluator": "async ({e, context}) => {\n const x = toValue(await e(context.x)) \n const y = toValue(await e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
166
165
  },
167
166
  {
168
167
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:32",
@@ -170,7 +169,7 @@
170
169
  "level": 0,
171
170
  "bridge": "{ ...next(operator), marker: next(operator('divideByExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
172
171
  "isA": [
173
- "mathematicalOperator"
172
+ "mathematical_operator"
174
173
  ],
175
174
  "before": [
176
175
  [
@@ -191,7 +190,7 @@
191
190
  "words": [
192
191
  "/"
193
192
  ],
194
- "generatorp": "({gp, context}) => context.word"
193
+ "generatorp": "({context}) => context.word"
195
194
  },
196
195
  {
197
196
  "where": "/home/dev/code/theprogrammablemind/kms/common/math.js:44",
@@ -201,8 +200,8 @@
201
200
  "isA": [
202
201
  "mathematicalExpression"
203
202
  ],
204
- "generatorp": "({gp, context}) => `${gp(context.x)} ${context.word} ${gp(context.y)}`",
205
- "evaluator": "({e, context}) => {\n const x = toValue(e(context.x)) \n const y = toValue(e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
203
+ "generatorp": "async ({gp, context}) => `${await gp(context.x)} ${context.word} ${await gp(context.y)}`",
204
+ "evaluator": "async ({e, context}) => {\n const x = toValue(await e(context.x)) \n const y = toValue(await e(context.y))\n if (!x || !y) {\n // context.evalue = { ...context, paraphrase: true, x: { ...context.x, value: x }, y: { ...context.y, value: y } }\n context.isResponse = false\n } else {\n context.evalue = apply(x, y)\n context.evalue.isResponse = true\n context.evalue.paraphrase = false\n // context.paraphrase = false\n // context.isResponse = true\n }\n /*\n if (!context.value) {\n context.isResponse = false\n context.paraphrase = true\n }\n */\n }"
206
205
  }
207
206
  ]
208
207
  }
@@ -212,267 +211,348 @@
212
211
  "hierarchy": [
213
212
  [
214
213
  "a",
215
- "articlePOS"
214
+ "articlePOS",
215
+ false
216
+ ],
217
+ [
218
+ "adjective",
219
+ "adjective",
220
+ false
216
221
  ],
217
222
  [
218
223
  "all",
219
- "quantifier"
224
+ "quantifier",
225
+ false
220
226
  ],
221
227
  [
222
228
  "articlePOS",
223
- "articlePOS"
229
+ "articlePOS",
230
+ false
224
231
  ],
225
232
  [
226
233
  "between",
227
- "preposition"
234
+ "preposition",
235
+ false
228
236
  ],
229
237
  [
230
238
  "canBeDoQuestion",
231
- "canBeDoQuestion"
239
+ "canBeDoQuestion",
240
+ false
232
241
  ],
233
242
  [
234
243
  "canBeQuestion",
235
- "canBeQuestion"
244
+ "canBeQuestion",
245
+ false
236
246
  ],
237
247
  [
238
248
  "concept",
239
- "queryable"
249
+ "queryable",
250
+ false
240
251
  ],
241
252
  [
242
253
  "concept",
243
- "theAble"
254
+ "theAble",
255
+ false
244
256
  ],
245
257
  [
246
258
  "condition",
247
- "condition"
259
+ "condition",
260
+ false
248
261
  ],
249
262
  [
250
263
  "countable",
251
- "hierarchyAble"
264
+ "hierarchyAble",
265
+ false
252
266
  ],
253
267
  [
254
268
  "doubleQuote",
255
- "queryable"
269
+ "queryable",
270
+ false
271
+ ],
272
+ [
273
+ "evaluate",
274
+ "verby",
275
+ false
256
276
  ],
257
277
  [
258
278
  "hasCountOfPieces",
259
- "countable"
279
+ "countable",
280
+ false
260
281
  ],
261
282
  [
262
283
  "have",
263
- "canBeDoQuestion"
284
+ "canBeDoQuestion",
285
+ false
264
286
  ],
265
287
  [
266
288
  "have",
267
- "canBeQuestion"
289
+ "canBeQuestion",
290
+ false
268
291
  ],
269
292
  [
270
293
  "hierarchyAble",
271
- "queryable"
294
+ "queryable",
295
+ false
272
296
  ],
273
297
  [
274
298
  "highest",
275
- "condition"
299
+ "condition",
300
+ false
276
301
  ],
277
302
  [
278
303
  "ifAble",
279
- "ifAble"
304
+ "ifAble",
305
+ false
280
306
  ],
281
307
  [
282
308
  "is",
283
- "canBeQuestion"
309
+ "canBeQuestion",
310
+ false
284
311
  ],
285
312
  [
286
313
  "is",
287
- "verby"
314
+ "verby",
315
+ false
288
316
  ],
289
317
  [
290
318
  "it",
291
- "pronoun"
319
+ "pronoun",
320
+ false
292
321
  ],
293
322
  [
294
323
  "it",
295
- "queryable"
324
+ "queryable",
325
+ false
296
326
  ],
297
327
  [
298
328
  "it",
299
- "thisitthat"
329
+ "thisitthat",
330
+ false
300
331
  ],
301
332
  [
302
333
  "it",
303
- "toAble"
334
+ "toAble",
335
+ false
304
336
  ],
305
337
  [
306
338
  "lowest",
307
- "condition"
339
+ "condition",
340
+ false
308
341
  ],
309
342
  [
310
- "modifies",
311
- "verby"
343
+ "memorable",
344
+ "theAble",
345
+ false
312
346
  ],
313
347
  [
314
- "notAble",
315
- "notAble"
348
+ "modifies",
349
+ "verby",
350
+ false
316
351
  ],
317
352
  [
318
353
  "noun",
319
- "theAble"
354
+ "theAble",
355
+ false
320
356
  ],
321
357
  [
322
358
  "number",
323
- "quantifier"
359
+ "quantifier",
360
+ false
324
361
  ],
325
362
  [
326
363
  "number",
327
- "queryable"
364
+ "queryable",
365
+ false
328
366
  ],
329
367
  [
330
368
  "object",
331
- "queryable"
369
+ "queryable",
370
+ false
332
371
  ],
333
372
  [
334
373
  "object",
335
- "theAble"
374
+ "theAble",
375
+ false
336
376
  ],
337
377
  [
338
378
  "orAble",
339
- "ifAble"
379
+ "ifAble",
380
+ false
340
381
  ],
341
382
  [
342
383
  "preposition",
343
- "preposition"
384
+ "preposition",
385
+ false
344
386
  ],
345
387
  [
346
388
  "pronoun",
347
- "pronoun"
389
+ "pronoun",
390
+ false
348
391
  ],
349
392
  [
350
393
  "property",
351
- "queryable"
394
+ "queryable",
395
+ false
352
396
  ],
353
397
  [
354
398
  "property",
355
- "theAble"
399
+ "theAble",
400
+ false
356
401
  ],
357
402
  [
358
403
  "property",
359
- "unknown"
404
+ "unknown",
405
+ false
360
406
  ],
361
407
  [
362
408
  "punctuation",
363
- "punctuation"
409
+ "punctuation",
410
+ false
364
411
  ],
365
412
  [
366
413
  "quantifier",
367
- "quantifier"
414
+ "quantifier",
415
+ false
368
416
  ],
369
417
  [
370
418
  "queryable",
371
- "queryable"
419
+ "queryable",
420
+ false
372
421
  ],
373
422
  [
374
423
  "questionMark",
375
- "punctuation"
424
+ "punctuation",
425
+ false
376
426
  ],
377
427
  [
378
428
  "readonly",
379
- "queryable"
429
+ "queryable",
430
+ false
380
431
  ],
381
432
  [
382
433
  "reason",
383
- "queryable"
434
+ "queryable",
435
+ false
384
436
  ],
385
437
  [
386
438
  "reason",
387
- "theAble"
439
+ "theAble",
440
+ false
441
+ ],
442
+ [
443
+ "remember",
444
+ "verby",
445
+ false
446
+ ],
447
+ [
448
+ "stm_before",
449
+ "adjective",
450
+ false
388
451
  ],
389
452
  [
390
453
  "that",
391
- "thisitthat"
454
+ "thisitthat",
455
+ false
392
456
  ],
393
457
  [
394
458
  "the",
395
- "articlePOS"
459
+ "articlePOS",
460
+ false
396
461
  ],
397
462
  [
398
463
  "theAble",
399
- "theAble"
464
+ "theAble",
465
+ false
400
466
  ],
401
467
  [
402
468
  "this",
403
- "pronoun"
469
+ "pronoun",
470
+ false
404
471
  ],
405
472
  [
406
473
  "this",
407
- "queryable"
474
+ "queryable",
475
+ false
408
476
  ],
409
477
  [
410
478
  "this",
411
- "thisitthat"
479
+ "thisitthat",
480
+ false
412
481
  ],
413
482
  [
414
483
  "thisitthat",
415
- "queryable"
484
+ "queryable",
485
+ false
416
486
  ],
417
487
  [
418
488
  "to",
419
- "preposition"
489
+ "preposition",
490
+ false
420
491
  ],
421
492
  [
422
493
  "toAble",
423
- "toAble"
494
+ "toAble",
495
+ false
424
496
  ],
425
497
  [
426
498
  "type",
427
- "property"
499
+ "property",
500
+ false
428
501
  ],
429
502
  [
430
503
  "type",
431
- "whatAble"
432
- ],
433
- [
434
- "unknown",
435
- "hierarchyAble"
504
+ "whatAble",
505
+ false
436
506
  ],
437
507
  [
438
508
  "unknown",
439
- "notAble"
509
+ "hierarchyAble",
510
+ false
440
511
  ],
441
512
  [
442
513
  "unknown",
443
- "object"
514
+ "object",
515
+ false
444
516
  ],
445
517
  [
446
518
  "unknown",
447
- "queryable"
519
+ "queryable",
520
+ false
448
521
  ],
449
522
  [
450
523
  "unknown",
451
- "theAble"
524
+ "theAble",
525
+ false
452
526
  ],
453
527
  [
454
528
  "verby",
455
- "verby"
529
+ "verby",
530
+ false
456
531
  ],
457
532
  [
458
533
  "what",
459
- "object"
534
+ "object",
535
+ false
460
536
  ],
461
537
  [
462
538
  "what",
463
- "queryable"
539
+ "queryable",
540
+ false
464
541
  ],
465
542
  [
466
543
  "whatAble",
467
- "queryable"
544
+ "queryable",
545
+ false
468
546
  ],
469
547
  [
470
548
  "whose",
471
- "object"
549
+ "object",
550
+ false
472
551
  ],
473
552
  [
474
553
  "xfx",
475
- "queryable"
554
+ "queryable",
555
+ false
476
556
  ]
477
557
  ],
478
558
  "metadata": {
@@ -631,964 +711,12 @@
631
711
  "query": "mathematical modifies operator"
632
712
  }
633
713
  },
634
- {
635
- "hierarchy": [
636
- [
637
- "a",
638
- "articlePOS"
639
- ],
640
- [
641
- "adjective",
642
- "adjective"
643
- ],
644
- [
645
- "all",
646
- "quantifier"
647
- ],
648
- [
649
- "articlePOS",
650
- "articlePOS"
651
- ],
652
- [
653
- "between",
654
- "preposition"
655
- ],
656
- [
657
- "canBeDoQuestion",
658
- "canBeDoQuestion"
659
- ],
660
- [
661
- "canBeQuestion",
662
- "canBeQuestion"
663
- ],
664
- [
665
- "concept",
666
- "queryable"
667
- ],
668
- [
669
- "concept",
670
- "theAble"
671
- ],
672
- [
673
- "condition",
674
- "condition"
675
- ],
676
- [
677
- "countable",
678
- "hierarchyAble"
679
- ],
680
- [
681
- "doubleQuote",
682
- "queryable"
683
- ],
684
- [
685
- "hasCountOfPieces",
686
- "countable"
687
- ],
688
- [
689
- "have",
690
- "canBeDoQuestion"
691
- ],
692
- [
693
- "have",
694
- "canBeQuestion"
695
- ],
696
- [
697
- "hierarchyAble",
698
- "queryable"
699
- ],
700
- [
701
- "highest",
702
- "condition"
703
- ],
704
- [
705
- "ifAble",
706
- "ifAble"
707
- ],
708
- [
709
- "is",
710
- "canBeQuestion"
711
- ],
712
- [
713
- "is",
714
- "verby"
715
- ],
716
- [
717
- "isEdee",
718
- "isEdee"
719
- ],
720
- [
721
- "isEder",
722
- "isEder"
723
- ],
724
- [
725
- "it",
726
- "pronoun"
727
- ],
728
- [
729
- "it",
730
- "queryable"
731
- ],
732
- [
733
- "it",
734
- "thisitthat"
735
- ],
736
- [
737
- "it",
738
- "toAble"
739
- ],
740
- [
741
- "lowest",
742
- "condition"
743
- ],
744
- [
745
- "mathematical",
746
- "hierarchyAble"
747
- ],
748
- [
749
- "mathematical",
750
- "isEdee"
751
- ],
752
- [
753
- "mathematical",
754
- "isEder"
755
- ],
756
- [
757
- "mathematical",
758
- "object"
759
- ],
760
- [
761
- "mathematical",
762
- "operator_modifier"
763
- ],
764
- [
765
- "mathematical",
766
- "property"
767
- ],
768
- [
769
- "mathematical",
770
- "queryable"
771
- ],
772
- [
773
- "mathematical",
774
- "theAble"
775
- ],
776
- [
777
- "mathematical_operator",
778
- "adjective"
779
- ],
780
- [
781
- "mathematical_operator",
782
- "concept"
783
- ],
784
- [
785
- "mathematical_operator",
786
- "hierarchyAble"
787
- ],
788
- [
789
- "mathematical_operator",
790
- "isEdee"
791
- ],
792
- [
793
- "mathematical_operator",
794
- "isEder"
795
- ],
796
- [
797
- "mathematical_operator",
798
- "object"
799
- ],
800
- [
801
- "mathematical_operator",
802
- "operator"
803
- ],
804
- [
805
- "mathematical_operator",
806
- "property"
807
- ],
808
- [
809
- "mathematical_operator",
810
- "queryable"
811
- ],
812
- [
813
- "mathematical_operator",
814
- "theAble"
815
- ],
816
- [
817
- "modifies",
818
- "verby"
819
- ],
820
- [
821
- "notAble",
822
- "notAble"
823
- ],
824
- [
825
- "noun",
826
- "theAble"
827
- ],
828
- [
829
- "number",
830
- "quantifier"
831
- ],
832
- [
833
- "number",
834
- "queryable"
835
- ],
836
- [
837
- "object",
838
- "queryable"
839
- ],
840
- [
841
- "object",
842
- "theAble"
843
- ],
844
- [
845
- "operator",
846
- "concept"
847
- ],
848
- [
849
- "operator",
850
- "hierarchyAble"
851
- ],
852
- [
853
- "operator",
854
- "isEdee"
855
- ],
856
- [
857
- "operator",
858
- "isEder"
859
- ],
860
- [
861
- "operator",
862
- "object"
863
- ],
864
- [
865
- "operator",
866
- "property"
867
- ],
868
- [
869
- "operator",
870
- "queryable"
871
- ],
872
- [
873
- "operator",
874
- "theAble"
875
- ],
876
- [
877
- "operator_modifier",
878
- "operator_modifier"
879
- ],
880
- [
881
- "orAble",
882
- "ifAble"
883
- ],
884
- [
885
- "preposition",
886
- "preposition"
887
- ],
888
- [
889
- "pronoun",
890
- "pronoun"
891
- ],
892
- [
893
- "property",
894
- "queryable"
895
- ],
896
- [
897
- "property",
898
- "theAble"
899
- ],
900
- [
901
- "property",
902
- "unknown"
903
- ],
904
- [
905
- "punctuation",
906
- "punctuation"
907
- ],
908
- [
909
- "quantifier",
910
- "quantifier"
911
- ],
912
- [
913
- "queryable",
914
- "queryable"
915
- ],
916
- [
917
- "questionMark",
918
- "punctuation"
919
- ],
920
- [
921
- "readonly",
922
- "queryable"
923
- ],
924
- [
925
- "reason",
926
- "queryable"
927
- ],
928
- [
929
- "reason",
930
- "theAble"
931
- ],
932
- [
933
- "that",
934
- "thisitthat"
935
- ],
936
- [
937
- "the",
938
- "articlePOS"
939
- ],
940
- [
941
- "theAble",
942
- "theAble"
943
- ],
944
- [
945
- "this",
946
- "pronoun"
947
- ],
948
- [
949
- "this",
950
- "queryable"
951
- ],
952
- [
953
- "this",
954
- "thisitthat"
955
- ],
956
- [
957
- "thisitthat",
958
- "queryable"
959
- ],
960
- [
961
- "to",
962
- "preposition"
963
- ],
964
- [
965
- "toAble",
966
- "toAble"
967
- ],
968
- [
969
- "type",
970
- "property"
971
- ],
972
- [
973
- "type",
974
- "whatAble"
975
- ],
976
- [
977
- "unknown",
978
- "hierarchyAble"
979
- ],
980
- [
981
- "unknown",
982
- "notAble"
983
- ],
984
- [
985
- "unknown",
986
- "object"
987
- ],
988
- [
989
- "unknown",
990
- "queryable"
991
- ],
992
- [
993
- "unknown",
994
- "theAble"
995
- ],
996
- [
997
- "verby",
998
- "verby"
999
- ],
1000
- [
1001
- "what",
1002
- "object"
1003
- ],
1004
- [
1005
- "what",
1006
- "queryable"
1007
- ],
1008
- [
1009
- "whatAble",
1010
- "queryable"
1011
- ],
1012
- [
1013
- "whose",
1014
- "object"
1015
- ],
1016
- [
1017
- "xfx",
1018
- "queryable"
1019
- ]
1020
- ],
1021
- "metadata": {
1022
- "opChoices": [
1023
- {
1024
- "op": [
1025
- "unknown",
1026
- 0
1027
- ],
1028
- "ops": [
1029
- [
1030
- "unknown",
1031
- 0
1032
- ],
1033
- [
1034
- "unknown",
1035
- 0
1036
- ],
1037
- [
1038
- "unknown",
1039
- 0
1040
- ],
1041
- [
1042
- "unknown",
1043
- 0
1044
- ],
1045
- [
1046
- "is",
1047
- 0
1048
- ],
1049
- [
1050
- "mathematical",
1051
- 0
1052
- ],
1053
- [
1054
- "operator",
1055
- 0
1056
- ],
1057
- [
1058
- "mathematical_operator",
1059
- 0
1060
- ],
1061
- [
1062
- "list",
1063
- 0
1064
- ]
1065
- ],
1066
- "counter": 1
1067
- },
1068
- {
1069
- "op": [
1070
- "unknown",
1071
- 0
1072
- ],
1073
- "ops": [
1074
- [
1075
- "unknown",
1076
- 0
1077
- ],
1078
- [
1079
- "unknown",
1080
- 0
1081
- ],
1082
- [
1083
- "unknown",
1084
- 0
1085
- ],
1086
- [
1087
- "is",
1088
- 0
1089
- ],
1090
- [
1091
- "mathematical",
1092
- 0
1093
- ],
1094
- [
1095
- "operator",
1096
- 0
1097
- ],
1098
- [
1099
- "mathematical_operator",
1100
- 0
1101
- ],
1102
- [
1103
- "list",
1104
- 0
1105
- ]
1106
- ],
1107
- "counter": 2
1108
- },
1109
- {
1110
- "op": [
1111
- "unknown",
1112
- 0
1113
- ],
1114
- "ops": [
1115
- [
1116
- "unknown",
1117
- 0
1118
- ],
1119
- [
1120
- "unknown",
1121
- 0
1122
- ],
1123
- [
1124
- "is",
1125
- 0
1126
- ],
1127
- [
1128
- "mathematical",
1129
- 0
1130
- ],
1131
- [
1132
- "operator",
1133
- 0
1134
- ],
1135
- [
1136
- "mathematical_operator",
1137
- 0
1138
- ],
1139
- [
1140
- "list",
1141
- 0
1142
- ]
1143
- ],
1144
- "counter": 3
1145
- },
1146
- {
1147
- "op": [
1148
- "unknown",
1149
- 0
1150
- ],
1151
- "ops": [
1152
- [
1153
- "unknown",
1154
- 0
1155
- ],
1156
- [
1157
- "is",
1158
- 0
1159
- ],
1160
- [
1161
- "mathematical",
1162
- 0
1163
- ],
1164
- [
1165
- "operator",
1166
- 0
1167
- ],
1168
- [
1169
- "mathematical_operator",
1170
- 0
1171
- ],
1172
- [
1173
- "list",
1174
- 0
1175
- ]
1176
- ],
1177
- "counter": 4
1178
- },
1179
- {
1180
- "op": [
1181
- "list",
1182
- 0
1183
- ],
1184
- "ops": [
1185
- [
1186
- "is",
1187
- 0
1188
- ],
1189
- [
1190
- "mathematical",
1191
- 0
1192
- ],
1193
- [
1194
- "operator",
1195
- 0
1196
- ],
1197
- [
1198
- "mathematical_operator",
1199
- 0
1200
- ],
1201
- [
1202
- "list",
1203
- 0
1204
- ]
1205
- ],
1206
- "counter": 5
1207
- },
1208
- {
1209
- "op": [
1210
- "list",
1211
- 1
1212
- ],
1213
- "ops": [
1214
- [
1215
- "is",
1216
- 0
1217
- ],
1218
- [
1219
- "mathematical",
1220
- 0
1221
- ],
1222
- [
1223
- "operator",
1224
- 0
1225
- ],
1226
- [
1227
- "mathematical_operator",
1228
- 0
1229
- ],
1230
- [
1231
- "list",
1232
- 1
1233
- ]
1234
- ],
1235
- "counter": 6
1236
- },
1237
- {
1238
- "op": [
1239
- "list",
1240
- 1
1241
- ],
1242
- "ops": [
1243
- [
1244
- "is",
1245
- 0
1246
- ],
1247
- [
1248
- "mathematical",
1249
- 0
1250
- ],
1251
- [
1252
- "operator",
1253
- 0
1254
- ],
1255
- [
1256
- "mathematical_operator",
1257
- 0
1258
- ],
1259
- [
1260
- "list",
1261
- 1
1262
- ]
1263
- ],
1264
- "counter": 7
1265
- },
1266
- {
1267
- "op": [
1268
- "mathematical_operator",
1269
- 0
1270
- ],
1271
- "ops": [
1272
- [
1273
- "is",
1274
- 0
1275
- ],
1276
- [
1277
- "mathematical",
1278
- 0
1279
- ],
1280
- [
1281
- "operator",
1282
- 0
1283
- ],
1284
- [
1285
- "mathematical_operator",
1286
- 0
1287
- ]
1288
- ],
1289
- "counter": 8
1290
- },
1291
- {
1292
- "op": [
1293
- "is",
1294
- 0
1295
- ],
1296
- "ops": [
1297
- [
1298
- "is",
1299
- 0
1300
- ]
1301
- ],
1302
- "counter": 9
1303
- },
1304
- {
1305
- "op": [
1306
- "is",
1307
- 1
1308
- ],
1309
- "ops": [
1310
- [
1311
- "is",
1312
- 1
1313
- ]
1314
- ],
1315
- "counter": 10
1316
- }
1317
- ]
1318
- },
1319
- "trace": "undefined",
1320
- "contexts": [
1321
- {
1322
- "number": "many",
1323
- "text": "* + / and - are mathematical operators",
1324
- "marker": "is",
1325
- "word": "are",
1326
- "range": {
1327
- "start": 0,
1328
- "end": 37
1329
- },
1330
- "one": {
1331
- "number": "many",
1332
- "marker": "list",
1333
- "default": true,
1334
- "word": "and",
1335
- "text": "* + / and -",
1336
- "range": {
1337
- "start": 0,
1338
- "end": 37
1339
- },
1340
- "types": [
1341
- "list",
1342
- "unknown"
1343
- ],
1344
- "listable": true,
1345
- "isList": true,
1346
- "value": [
1347
- {
1348
- "marker": "unknown",
1349
- "value": "*",
1350
- "word": "*",
1351
- "text": "*",
1352
- "range": {
1353
- "start": 0,
1354
- "end": 0
1355
- },
1356
- "unknown": true,
1357
- "dead": true,
1358
- "level": 1
1359
- },
1360
- {
1361
- "marker": "unknown",
1362
- "value": "+",
1363
- "word": "+",
1364
- "text": "+",
1365
- "range": {
1366
- "start": 2,
1367
- "end": 2
1368
- },
1369
- "unknown": true,
1370
- "dead": true,
1371
- "level": 1
1372
- },
1373
- {
1374
- "marker": "unknown",
1375
- "value": "/",
1376
- "word": "/",
1377
- "text": "/",
1378
- "range": {
1379
- "start": 4,
1380
- "end": 4
1381
- },
1382
- "unknown": true,
1383
- "dead": true,
1384
- "level": 1
1385
- },
1386
- {
1387
- "marker": "unknown",
1388
- "value": "-",
1389
- "word": "-",
1390
- "text": "-",
1391
- "range": {
1392
- "start": 10,
1393
- "end": 10
1394
- },
1395
- "unknown": true,
1396
- "dead": true,
1397
- "level": 1
1398
- }
1399
- ],
1400
- "level": 1
1401
- },
1402
- "two": {
1403
- "value": "mathematical_operator",
1404
- "number": "many",
1405
- "text": "mathematical operators",
1406
- "marker": "mathematical_operator",
1407
- "word": "operators",
1408
- "range": {
1409
- "start": 16,
1410
- "end": 37
1411
- },
1412
- "types": [
1413
- "mathematical_operator",
1414
- "operator"
1415
- ],
1416
- "modifier_mathematical": {
1417
- "value": "mathematical",
1418
- "number": "one",
1419
- "text": "mathematical",
1420
- "marker": "mathematical",
1421
- "word": "mathematical",
1422
- "range": {
1423
- "start": 16,
1424
- "end": 27
1425
- },
1426
- "types": [
1427
- "mathematical"
1428
- ],
1429
- "level": 0
1430
- },
1431
- "atomic": true,
1432
- "dead": true,
1433
- "modifiers": [
1434
- "modifier_mathematical"
1435
- ],
1436
- "level": 1,
1437
- "concept": true
1438
- },
1439
- "dead": true,
1440
- "level": 2,
1441
- "topLevel": true,
1442
- "touchedBy": [
1443
- "math#call2"
1444
- ]
1445
- }
1446
- ],
1447
- "generated": [
1448
- ""
1449
- ],
1450
- "paraphrases": [
1451
- "*, +, / and - are mathematical operators"
1452
- ],
1453
- "paraphrasesParenthesized": [],
1454
- "generatedParenthesized": [],
1455
- "responses": [
1456
- ""
1457
- ],
1458
- "associations": [
1459
- [
1460
- [
1461
- "is",
1462
- 0
1463
- ],
1464
- [
1465
- "list",
1466
- 0
1467
- ],
1468
- [
1469
- "mathematical",
1470
- 0
1471
- ],
1472
- [
1473
- "operator",
1474
- 0
1475
- ],
1476
- [
1477
- "unknown",
1478
- 0
1479
- ]
1480
- ],
1481
- [
1482
- [
1483
- "is",
1484
- 0
1485
- ],
1486
- [
1487
- "list",
1488
- 0
1489
- ],
1490
- [
1491
- "mathematical",
1492
- 0
1493
- ],
1494
- [
1495
- "operator",
1496
- 0
1497
- ],
1498
- [
1499
- "unknown",
1500
- 0
1501
- ],
1502
- [
1503
- "unknown",
1504
- 1
1505
- ]
1506
- ],
1507
- [
1508
- [
1509
- "is",
1510
- 0
1511
- ],
1512
- [
1513
- "list",
1514
- 0
1515
- ],
1516
- [
1517
- "mathematical",
1518
- 0
1519
- ],
1520
- [
1521
- "operator",
1522
- 0
1523
- ],
1524
- [
1525
- "unknown",
1526
- 1
1527
- ]
1528
- ],
1529
- [
1530
- [
1531
- "is",
1532
- 0
1533
- ],
1534
- [
1535
- "list",
1536
- 1
1537
- ]
1538
- ],
1539
- [
1540
- [
1541
- "is",
1542
- 0
1543
- ],
1544
- [
1545
- "list",
1546
- 1
1547
- ],
1548
- [
1549
- "mathematical",
1550
- 0
1551
- ],
1552
- [
1553
- "operator",
1554
- 0
1555
- ]
1556
- ],
1557
- [
1558
- [
1559
- "is",
1560
- 0
1561
- ],
1562
- [
1563
- "list",
1564
- 1
1565
- ],
1566
- [
1567
- "mathematical",
1568
- 0
1569
- ],
1570
- [
1571
- "operator",
1572
- 0
1573
- ],
1574
- [
1575
- "unknown",
1576
- 1
1577
- ]
1578
- ]
1579
- ],
1580
- "learned_contextual_priorities": [],
1581
- "query": "* + / and - are mathematical operators",
1582
- "key": {
1583
- "query": "* + / and - are mathematical operators"
1584
- }
1585
- },
1586
714
  {
1587
715
  "extraConfig": true,
1588
716
  "name": "math",
1589
717
  "operators": [
1590
718
  "([mathematicalExpression])",
1591
- "([mathematicalOperator])",
719
+ "([mathematical_operator])",
1592
720
  "(([number|]) [plusOperator] ([number|]))",
1593
721
  "(([number|]) [minusOperator] ([number|]))",
1594
722
  "(([number|]) [timesOperator] ([number|]))",
@@ -1615,7 +743,7 @@
1615
743
  ]
1616
744
  },
1617
745
  {
1618
- "id": "mathematicalOperator",
746
+ "id": "mathematical_operator",
1619
747
  "before": [
1620
748
  "verby"
1621
749
  ],
@@ -1647,7 +775,7 @@
1647
775
  "level": 0,
1648
776
  "bridge": "{ ...next(operator), marker: next(operator('plusExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
1649
777
  "isA": [
1650
- "mathematicalOperator"
778
+ "mathematical_operator"
1651
779
  ],
1652
780
  "before": [],
1653
781
  "localHierarchy": [
@@ -1676,7 +804,7 @@
1676
804
  "level": 0,
1677
805
  "bridge": "{ ...next(operator), marker: next(operator('minusExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
1678
806
  "isA": [
1679
- "mathematicalOperator"
807
+ "mathematical_operator"
1680
808
  ],
1681
809
  "before": [],
1682
810
  "localHierarchy": [
@@ -1705,7 +833,7 @@
1705
833
  "level": 0,
1706
834
  "bridge": "{ ...next(operator), marker: next(operator('timesExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
1707
835
  "isA": [
1708
- "mathematicalOperator"
836
+ "mathematical_operator"
1709
837
  ],
1710
838
  "before": [
1711
839
  [
@@ -1743,7 +871,7 @@
1743
871
  "level": 0,
1744
872
  "bridge": "{ ...next(operator), marker: next(operator('divideByExpression')), types: lub(append(['mathematicalExpression'], operator.types, before[0].types, after[0].types)), value: null, x: before[0], y: after[0], number: 'one', isResponse: true, evaluate: true }",
1745
873
  "isA": [
1746
- "mathematicalOperator"
874
+ "mathematical_operator"
1747
875
  ],
1748
876
  "before": [
1749
877
  [
@@ -1780,126 +908,6 @@
1780
908
  "fragments": [],
1781
909
  "semantics": [],
1782
910
  "associations": [
1783
- [
1784
- [
1785
- "is",
1786
- 0
1787
- ],
1788
- [
1789
- "list",
1790
- 0
1791
- ],
1792
- [
1793
- "mathematical",
1794
- 0
1795
- ],
1796
- [
1797
- "operator",
1798
- 0
1799
- ],
1800
- [
1801
- "unknown",
1802
- 0
1803
- ]
1804
- ],
1805
- [
1806
- [
1807
- "is",
1808
- 0
1809
- ],
1810
- [
1811
- "list",
1812
- 0
1813
- ],
1814
- [
1815
- "mathematical",
1816
- 0
1817
- ],
1818
- [
1819
- "operator",
1820
- 0
1821
- ],
1822
- [
1823
- "unknown",
1824
- 0
1825
- ],
1826
- [
1827
- "unknown",
1828
- 1
1829
- ]
1830
- ],
1831
- [
1832
- [
1833
- "is",
1834
- 0
1835
- ],
1836
- [
1837
- "list",
1838
- 0
1839
- ],
1840
- [
1841
- "mathematical",
1842
- 0
1843
- ],
1844
- [
1845
- "operator",
1846
- 0
1847
- ],
1848
- [
1849
- "unknown",
1850
- 1
1851
- ]
1852
- ],
1853
- [
1854
- [
1855
- "is",
1856
- 0
1857
- ],
1858
- [
1859
- "list",
1860
- 1
1861
- ]
1862
- ],
1863
- [
1864
- [
1865
- "is",
1866
- 0
1867
- ],
1868
- [
1869
- "list",
1870
- 1
1871
- ],
1872
- [
1873
- "mathematical",
1874
- 0
1875
- ],
1876
- [
1877
- "operator",
1878
- 0
1879
- ]
1880
- ],
1881
- [
1882
- [
1883
- "is",
1884
- 0
1885
- ],
1886
- [
1887
- "list",
1888
- 1
1889
- ],
1890
- [
1891
- "mathematical",
1892
- 0
1893
- ],
1894
- [
1895
- "operator",
1896
- 0
1897
- ],
1898
- [
1899
- "unknown",
1900
- 1
1901
- ]
1902
- ],
1903
911
  [
1904
912
  [
1905
913
  "modifies",