ekms 8.9.1-beta.0 → 8.9.1-beta.10
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 +195 -16
- package/common/articles.js +18 -2
- package/common/articles.test.json +338 -0
- package/common/asking.js +2 -2
- package/common/avatar.js +1 -1
- package/common/characters.js +1 -1
- package/common/colors.instance.json +210 -45
- package/common/comparable.instance.json +45 -0
- package/common/comparable.js +1 -1
- package/common/concept.js +1 -1
- package/common/conjunction.js +1 -1
- package/common/countable.js +2 -8
- package/common/countable.test.json +0 -586
- package/common/crew.instance.json +390 -0
- package/common/currency.js +2 -2
- package/common/dialogues.js +9 -5
- package/common/dimension.instance.json +11 -4
- package/common/dimension.js +2 -2
- package/common/edible.instance.json +352 -58
- package/common/emotions.instance.json +15 -0
- package/common/errors.js +3 -1
- package/common/events.js +1 -1
- package/common/fastfood.instance.json +2017 -402
- package/common/fastfood.js +3 -3
- package/common/formulas.instance.json +11 -1
- package/common/formulas.js +1 -1
- package/common/gdefaults.js +28 -17
- package/common/help.js +4 -4
- package/common/help.test.json +4 -4
- package/common/helpers/concept.js +3 -3
- 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 +16 -16
- package/common/helpers.js +17 -1
- package/common/hierarchy.js +3 -3
- package/common/javascript.js +1 -1
- package/common/kirk.instance.json +15 -0
- package/common/length.instance.json +165 -20
- package/common/math.instance.json +11 -1
- package/common/math.js +1 -1
- package/common/meta.js +5 -5
- package/common/negation.js +1 -1
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +31 -71
- package/common/ordinals.js +5 -3
- package/common/people.instance.json +120 -0
- package/common/people.js +1 -1
- package/common/percentages.js +1 -1
- package/common/pipboy.instance.json +187 -46
- package/common/pipboy.js +1 -1
- package/common/pokemon.instance.json +195 -5
- package/common/pos.js +14 -1
- package/common/pressure.instance.json +44 -7
- package/common/properties.instance.json +15 -0
- package/common/properties.js +2 -2
- package/common/punctuation.js +1 -1
- package/common/reports.instance.json +32 -4
- package/common/reports.js +7 -7
- package/common/scorekeeper.js +5 -5
- package/common/sdefaults.js +2 -2
- package/common/sizeable.js +1 -1
- package/common/spock.instance.json +15 -0
- package/common/stm.js +6 -6
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +44 -8
- package/common/tester.js +1 -1
- package/common/ui.instance.json +16 -1
- package/common/weight.instance.json +132 -16
- package/common/wp.instance.json +13996 -1532
- package/common/wp.js +165 -24
- package/common/wp.test.json +82935 -4146
- package/common/yesno.js +1 -1
- package/package.json +11 -6
package/common/currency.js
CHANGED
@@ -40,7 +40,7 @@ class API {
|
|
40
40
|
|
41
41
|
const api = new API()
|
42
42
|
|
43
|
-
|
43
|
+
const config = {
|
44
44
|
name: 'currency',
|
45
45
|
operators: [
|
46
46
|
"(([number]) [currency])",
|
@@ -98,7 +98,7 @@ const initializer = ({config, objects, apis, addWord, addGenerator, baseConfig,
|
|
98
98
|
addWord(word, def)
|
99
99
|
}
|
100
100
|
unitWords = api.getUnitWords();
|
101
|
-
for (
|
101
|
+
for (const words of unitWords) {
|
102
102
|
addGenerator({
|
103
103
|
match: ({context}) => context.marker == 'currency' && context.units == words.units && context.value == 1 && context.isAbstract,
|
104
104
|
apply: ({context, g}) => words.one, uuid
|
package/common/dialogues.js
CHANGED
@@ -37,7 +37,7 @@ const warningSameNotEvaluated = (log, one) => {
|
|
37
37
|
}
|
38
38
|
|
39
39
|
// TODO implement what / what did you say ...
|
40
|
-
|
40
|
+
const config = {
|
41
41
|
name: 'dialogues',
|
42
42
|
operators: [
|
43
43
|
"(<thatVerb|that> (verb/0))",
|
@@ -101,6 +101,7 @@ let config = {
|
|
101
101
|
positive: [
|
102
102
|
// [['is', 0], ['unknown', 1]],
|
103
103
|
// [['isEd', 0], ['means', 0]],
|
104
|
+
[['thatVerb', 0], ['verb', 0]],
|
104
105
|
[['isEdee', 0], ['isEd', 0], ['isEder', 0], ['by', 0]],
|
105
106
|
[['isEdee', 0], ['isEd', 0], ['isEdAble', 0]],
|
106
107
|
[['unknown', 1], ['isEd', 0], ['isEdAble', 0]],
|
@@ -112,8 +113,10 @@ let config = {
|
|
112
113
|
bridges: [
|
113
114
|
{
|
114
115
|
id: 'thatVerb',
|
115
|
-
|
116
|
-
bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"
|
116
|
+
before: ['verb'],
|
117
|
+
// bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: append(before[0].generate, concatm(\"thatClause.\", operator.generate)), thatClause: bridge, conditions: append(after[0].conditions, [bridge]) }' } }",
|
118
|
+
// bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: concatm(\"thatClause.\", bridge.generate), thatClause: bridge, conditions: append(bridge.subject.conditions, [bridge]) }' } }",
|
119
|
+
bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { actLike: [\"subordinatedVerb\", 0] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: concatm(\"thatClause.\", bridge.generate), thatClause: bridge, conditions: append(bridge.subject.conditions, [bridge]) }' } }",
|
117
120
|
},
|
118
121
|
|
119
122
|
{
|
@@ -326,6 +329,7 @@ let config = {
|
|
326
329
|
|
327
330
|
floaters: ['query'],
|
328
331
|
priorities: [
|
332
|
+
{ "context": [['is', 0], ['means', 0], ], "choose": [0] },
|
329
333
|
{ "context": [['is', 0], ['means', 0], ], "choose": [0] },
|
330
334
|
{ "context": [["what",0], ["does",0],], "choose": [0] },
|
331
335
|
{ "context": [["is",0], ["is",1],], "choose": [0] },
|
@@ -656,7 +660,7 @@ let config = {
|
|
656
660
|
// km('dialogues').api.mentioned(concept)
|
657
661
|
// TODO wtf is the next line?
|
658
662
|
value = JSON.parse(JSON.stringify(value))
|
659
|
-
|
663
|
+
const instance = await e(value)
|
660
664
|
if (false && instance.evalue) {
|
661
665
|
km('stm').api.mentioned({ context: value })
|
662
666
|
}
|
@@ -791,7 +795,7 @@ const initializer = ({objects, config, isModule}) => {
|
|
791
795
|
return api('dialogues').toScopedId(context)
|
792
796
|
},
|
793
797
|
addWords: (id, word, additional) => {
|
794
|
-
for (
|
798
|
+
for (const props of words(word, { ...additional })) {
|
795
799
|
config.addWord(props.word, { id, initial: JSON.stringify(props) })
|
796
800
|
}
|
797
801
|
},
|
@@ -261,6 +261,11 @@
|
|
261
261
|
"theAble",
|
262
262
|
false
|
263
263
|
],
|
264
|
+
[
|
265
|
+
"distributable",
|
266
|
+
"queryable",
|
267
|
+
false
|
268
|
+
],
|
264
269
|
[
|
265
270
|
"divideByExpression",
|
266
271
|
"mathematicalExpression",
|
@@ -276,6 +281,11 @@
|
|
276
281
|
"queryable",
|
277
282
|
false
|
278
283
|
],
|
284
|
+
[
|
285
|
+
"each",
|
286
|
+
"articlePOS",
|
287
|
+
false
|
288
|
+
],
|
279
289
|
[
|
280
290
|
"evaluate",
|
281
291
|
"verb",
|
@@ -283,7 +293,7 @@
|
|
283
293
|
],
|
284
294
|
[
|
285
295
|
"every",
|
286
|
-
"
|
296
|
+
"articlePOS",
|
287
297
|
false
|
288
298
|
],
|
289
299
|
[
|
@@ -1122,7 +1132,6 @@
|
|
1122
1132
|
},
|
1123
1133
|
"types": [
|
1124
1134
|
"list",
|
1125
|
-
"queryable",
|
1126
1135
|
"unknown"
|
1127
1136
|
],
|
1128
1137
|
"listable": true,
|
@@ -1139,7 +1148,6 @@
|
|
1139
1148
|
"end": 8
|
1140
1149
|
},
|
1141
1150
|
"types": [
|
1142
|
-
"queryable",
|
1143
1151
|
"unknown"
|
1144
1152
|
],
|
1145
1153
|
"dead": true,
|
@@ -1156,7 +1164,6 @@
|
|
1156
1164
|
"end": 17
|
1157
1165
|
},
|
1158
1166
|
"types": [
|
1159
|
-
"queryable",
|
1160
1167
|
"unknown"
|
1161
1168
|
],
|
1162
1169
|
"dead": true,
|
package/common/dimension.js
CHANGED
@@ -40,7 +40,7 @@ class API {
|
|
40
40
|
})
|
41
41
|
|
42
42
|
// for example, celcius and fahrenheit
|
43
|
-
for (
|
43
|
+
for (const unit of units) {
|
44
44
|
config.addOperator(`([${unit}])`)
|
45
45
|
config.addBridge({
|
46
46
|
id: unit,
|
@@ -52,7 +52,7 @@ class API {
|
|
52
52
|
|
53
53
|
const api = new API()
|
54
54
|
|
55
|
-
|
55
|
+
const config = {
|
56
56
|
name: 'dimension',
|
57
57
|
operators: [
|
58
58
|
"([dimension])",
|