tpmkms 8.1.0 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +65 -13
- package/common/colors.instance.json +167 -14
- package/common/comparable.instance.json +3 -3
- package/common/concept.test.json +688 -0
- package/common/crew.instance.json +27 -501
- package/common/dialogues.js +11 -4
- package/common/dimension.instance.json +10 -1
- package/common/edible.instance.json +118 -32
- package/common/emotions.instance.json +1 -61
- package/common/fastfood.instance.json +778 -370
- package/common/formulas.instance.json +1 -1
- package/common/gdefaults.js +6 -6
- package/common/helpers/concept.js +8 -4
- package/common/helpers/properties.js +20 -8
- package/common/hierarchy.js +1 -0
- package/common/kirk.instance.json +1 -6
- package/common/length.instance.json +110 -113
- package/common/math.instance.json +1 -1
- package/common/ordering.instance.json +12 -3
- package/common/ordinals.js +1 -0
- package/common/ordinals.test.json +106 -0
- package/common/people.instance.json +66 -284
- package/common/people.test.json +1815 -1073
- package/common/pipboy.instance.json +149 -27
- package/common/pokemon.instance.json +30 -13
- package/common/pressure.instance.json +118 -85
- package/common/properties.instance.json +1 -1
- package/common/properties.js +8 -0
- package/common/reports.instance.json +11 -1
- package/common/spock.instance.json +1 -6
- package/common/temperature.instance.json +127 -90
- package/common/ui.instance.json +1 -1
- package/common/ui.js +1 -0
- package/common/weight.instance.json +191 -166
- package/package.json +2 -2
package/common/gdefaults.js
CHANGED
@@ -44,6 +44,12 @@ let config = {
|
|
44
44
|
}
|
45
45
|
},
|
46
46
|
|
47
|
+
{
|
48
|
+
where: where(),
|
49
|
+
match: ({context}) => context.evalue,
|
50
|
+
apply: async ({context, g}) => await g(context.evalue)
|
51
|
+
},
|
52
|
+
|
47
53
|
{
|
48
54
|
where: where(),
|
49
55
|
//({context}) => context.paraphrase && context.modifiers,
|
@@ -152,12 +158,6 @@ let config = {
|
|
152
158
|
apply: ({context}) => context.verbatim
|
153
159
|
},
|
154
160
|
|
155
|
-
{
|
156
|
-
where: where(),
|
157
|
-
match: ({context}) => context.evalue,
|
158
|
-
apply: async ({context, g}) => await g(context.evalue)
|
159
|
-
},
|
160
|
-
|
161
161
|
{
|
162
162
|
where: where(),
|
163
163
|
match: ({context}) => context.value && Array.isArray(context.value),
|
@@ -70,7 +70,7 @@ class API {
|
|
70
70
|
config.addOperator({ pattern: `([${objectId}|])`, allowDups: true })
|
71
71
|
}
|
72
72
|
|
73
|
-
if (object.unknown) {
|
73
|
+
if (object.unknown || object.marker !== objectId) {
|
74
74
|
config.addWord(objectSingular, { id: objectId, initial: `{ value: '${objectId}', number: 'one' }`})
|
75
75
|
config.addWord(objectPlural, { id: objectId, initial: `{ value: '${objectId}', number: 'many' }`})
|
76
76
|
}
|
@@ -79,9 +79,13 @@ class API {
|
|
79
79
|
// config.addWord(modifier, { id: modifierId, initial: `{ value: '${modifierId}' }`})
|
80
80
|
// TODO call evaluator to pick up overrides
|
81
81
|
if (modifier.unknown) {
|
82
|
-
const modifierWord = modifier.
|
83
|
-
|
84
|
-
|
82
|
+
const modifierWord = modifier.word
|
83
|
+
if (pluralize.isSingular(modifierWord)) {
|
84
|
+
config.addWord(pluralize.singular(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'one' }`})
|
85
|
+
}
|
86
|
+
if (pluralize.isPlural(modifierWord)) {
|
87
|
+
config.addWord(pluralize.plural(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'many' }`})
|
88
|
+
}
|
85
89
|
}
|
86
90
|
})
|
87
91
|
// modifierds.forEach((modifierId) => config.addWord(modifierId, { id: modifierId, initial: `{ value: '${modifierId}' }`}))
|
@@ -104,6 +104,7 @@ class API {
|
|
104
104
|
localHierarchy,
|
105
105
|
bridge: `{
|
106
106
|
...before,
|
107
|
+
marker: '${after[0].tag}',
|
107
108
|
constraints: [
|
108
109
|
{
|
109
110
|
property: '${after[0].tag}',
|
@@ -329,14 +330,25 @@ class API {
|
|
329
330
|
} else {
|
330
331
|
config.addOperator({ pattern: `(${beforeOperators} [${operator}|] ${afterOperators})`, allowDups: true })
|
331
332
|
}
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
333
|
+
|
334
|
+
if (false) {
|
335
|
+
for (let argument of before.concat(after)) {
|
336
|
+
if (create.includes(argument.id)) {
|
337
|
+
// config.addHierarchy('unknown', argument.id)
|
338
|
+
// config.addHierarchy('what', argument.id)
|
339
|
+
// greg23 <<<<<<<<<<<< doing this
|
340
|
+
config.addHierarchy(argument.id, 'unknown')
|
341
|
+
config.addHierarchy(argument.id, 'what')
|
342
|
+
}
|
343
|
+
}
|
344
|
+
} else {
|
345
|
+
for (let argument of before.concat(after)) {
|
346
|
+
if (create.includes(argument.id)) {
|
347
|
+
// config.addHierarchy(argument.id, 'unknown')
|
348
|
+
// config.addHierarchy(argument.id, 'what')
|
349
|
+
localHierarchy.push([argument.id, 'unknown'])
|
350
|
+
localHierarchy.push([argument.id, 'what'])
|
351
|
+
}
|
340
352
|
}
|
341
353
|
}
|
342
354
|
|
package/common/hierarchy.js
CHANGED
@@ -52,6 +52,7 @@ let config = {
|
|
52
52
|
['have', 'canBeDoQuestion'],
|
53
53
|
],
|
54
54
|
priorities: [
|
55
|
+
{ "context": [['isEd', 0], ['is', 0], ], "choose": [1] },
|
55
56
|
{ "context": [['a', 0], ['questionMark', 0], ['is', 0], ], "choose": [0] },
|
56
57
|
// [['is', 0], ['hierarchyAble', 0]],
|
57
58
|
// [['a', 0], ['is', 0], ['hierarchyAble', 0]],
|
@@ -1237,7 +1237,7 @@
|
|
1237
1237
|
],
|
1238
1238
|
[
|
1239
1239
|
"theAble",
|
1240
|
-
"
|
1240
|
+
"queryable",
|
1241
1241
|
false
|
1242
1242
|
],
|
1243
1243
|
[
|
@@ -1352,12 +1352,7 @@
|
|
1352
1352
|
],
|
1353
1353
|
[
|
1354
1354
|
"weapon",
|
1355
|
-
"unknown",
|
1356
|
-
false
|
1357
|
-
],
|
1358
|
-
[
|
1359
1355
|
"weapon",
|
1360
|
-
"what",
|
1361
1356
|
false
|
1362
1357
|
],
|
1363
1358
|
[
|