tpmkms_4wp 8.9.1 → 9.0.0-beta.0
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 +6716 -775
- package/common/articles.js +22 -9
- package/common/articles.test.json +640 -2
- package/common/asking.js +3 -3
- package/common/asking.test.json +1599 -140
- package/common/avatar.js +9 -1
- package/common/avatar.test.json +6008 -2749
- package/common/characters.js +1 -1
- package/common/characters.test.json +1371 -95
- package/common/colors.instance.json +22813 -1432
- package/common/colors.test.json +704 -136
- package/common/comparable.instance.json +1337 -159
- package/common/comparable.js +13 -13
- package/common/comparable.test.json +3239 -558
- package/common/concept.js +11 -3
- package/common/concept.test.json +2853 -694
- package/common/conjunction.js +13 -1
- package/common/conjunction.test.json +229 -1
- package/common/countable.js +3 -9
- package/common/countable.test.json +1310 -638
- package/common/crew.instance.json +19500 -2069
- package/common/crew.js +19 -0
- package/common/crew.test.json +10218 -2145
- package/common/currency.js +2 -3
- package/common/currency.test.json +948 -64
- package/common/dialogues.js +111 -33
- package/common/dialogues.test.json +6611 -1905
- package/common/dimension.instance.json +760 -84
- package/common/dimension.js +18 -4
- package/common/dimension.test.json +23680 -11550
- package/common/edible.instance.json +21870 -2699
- package/common/edible.js +13 -0
- package/common/edible.test.json +1580 -304
- package/common/emotions.instance.json +2278 -247
- package/common/emotions.js +10 -2
- package/common/emotions.test.json +1134 -107
- package/common/errors.js +1 -1
- package/common/errors.test.json +88 -0
- package/common/evaluate.test.json +100 -1
- package/common/events.js +1 -1
- package/common/events.test.json +2197 -242
- package/common/fastfood.instance.json +82907 -10367
- package/common/fastfood.js +99 -12
- package/common/fastfood.test.json +65486 -21430
- package/common/formulas.instance.json +325 -58
- package/common/formulas.js +1 -1
- package/common/formulas.test.json +13202 -6757
- package/common/gdefaults.js +35 -17
- package/common/help.js +4 -4
- package/common/help.test.json +292 -4
- package/common/helpers/concept.js +6 -5
- package/common/helpers/conjunction.js +1 -1
- package/common/helpers/formulas.js +4 -4
- package/common/helpers/frankenhash.js +4 -4
- package/common/helpers/meta.js +4 -4
- package/common/helpers/ordering.js +2 -2
- package/common/helpers/properties.js +18 -48
- package/common/helpers.js +17 -1
- package/common/hierarchy.js +12 -3
- package/common/hierarchy.test.json +53813 -17340
- package/common/javascript.js +1 -1
- package/common/javascript.test.json +214 -11
- package/common/kirk.instance.json +322 -7
- package/common/kirk.test.json +1123 -254
- package/common/length.instance.json +9890 -797
- package/common/length.test.json +12055 -8184
- package/common/listener.test.json +39 -1
- package/common/math.instance.json +294 -57
- package/common/math.js +1 -1
- package/common/math.test.json +38557 -17754
- package/common/meta.instance.json +1 -0
- package/common/meta.js +13 -13
- package/common/meta.test.json +2770 -275
- package/common/nameable.js +1 -1
- package/common/nameable.test.json +5150 -1475
- package/common/negation.js +1 -1
- package/common/negation.test.json +146 -8
- package/common/numbers.js +1 -1
- package/common/numbers.test.json +234 -0
- package/common/ordering.instance.json +3861 -508
- package/common/ordering.test.json +2680 -1283
- package/common/ordinals.js +15 -3
- package/common/ordinals.test.json +627 -3
- package/common/people.instance.json +4041 -652
- package/common/people.js +1 -15
- package/common/people.test.json +27157 -13664
- package/common/percentages.js +1 -2
- package/common/percentages.test.json +313 -0
- package/common/pipboy.instance.json +13835 -1684
- package/common/pipboy.js +31 -49
- package/common/pipboy.test.json +19335 -6019
- package/common/pokemon.instance.json +6163 -690
- package/common/pokemon.test.json +1826 -389
- package/common/pos.js +27 -11
- package/common/pressure.instance.json +2635 -291
- package/common/pressure.test.json +2997 -1629
- package/common/properties.instance.json +907 -84
- package/common/properties.js +19 -28
- package/common/properties.test.json +46801 -14612
- package/common/punctuation.js +1 -1
- package/common/punctuation.test.json +327 -0
- package/common/reports.instance.json +997 -118
- package/common/reports.js +16 -9
- package/common/reports.test.json +16653 -2453
- package/common/scorekeeper.instance.json +1 -0
- package/common/scorekeeper.js +22 -12
- package/common/scorekeeper.test.json +42546 -15408
- package/common/sdefaults.js +2 -2
- package/common/sizeable.js +2 -2
- package/common/sizeable.test.json +1170 -215
- package/common/spock.instance.json +322 -7
- package/common/spock.test.json +1123 -254
- package/common/stgame.js +0 -1
- package/common/stgame.test.json +1371 -91
- package/common/stm.js +6 -6
- package/common/stm.test.json +842 -9
- package/common/tell.js +1 -1
- package/common/tell.test.json +224 -1
- package/common/temperature.instance.json +5980 -285
- package/common/temperature.test.json +2610 -1272
- package/common/tester.js +1 -1
- package/common/testing.test.json +84 -1
- package/common/time.test.json +5345 -272
- package/common/tokenize.js +3 -2
- package/common/tokenize.test.json +39 -0
- package/common/ui.instance.json +144 -26
- package/common/ui.js +0 -16
- package/common/ui.test.json +4620 -140
- package/common/weight.instance.json +10025 -771
- package/common/weight.js +10 -0
- package/common/weight.test.json +18658 -12176
- package/common/wp.instance.json +27555 -2630
- package/common/wp.js +240 -41
- package/common/wp.test.json +147553 -2727
- package/common/yesno.js +1 -1
- package/common/yesno.test.json +168 -4
- package/package.json +11 -6
package/common/conjunction.js
CHANGED
@@ -4,16 +4,28 @@ const conjunction_tests = require('./conjunction.test.json')
|
|
4
4
|
const { defaultContextCheck, propertyToArray } = require('./helpers')
|
5
5
|
const { isA, asList, listable } = require('./helpers/conjunction.js')
|
6
6
|
|
7
|
-
|
7
|
+
const config = {
|
8
8
|
name: 'conjunction',
|
9
9
|
operators: [
|
10
10
|
"(x [list|and] y)",
|
11
11
|
],
|
12
|
+
associations: {
|
13
|
+
positive: [
|
14
|
+
{ context: [['listable', 0], ['list', 0], ['listable', 0]], choose: 0 },
|
15
|
+
{ context: [['listable', 1], ['list', 0], ['listable', 0]], choose: 0 },
|
16
|
+
{ context: [['listable', 1], ['list', 0], ['listable', 1]], choose: 0 },
|
17
|
+
]
|
18
|
+
},
|
12
19
|
bridges: [
|
13
20
|
// context.instance == variables.instance (unification)
|
14
21
|
{
|
15
22
|
id: "list",
|
16
23
|
level: 0,
|
24
|
+
/*
|
25
|
+
localHierarchy: [
|
26
|
+
['unknown', 'listable'],
|
27
|
+
],
|
28
|
+
*/
|
17
29
|
selector: {
|
18
30
|
match: "same",
|
19
31
|
left: [ { pattern: '($type && context.instance == variables.instance)' } ],
|
@@ -50,6 +50,7 @@
|
|
50
50
|
},
|
51
51
|
"contexts": [
|
52
52
|
{
|
53
|
+
"context_index": 1,
|
53
54
|
"default": true,
|
54
55
|
"isList": true,
|
55
56
|
"level": 1,
|
@@ -118,7 +119,6 @@
|
|
118
119
|
"word": "and"
|
119
120
|
}
|
120
121
|
],
|
121
|
-
"developerTest": false,
|
122
122
|
"generatedParenthesized": [
|
123
123
|
""
|
124
124
|
],
|
@@ -232,6 +232,7 @@
|
|
232
232
|
"processed": [
|
233
233
|
{
|
234
234
|
"context": {
|
235
|
+
"context_index": 1,
|
235
236
|
"default": true,
|
236
237
|
"isList": true,
|
237
238
|
"level": 1,
|
@@ -317,6 +318,233 @@
|
|
317
318
|
"query": "1 2 and 3",
|
318
319
|
"responses": [
|
319
320
|
""
|
321
|
+
],
|
322
|
+
"summaries": [
|
323
|
+
{
|
324
|
+
"length": 1,
|
325
|
+
"summaries": [
|
326
|
+
{
|
327
|
+
"counter": 1,
|
328
|
+
"operators": [
|
329
|
+
{
|
330
|
+
"marker": [
|
331
|
+
"unknown",
|
332
|
+
0
|
333
|
+
],
|
334
|
+
"range": {
|
335
|
+
"end": 0,
|
336
|
+
"start": 0
|
337
|
+
}
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"marker": [
|
341
|
+
"unknown",
|
342
|
+
0
|
343
|
+
],
|
344
|
+
"range": {
|
345
|
+
"end": 2,
|
346
|
+
"start": 2
|
347
|
+
}
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"marker": [
|
351
|
+
"list",
|
352
|
+
0
|
353
|
+
],
|
354
|
+
"range": {
|
355
|
+
"end": 6,
|
356
|
+
"start": 4
|
357
|
+
}
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"marker": [
|
361
|
+
"unknown",
|
362
|
+
0
|
363
|
+
],
|
364
|
+
"range": {
|
365
|
+
"end": 8,
|
366
|
+
"start": 8
|
367
|
+
}
|
368
|
+
}
|
369
|
+
]
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"counter": 2,
|
373
|
+
"operators": [
|
374
|
+
{
|
375
|
+
"marker": [
|
376
|
+
"unknown",
|
377
|
+
1
|
378
|
+
],
|
379
|
+
"range": {
|
380
|
+
"end": 0,
|
381
|
+
"start": 0
|
382
|
+
}
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"marker": [
|
386
|
+
"unknown",
|
387
|
+
0
|
388
|
+
],
|
389
|
+
"range": {
|
390
|
+
"end": 2,
|
391
|
+
"start": 2
|
392
|
+
}
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"marker": [
|
396
|
+
"list",
|
397
|
+
0
|
398
|
+
],
|
399
|
+
"range": {
|
400
|
+
"end": 6,
|
401
|
+
"start": 4
|
402
|
+
}
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"marker": [
|
406
|
+
"unknown",
|
407
|
+
0
|
408
|
+
],
|
409
|
+
"range": {
|
410
|
+
"end": 8,
|
411
|
+
"start": 8
|
412
|
+
}
|
413
|
+
}
|
414
|
+
]
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"counter": 3,
|
418
|
+
"operators": [
|
419
|
+
{
|
420
|
+
"marker": [
|
421
|
+
"unknown",
|
422
|
+
1
|
423
|
+
],
|
424
|
+
"range": {
|
425
|
+
"end": 0,
|
426
|
+
"start": 0
|
427
|
+
}
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"marker": [
|
431
|
+
"unknown",
|
432
|
+
1
|
433
|
+
],
|
434
|
+
"range": {
|
435
|
+
"end": 2,
|
436
|
+
"start": 2
|
437
|
+
}
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"marker": [
|
441
|
+
"list",
|
442
|
+
0
|
443
|
+
],
|
444
|
+
"range": {
|
445
|
+
"end": 6,
|
446
|
+
"start": 4
|
447
|
+
}
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"marker": [
|
451
|
+
"unknown",
|
452
|
+
0
|
453
|
+
],
|
454
|
+
"range": {
|
455
|
+
"end": 8,
|
456
|
+
"start": 8
|
457
|
+
}
|
458
|
+
}
|
459
|
+
]
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"counter": 4,
|
463
|
+
"operators": [
|
464
|
+
{
|
465
|
+
"marker": [
|
466
|
+
"unknown",
|
467
|
+
1
|
468
|
+
],
|
469
|
+
"range": {
|
470
|
+
"end": 0,
|
471
|
+
"start": 0
|
472
|
+
}
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"marker": [
|
476
|
+
"unknown",
|
477
|
+
1
|
478
|
+
],
|
479
|
+
"range": {
|
480
|
+
"end": 2,
|
481
|
+
"start": 2
|
482
|
+
}
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"marker": [
|
486
|
+
"list",
|
487
|
+
0
|
488
|
+
],
|
489
|
+
"range": {
|
490
|
+
"end": 6,
|
491
|
+
"start": 4
|
492
|
+
}
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"marker": [
|
496
|
+
"unknown",
|
497
|
+
1
|
498
|
+
],
|
499
|
+
"range": {
|
500
|
+
"end": 8,
|
501
|
+
"start": 8
|
502
|
+
}
|
503
|
+
}
|
504
|
+
]
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"counter": 5,
|
508
|
+
"operators": [
|
509
|
+
{
|
510
|
+
"marker": [
|
511
|
+
"unknown",
|
512
|
+
1
|
513
|
+
],
|
514
|
+
"range": {
|
515
|
+
"end": 0,
|
516
|
+
"start": 0
|
517
|
+
}
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"marker": [
|
521
|
+
"list",
|
522
|
+
1
|
523
|
+
],
|
524
|
+
"range": {
|
525
|
+
"end": 8,
|
526
|
+
"start": 2
|
527
|
+
}
|
528
|
+
}
|
529
|
+
]
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"counter": 6,
|
533
|
+
"operators": [
|
534
|
+
{
|
535
|
+
"marker": [
|
536
|
+
"list",
|
537
|
+
1
|
538
|
+
],
|
539
|
+
"range": {
|
540
|
+
"end": 8,
|
541
|
+
"start": 0
|
542
|
+
}
|
543
|
+
}
|
544
|
+
]
|
545
|
+
}
|
546
|
+
]
|
547
|
+
}
|
320
548
|
]
|
321
549
|
}
|
322
550
|
]
|
package/common/countable.js
CHANGED
@@ -11,7 +11,7 @@ const countable_tests = require('./countable.test.json')
|
|
11
11
|
2 6 and 3 10 piece nuggets
|
12
12
|
*/
|
13
13
|
|
14
|
-
|
14
|
+
const config = {
|
15
15
|
name: 'countable',
|
16
16
|
operators: [
|
17
17
|
"(([quantifier|]) [counting] ([countable]))",
|
@@ -20,14 +20,13 @@ let config = {
|
|
20
20
|
"([more] (countable/*))",
|
21
21
|
"([less] (countable/*))",
|
22
22
|
"([all])",
|
23
|
-
"([every])",
|
24
23
|
// everything
|
25
24
|
],
|
26
25
|
bridges: [
|
27
26
|
{
|
28
27
|
id: "counting",
|
29
28
|
convolution: true,
|
30
|
-
before: ['verb'],
|
29
|
+
before: ['verb', 'article'],
|
31
30
|
bridge: "{ ...after, modifiers: append(['quantity'], after[0].modifiers), quantity: before[0], number: default(before[0].number, before[0].value), instance: true }"
|
32
31
|
},
|
33
32
|
{
|
@@ -57,7 +56,7 @@ let config = {
|
|
57
56
|
},
|
58
57
|
{
|
59
58
|
id: "quantifier",
|
60
|
-
children: ['number', 'all'
|
59
|
+
children: ['number', 'all'],
|
61
60
|
},
|
62
61
|
{
|
63
62
|
id: "countable",
|
@@ -68,11 +67,6 @@ let config = {
|
|
68
67
|
generatorp: ({context}) => 'all',
|
69
68
|
bridge: "{ ...next(operator), number: 'many', quantity: 'all' }"
|
70
69
|
},
|
71
|
-
{
|
72
|
-
id: "every",
|
73
|
-
generatorp: ({context}) => 'every',
|
74
|
-
bridge: "{ ...next(operator), number: 'one', quantity: 'every' }"
|
75
|
-
},
|
76
70
|
],
|
77
71
|
|
78
72
|
generators: [
|