tpmkms_4wp 9.5.1 → 9.6.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 +151 -61
- package/common/animals.js +3 -5
- package/common/asking.js +116 -106
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2194 -0
- package/common/can.js +251 -0
- package/common/can.test.json +51307 -0
- package/common/characters.js +5 -5
- package/common/colors.instance.json +152 -12
- package/common/colors.js +3 -6
- package/common/comparable.instance.json +33 -3
- package/common/comparable.js +3 -6
- package/common/concept.js +25 -27
- package/common/concept.test.json +180 -144
- package/common/conjunction.js +13 -5
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +433 -173
- package/common/crew.js +4 -7
- package/common/crew.test.json +4148 -3324
- package/common/currency.js +1 -1
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +6 -9
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +53 -3
- package/common/dates.js +3 -6
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +43 -122
- package/common/dialogues.test.json +1248 -1152
- package/common/dimension.instance.json +21493 -561
- package/common/dimension.js +150 -55
- package/common/dimension.test.json +10979 -4625
- package/common/drone.instance.json +24709 -0
- package/common/drone.js +662 -0
- package/common/drone.test.json +30522 -0
- package/common/drone_v1.instance.json +24703 -0
- package/common/drone_v1.js +596 -0
- package/common/drone_v1.test.json +115538 -0
- package/common/edible.instance.json +388 -32
- package/common/edible.js +3 -5
- package/common/emotions.instance.json +85 -76
- package/common/emotions.js +4 -7
- package/common/emotions.test.json +242 -174
- package/common/english_helpers.js +336 -0
- package/common/errors.js +6 -6
- package/common/evaluate.js +2 -2
- package/common/events.js +8 -8
- package/common/fastfood.instance.json +1071 -393
- package/common/fastfood.js +14 -16
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +11 -1
- package/common/formulas.js +3 -2
- package/common/gdefaults.js +111 -17
- package/common/help.js +12 -12
- package/common/help.test.json +65 -11
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +10 -2
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +9 -9
- package/common/helpers/properties.js +186 -64
- package/common/helpers.js +167 -48
- package/common/hierarchy.js +12 -10
- package/common/kirk.instance.json +11 -1
- package/common/kirk.js +4 -6
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +12 -12
- package/common/latin.js +12 -14
- package/common/length.instance.json +34660 -3158
- package/common/length.js +11 -6
- package/common/length.test.json +54357 -2557
- package/common/math.instance.json +39 -29
- package/common/math.js +49 -47
- package/common/menus.instance.json +77 -10
- package/common/menus.js +4 -13
- package/common/meta.js +80 -65
- package/common/nameable.js +36 -22
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +107 -19
- package/common/ordering.js +4 -6
- package/common/ordering.test.json +835 -417
- package/common/people.instance.json +176 -348
- package/common/people.js +9 -9
- package/common/people.test.json +4135 -3606
- package/common/pipboy.instance.json +187 -17
- package/common/pipboy.js +4 -4
- package/common/pokemon.instance.json +143 -13
- package/common/pokemon.js +4 -6
- package/common/pressure.instance.json +3610 -1601
- package/common/pressure.js +3 -5
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +16 -17
- package/common/properties.js +32 -13
- package/common/properties.test.json +9565 -6951
- package/common/rates.instance.json +59 -0
- package/common/rates.js +95 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.instance.json +4 -4
- package/common/reminders.js +8 -11
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +23 -3
- package/common/reports.js +21 -21
- package/common/scorekeeper.js +9 -12
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +11 -1
- package/common/spock.js +4 -7
- package/common/spock.test.json +606 -430
- package/common/stgame.js +1 -1
- package/common/stm.js +41 -24
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +3163 -1154
- package/common/temperature.js +3 -5
- package/common/temperature.test.json +433 -477
- package/common/tester.js +3 -3
- package/common/time.instance.json +24852 -0
- package/common/time.js +138 -141
- package/common/time.test.json +31876 -3757
- package/common/tokenize.js +5 -2
- package/common/ui.instance.json +12 -5
- package/common/ui.js +4 -13
- package/common/weight.instance.json +10501 -4099
- package/common/weight.js +3 -5
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +50 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +548 -8
- package/common/wp.js +10 -8
- package/common/wp.test.json +7385 -6906
- package/main.js +6 -2
- package/package.json +25 -6
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"apply": "({config}) => {\n config.addArgs(({config, api, isA}) => ({\n addLatinNoun: ({ id, nominative, genetive, development }) => {\n config.addOperator({ pattern: `([${id}|])`, development: development })\n config.addBridge({ id, isA: ['hierarchiable'] })\n const declensions = getDeclensions(nominative, genetive)\n for (const declension of declensions) {\n config.addWord(declension.word, { id, initial: { ...declension, development } })\n }\n }\n }))\n }"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
|
-
"apply": "({addLatinNoun}) => {\n addLatinNoun({ id: 'davus_person', nominative: 'davus',
|
|
7
|
+
"apply": "({addLatinNoun}) => {\n addLatinNoun({ id: 'davus_person', nominative: 'davus', scope: \"testing\" })\n addLatinNoun({ id: 'titus_person', nominative: 'titus', scope: \"testing\" })\n addLatinNoun({ id: 'pear_food', nominative: 'pirum', scope: \"testing\" })\n addLatinNoun({ id: 'table_latin', nominative: 'mensa', scope: \"testing\" })\n }"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"operators": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"person": "third"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
|
-
"bridge": "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, operator] }",
|
|
73
|
+
"bridge": "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, { context: operator }] }",
|
|
74
74
|
"selector": {
|
|
75
75
|
"arguments": {
|
|
76
76
|
"nominative": "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
{
|
|
84
84
|
"id": "dare",
|
|
85
85
|
"level": 0,
|
|
86
|
-
"bridge": "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, operator] }",
|
|
86
|
+
"bridge": "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, { context: operator }] }",
|
|
87
87
|
"selector": {
|
|
88
88
|
"arguments": {
|
|
89
89
|
"nominative": "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"id": "queryMarker",
|
|
162
|
-
"bridge": "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], question: true }",
|
|
162
|
+
"bridge": "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], question: true }",
|
|
163
163
|
"separators": "|",
|
|
164
164
|
"before": [
|
|
165
165
|
"hierarchy"
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"listable"
|
|
174
174
|
]
|
|
175
175
|
],
|
|
176
|
-
"bridge": "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], isList: true }",
|
|
176
|
+
"bridge": "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], isList: true }",
|
|
177
177
|
"separators": "|"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"hierarchiable"
|
|
188
188
|
]
|
|
189
189
|
],
|
|
190
|
-
"bridge": "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: all }",
|
|
190
|
+
"bridge": "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: map(all, { context: element }) }",
|
|
191
191
|
"words": [
|
|
192
192
|
{
|
|
193
193
|
"word": "sum",
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"apply": "({config}) => {\n config.addArgs(({config, api, isA}) => ({\n addLatinNoun: ({ id, nominative, genetive, development }) => {\n config.addOperator({ pattern: `([${id}|])`, development: development })\n config.addBridge({ id, isA: ['hierarchiable'] })\n const declensions = getDeclensions(nominative, genetive)\n for (const declension of declensions) {\n config.addWord(declension.word, { id, initial: { ...declension, development } })\n }\n }\n }))\n }"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
|
-
"apply": "({addLatinNoun}) => {\n addLatinNoun({ id: 'davus_person', nominative: 'davus',
|
|
241
|
+
"apply": "({addLatinNoun}) => {\n addLatinNoun({ id: 'davus_person', nominative: 'davus', scope: \"testing\" })\n addLatinNoun({ id: 'titus_person', nominative: 'titus', scope: \"testing\" })\n addLatinNoun({ id: 'pear_food', nominative: 'pirum', scope: \"testing\" })\n addLatinNoun({ id: 'table_latin', nominative: 'mensa', scope: \"testing\" })\n }"
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"extraConfig": true,
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
"person": "third"
|
|
306
306
|
}
|
|
307
307
|
],
|
|
308
|
-
"bridge": "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, operator] }",
|
|
308
|
+
"bridge": "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, { context: operator }] }",
|
|
309
309
|
"selector": {
|
|
310
310
|
"arguments": {
|
|
311
311
|
"nominative": "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
{
|
|
319
319
|
"id": "dare",
|
|
320
320
|
"level": 0,
|
|
321
|
-
"bridge": "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, operator] }",
|
|
321
|
+
"bridge": "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, { context: operator }] }",
|
|
322
322
|
"selector": {
|
|
323
323
|
"arguments": {
|
|
324
324
|
"nominative": "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
"id": "queryMarker",
|
|
397
|
-
"bridge": "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], question: true }",
|
|
397
|
+
"bridge": "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], question: true }",
|
|
398
398
|
"separators": "|",
|
|
399
399
|
"before": [
|
|
400
400
|
"hierarchy"
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
"listable"
|
|
409
409
|
]
|
|
410
410
|
],
|
|
411
|
-
"bridge": "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], isList: true }",
|
|
411
|
+
"bridge": "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], isList: true }",
|
|
412
412
|
"separators": "|"
|
|
413
413
|
},
|
|
414
414
|
{
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"hierarchiable"
|
|
423
423
|
]
|
|
424
424
|
],
|
|
425
|
-
"bridge": "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: all }",
|
|
425
|
+
"bridge": "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: map(all, { context: element }) }",
|
|
426
426
|
"words": [
|
|
427
427
|
{
|
|
428
428
|
"word": "sum",
|
package/common/latin.js
CHANGED
|
@@ -3,7 +3,7 @@ const { defaultContextCheck } = require('./helpers')
|
|
|
3
3
|
const gdefaults = require("./gdefaults")
|
|
4
4
|
const { conjugateVerb, getDeclensions } = require("./latin_helpers")
|
|
5
5
|
const latin_tests = require('./latin.test.json')
|
|
6
|
-
const
|
|
6
|
+
const instance = require('./latin.instance.json')
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
marcus est vir
|
|
@@ -56,7 +56,7 @@ const config = {
|
|
|
56
56
|
words: [
|
|
57
57
|
...conjugateVerb('iacere'),
|
|
58
58
|
],
|
|
59
|
-
bridge: "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, operator] }",
|
|
59
|
+
bridge: "{ ...next(operator), thrower: nominative?, receiver: dative?, object: object?, location: location?, interpolate: [{ property: 'thrower' }, { property: 'receiver' }, { property: 'location' }, { property: 'object' }, { context: operator }] }",
|
|
60
60
|
selector: {
|
|
61
61
|
arguments: {
|
|
62
62
|
nominative: "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -69,7 +69,7 @@ const config = {
|
|
|
69
69
|
{
|
|
70
70
|
id: "dare",
|
|
71
71
|
level: 0,
|
|
72
|
-
bridge: "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, operator] }",
|
|
72
|
+
bridge: "{ ...next(operator), giver: nominative?, receiver: dative?, object: accusative?, interpolate: [{ property: 'giver' }, { property: 'receiver' }, { property: 'object' }, { context: operator }] }",
|
|
73
73
|
selector: {
|
|
74
74
|
arguments: {
|
|
75
75
|
nominative: "(context.declension == 'nominative' && context.number == operator.number)",
|
|
@@ -105,21 +105,21 @@ const config = {
|
|
|
105
105
|
|
|
106
106
|
{
|
|
107
107
|
id: "queryMarker",
|
|
108
|
-
bridge: "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], question: true }",
|
|
108
|
+
bridge: "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], question: true }",
|
|
109
109
|
separators: '|',
|
|
110
110
|
before: ['hierarchy'],
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
id: "listMarker",
|
|
114
114
|
localHierarchy: [['unknown', 'listable']],
|
|
115
|
-
bridge: "{ ...before[0], verb: before[0], interpolate: [before[0], '', operator], isList: true }",
|
|
115
|
+
bridge: "{ ...before[0], verb: before[0], interpolate: [{ context: before[0] }, '', { context: operator }], isList: true }",
|
|
116
116
|
separators: '|',
|
|
117
117
|
},
|
|
118
118
|
{ id: "hierarchiable" },
|
|
119
119
|
{
|
|
120
120
|
id: "hierarchy",
|
|
121
121
|
localHierarchy: [['unknown', 'hierarchiable']],
|
|
122
|
-
bridge: "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: all }",
|
|
122
|
+
bridge: "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: map(all, { context: element }) }",
|
|
123
123
|
words: [
|
|
124
124
|
{ word: 'sum', number: 'singular', person: 'first' },
|
|
125
125
|
{ word: 'es', number: 'singular', person: 'second' },
|
|
@@ -159,10 +159,10 @@ const template = {
|
|
|
159
159
|
}))
|
|
160
160
|
},
|
|
161
161
|
({addLatinNoun}) => {
|
|
162
|
-
addLatinNoun({ id: 'davus_person', nominative: 'davus',
|
|
163
|
-
addLatinNoun({ id: 'titus_person', nominative: 'titus',
|
|
164
|
-
addLatinNoun({ id: 'pear_food', nominative: 'pirum',
|
|
165
|
-
addLatinNoun({ id: 'table_latin', nominative: 'mensa',
|
|
162
|
+
addLatinNoun({ id: 'davus_person', nominative: 'davus', scope: "testing" })
|
|
163
|
+
addLatinNoun({ id: 'titus_person', nominative: 'titus', scope: "testing" })
|
|
164
|
+
addLatinNoun({ id: 'pear_food', nominative: 'pirum', scope: "testing" })
|
|
165
|
+
addLatinNoun({ id: 'table_latin', nominative: 'mensa', scope: "testing" })
|
|
166
166
|
},
|
|
167
167
|
config,
|
|
168
168
|
({addSuffix}) => addSuffix('que'),
|
|
@@ -191,8 +191,6 @@ knowledgeModule( {
|
|
|
191
191
|
},
|
|
192
192
|
},
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
instance: latin_instance,
|
|
197
|
-
},
|
|
194
|
+
instance,
|
|
195
|
+
template,
|
|
198
196
|
})
|