tpmkms_4wp 9.5.1-beta.30 → 9.5.1-beta.32
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/avatar.test.json +1001 -860
- package/common/concept.js +19 -22
- package/common/dateTimeSelectors.test.json +95954 -55427
- package/common/dimension.instance.json +21348 -552
- package/common/dimension.js +52 -27
- package/common/dimension.test.json +6699 -222
- package/common/{tank.instance.json → drone.instance.json} +13078 -4251
- package/common/{tank.js → drone.js} +47 -26
- package/common/{tank.test.json → drone.test.json} +3467 -2778
- package/common/fastfood.instance.json +681 -201
- package/common/helpers.js +2 -1
- package/common/hierarchy.js +2 -1
- package/common/kirk.test.json +600 -424
- package/common/length.instance.json +19329 -2521
- package/common/length.js +3 -1
- package/common/length.test.json +13943 -339
- package/common/meta.js +1 -0
- package/common/nameable.js +13 -6
- package/common/nameable.test.json +436 -0
- package/common/pressure.instance.json +2745 -745
- package/common/reminders.test.json +57841 -19033
- package/common/reports.instance.json +2 -2
- package/common/spock.test.json +606 -430
- package/common/stm.js +13 -2
- package/common/temperature.instance.json +3377 -1377
- package/common/time.instance.json +6248 -1748
- package/common/weight.instance.json +9577 -3577
- package/main.js +2 -2
- package/package.json +6 -6
package/common/concept.js
CHANGED
|
@@ -27,7 +27,25 @@ 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[0], concept: after[0] }"
|
|
30
|
+
bridge: "{ ...next(operator), modifiers: before[0], concept: after[0] }",
|
|
31
|
+
semantic: {
|
|
32
|
+
notes: 'define a modifier',
|
|
33
|
+
where: where(),
|
|
34
|
+
apply: ({config, query, km, context}) => {
|
|
35
|
+
let modifiers
|
|
36
|
+
if (context.literally) {
|
|
37
|
+
literalModifiers = context.modifiers[0]
|
|
38
|
+
// modifiers = literalModifiers.value.map(modifier => modifier.value)
|
|
39
|
+
modifiers = literalModifiers.value
|
|
40
|
+
modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
|
|
41
|
+
} else {
|
|
42
|
+
modifiers = context.modifiers
|
|
43
|
+
// modifiers = context.modifiers.map(modifier => modifier.value)
|
|
44
|
+
}
|
|
45
|
+
// km('concept').api.kindOfConcept({ config, modifiers, object: context.concept.value || context.concept.marker })
|
|
46
|
+
km('concept').api.kindOfConcept({ config, modifiers, object: context.concept })
|
|
47
|
+
}
|
|
48
|
+
},
|
|
31
49
|
},
|
|
32
50
|
{ id: "literally", bridge: "{ ...after[0], flatten: false, literally: true }" },
|
|
33
51
|
{ id: "concept" },
|
|
@@ -115,27 +133,6 @@ config = {
|
|
|
115
133
|
// const chosen = chooseNumber(context, word.singular, word.plural)
|
|
116
134
|
},
|
|
117
135
|
],
|
|
118
|
-
semantics: [
|
|
119
|
-
{
|
|
120
|
-
notes: 'define a modifier',
|
|
121
|
-
where: where(),
|
|
122
|
-
match: ({context}) => context.marker == 'modifies',
|
|
123
|
-
apply: ({config, query, km, context}) => {
|
|
124
|
-
let modifiers
|
|
125
|
-
if (context.literally) {
|
|
126
|
-
literalModifiers = context.modifiers[0]
|
|
127
|
-
// modifiers = literalModifiers.value.map(modifier => modifier.value)
|
|
128
|
-
modifiers = literalModifiers.value
|
|
129
|
-
modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
|
|
130
|
-
} else {
|
|
131
|
-
modifiers = context.modifiers
|
|
132
|
-
// modifiers = context.modifiers.map(modifier => modifier.value)
|
|
133
|
-
}
|
|
134
|
-
// km('concept').api.kindOfConcept({ config, modifiers, object: context.concept.value || context.concept.marker })
|
|
135
|
-
km('concept').api.kindOfConcept({ config, modifiers, object: context.concept })
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
136
|
}
|
|
140
137
|
|
|
141
138
|
knowledgeModule({
|