tpmkms_4wp 8.9.1-beta.2 → 8.9.1-beta.21
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 +348 -68
- package/common/articles.js +20 -4
- package/common/articles.test.json +338 -0
- package/common/asking.js +3 -3
- package/common/asking.test.json +41 -0
- package/common/avatar.js +1 -1
- package/common/characters.js +1 -1
- package/common/colors.instance.json +608 -113
- package/common/comparable.instance.json +60 -12
- package/common/comparable.js +2 -2
- package/common/concept.js +2 -2
- package/common/conjunction.js +1 -1
- package/common/countable.js +3 -9
- package/common/countable.test.json +0 -586
- package/common/crew.instance.json +520 -392
- package/common/currency.js +2 -2
- package/common/dialogues.js +28 -11
- package/common/dimension.instance.json +16 -8
- package/common/dimension.js +2 -2
- package/common/edible.instance.json +595 -229
- package/common/emotions.instance.json +20 -4
- package/common/errors.js +3 -1
- package/common/events.js +1 -1
- package/common/fastfood.instance.json +2095 -1498
- package/common/fastfood.js +16 -10
- package/common/formulas.instance.json +16 -5
- package/common/formulas.js +1 -1
- package/common/formulas.test.json +461 -10
- package/common/gdefaults.js +27 -14
- package/common/help.js +4 -4
- package/common/help.test.json +4 -4
- package/common/helpers/concept.js +5 -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 +17 -17
- package/common/helpers.js +17 -1
- package/common/hierarchy.js +3 -3
- package/common/javascript.js +1 -1
- package/common/kirk.instance.json +20 -4
- package/common/length.instance.json +300 -80
- package/common/math.instance.json +16 -5
- package/common/math.js +1 -1
- package/common/meta.js +5 -5
- package/common/nameable.js +1 -1
- package/common/negation.js +1 -1
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +41 -11
- package/common/ordinals.js +9 -3
- package/common/ordinals.test.json +327 -0
- package/common/people.instance.json +228 -80
- package/common/people.js +1 -1
- package/common/percentages.js +1 -1
- package/common/pipboy.instance.json +334 -180
- package/common/pipboy.js +6 -6
- package/common/pokemon.instance.json +304 -57
- package/common/pos.js +16 -6
- package/common/pressure.instance.json +64 -23
- package/common/properties.instance.json +20 -4
- package/common/properties.js +6 -6
- package/common/punctuation.js +1 -1
- package/common/reports.instance.json +34 -12
- package/common/reports.js +9 -9
- package/common/scorekeeper.js +5 -5
- package/common/sdefaults.js +2 -2
- package/common/sizeable.js +2 -2
- package/common/spock.instance.json +20 -4
- package/common/stm.js +6 -6
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +64 -24
- package/common/tester.js +1 -1
- package/common/ui.instance.json +21 -5
- package/common/weight.instance.json +261 -109
- package/common/wp.instance.json +6621 -404
- package/common/wp.js +199 -41
- package/common/wp.test.json +109575 -3828
- package/common/yesno.js +1 -1
- package/package.json +11 -6
@@ -30,7 +30,7 @@
|
|
30
30
|
"hierarchy": [
|
31
31
|
[
|
32
32
|
"a",
|
33
|
-
"
|
33
|
+
"article",
|
34
34
|
false
|
35
35
|
],
|
36
36
|
[
|
@@ -39,8 +39,8 @@
|
|
39
39
|
false
|
40
40
|
],
|
41
41
|
[
|
42
|
-
"
|
43
|
-
"
|
42
|
+
"article",
|
43
|
+
"article",
|
44
44
|
false
|
45
45
|
],
|
46
46
|
[
|
@@ -63,16 +63,31 @@
|
|
63
63
|
"condition",
|
64
64
|
false
|
65
65
|
],
|
66
|
+
[
|
67
|
+
"distributable",
|
68
|
+
"queryable",
|
69
|
+
false
|
70
|
+
],
|
66
71
|
[
|
67
72
|
"doubleQuote",
|
68
73
|
"queryable",
|
69
74
|
false
|
70
75
|
],
|
76
|
+
[
|
77
|
+
"each",
|
78
|
+
"article",
|
79
|
+
false
|
80
|
+
],
|
71
81
|
[
|
72
82
|
"evaluate",
|
73
83
|
"verb",
|
74
84
|
false
|
75
85
|
],
|
86
|
+
[
|
87
|
+
"every",
|
88
|
+
"article",
|
89
|
+
false
|
90
|
+
],
|
76
91
|
[
|
77
92
|
"highest",
|
78
93
|
"condition",
|
@@ -205,7 +220,7 @@
|
|
205
220
|
],
|
206
221
|
[
|
207
222
|
"the",
|
208
|
-
"
|
223
|
+
"article",
|
209
224
|
false
|
210
225
|
],
|
211
226
|
[
|
@@ -366,6 +381,7 @@
|
|
366
381
|
"level": 1
|
367
382
|
},
|
368
383
|
"level": 1,
|
384
|
+
"context_index": 1,
|
369
385
|
"topLevel": true,
|
370
386
|
"touchedBy": [
|
371
387
|
"comparable#call2"
|
@@ -429,7 +445,7 @@
|
|
429
445
|
"hierarchy": [
|
430
446
|
[
|
431
447
|
"a",
|
432
|
-
"
|
448
|
+
"article",
|
433
449
|
false
|
434
450
|
],
|
435
451
|
[
|
@@ -438,8 +454,8 @@
|
|
438
454
|
false
|
439
455
|
],
|
440
456
|
[
|
441
|
-
"
|
442
|
-
"
|
457
|
+
"article",
|
458
|
+
"article",
|
443
459
|
false
|
444
460
|
],
|
445
461
|
[
|
@@ -462,16 +478,31 @@
|
|
462
478
|
"condition",
|
463
479
|
false
|
464
480
|
],
|
481
|
+
[
|
482
|
+
"distributable",
|
483
|
+
"queryable",
|
484
|
+
false
|
485
|
+
],
|
465
486
|
[
|
466
487
|
"doubleQuote",
|
467
488
|
"queryable",
|
468
489
|
false
|
469
490
|
],
|
491
|
+
[
|
492
|
+
"each",
|
493
|
+
"article",
|
494
|
+
false
|
495
|
+
],
|
470
496
|
[
|
471
497
|
"evaluate",
|
472
498
|
"verb",
|
473
499
|
false
|
474
500
|
],
|
501
|
+
[
|
502
|
+
"every",
|
503
|
+
"article",
|
504
|
+
false
|
505
|
+
],
|
475
506
|
[
|
476
507
|
"highest",
|
477
508
|
"condition",
|
@@ -634,7 +665,7 @@
|
|
634
665
|
],
|
635
666
|
[
|
636
667
|
"the",
|
637
|
-
"
|
668
|
+
"article",
|
638
669
|
false
|
639
670
|
],
|
640
671
|
[
|
@@ -889,6 +920,7 @@
|
|
889
920
|
},
|
890
921
|
"dead": true,
|
891
922
|
"level": 2,
|
923
|
+
"context_index": 1,
|
892
924
|
"topLevel": true,
|
893
925
|
"touchedBy": [
|
894
926
|
"comparable#call2"
|
@@ -986,7 +1018,7 @@
|
|
986
1018
|
"hierarchy": [
|
987
1019
|
[
|
988
1020
|
"a",
|
989
|
-
"
|
1021
|
+
"article",
|
990
1022
|
false
|
991
1023
|
],
|
992
1024
|
[
|
@@ -995,8 +1027,8 @@
|
|
995
1027
|
false
|
996
1028
|
],
|
997
1029
|
[
|
998
|
-
"
|
999
|
-
"
|
1030
|
+
"article",
|
1031
|
+
"article",
|
1000
1032
|
false
|
1001
1033
|
],
|
1002
1034
|
[
|
@@ -1049,16 +1081,31 @@
|
|
1049
1081
|
"condition",
|
1050
1082
|
false
|
1051
1083
|
],
|
1084
|
+
[
|
1085
|
+
"distributable",
|
1086
|
+
"queryable",
|
1087
|
+
false
|
1088
|
+
],
|
1052
1089
|
[
|
1053
1090
|
"doubleQuote",
|
1054
1091
|
"queryable",
|
1055
1092
|
false
|
1056
1093
|
],
|
1094
|
+
[
|
1095
|
+
"each",
|
1096
|
+
"article",
|
1097
|
+
false
|
1098
|
+
],
|
1057
1099
|
[
|
1058
1100
|
"evaluate",
|
1059
1101
|
"verb",
|
1060
1102
|
false
|
1061
1103
|
],
|
1104
|
+
[
|
1105
|
+
"every",
|
1106
|
+
"article",
|
1107
|
+
false
|
1108
|
+
],
|
1062
1109
|
[
|
1063
1110
|
"highest",
|
1064
1111
|
"condition",
|
@@ -1231,7 +1278,7 @@
|
|
1231
1278
|
],
|
1232
1279
|
[
|
1233
1280
|
"the",
|
1234
|
-
"
|
1281
|
+
"article",
|
1235
1282
|
false
|
1236
1283
|
],
|
1237
1284
|
[
|
@@ -1486,6 +1533,7 @@
|
|
1486
1533
|
},
|
1487
1534
|
"dead": true,
|
1488
1535
|
"level": 2,
|
1536
|
+
"context_index": 1,
|
1489
1537
|
"topLevel": true,
|
1490
1538
|
"touchedBy": [
|
1491
1539
|
"comparable#call2"
|
package/common/comparable.js
CHANGED
@@ -7,7 +7,7 @@ const comparable_tests = require('./comparable.test.json')
|
|
7
7
|
const comparable_instance = require('./comparable.instance.json')
|
8
8
|
|
9
9
|
|
10
|
-
|
10
|
+
const config = {
|
11
11
|
name: 'comparable',
|
12
12
|
operators: [
|
13
13
|
"([condition|])",
|
@@ -20,7 +20,7 @@ let config = {
|
|
20
20
|
{
|
21
21
|
id: "compare",
|
22
22
|
convolution: true,
|
23
|
-
before: ['verb', '
|
23
|
+
before: ['verb', 'article'],
|
24
24
|
// bridge: "{ ...after, comparison: append(before[0], after[0].comparison), modifiers: append([before[0].marker], after[0].modifiers), [before[0].marker]: before[0] }"
|
25
25
|
// bridge: "{ ...after, comparison: append([], before[0].marker, after[0].comparison) }"
|
26
26
|
bridge: "{ ...next(before[0]), property: after, postModifiers: append([after[0].marker], before[0].modifiers), [after[0].marker.id]: after[0] }"
|
package/common/concept.js
CHANGED
@@ -27,7 +27,7 @@ config = {
|
|
27
27
|
isA: ['verb'],
|
28
28
|
words: [{ word: 'modifies', number: 'one', flatten: false }, { word: 'modify', number: 'many', flatten: true }],
|
29
29
|
// bridge: "{ ...next(operator), modifiers: before, concept: after[0], flatten: true }"
|
30
|
-
bridge: "{ ...next(operator), modifiers: before, concept: after[0] }"
|
30
|
+
bridge: "{ ...next(operator), modifiers: before[0], concept: after[0] }"
|
31
31
|
},
|
32
32
|
{ id: "literally", bridge: "{ ...after[0], flatten: false, literally: true }" },
|
33
33
|
{ id: "concept", bridge: "{ ...next(operator) }" },
|
@@ -77,7 +77,7 @@ config = {
|
|
77
77
|
}
|
78
78
|
const word = context.value[0].word
|
79
79
|
|
80
|
-
for (
|
80
|
+
for (const value of context.value) {
|
81
81
|
if (!(value.modifiers && value.modifiers.length == 1 && value.word == word)) {
|
82
82
|
return
|
83
83
|
}
|
package/common/conjunction.js
CHANGED
@@ -4,7 +4,7 @@ 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)",
|
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: [
|