tpmkms 9.5.0 → 9.5.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 +21 -61
- package/common/asking.js +106 -104
- package/common/can.instance.json +17 -0
- package/common/can.js +188 -0
- package/common/characters.js +5 -5
- package/common/colors.instance.json +38 -10
- package/common/comparable.instance.json +2 -2
- package/common/concept.test.json +54 -40
- package/common/conjunction.js +13 -5
- package/common/crew.instance.json +71 -85
- package/common/crew.js +1 -1
- package/common/crew.test.json +4148 -3324
- package/common/currency.js +1 -1
- package/common/dates.instance.json +87 -3
- package/common/dialogues.js +12 -9
- package/common/dimension.instance.json +9 -9
- package/common/dimension.js +4 -4
- package/common/edible.instance.json +79 -23
- package/common/emotions.instance.json +29 -7
- package/common/emotions.js +1 -1
- package/common/emotions.test.json +242 -174
- package/common/english_helpers.js +336 -0
- package/common/errors.js +3 -3
- package/common/evaluate.js +2 -2
- package/common/events.js +8 -8
- package/common/fastfood.instance.json +205 -553
- package/common/fastfood.js +4 -4
- package/common/formulas.instance.json +1 -1
- package/common/formulas.js +1 -1
- package/common/gdefaults.js +58 -9
- package/common/help.js +3 -3
- 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 +1 -1
- 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 +158 -55
- package/common/helpers.js +135 -46
- package/common/hierarchy.js +3 -3
- package/common/kirk.instance.json +1 -1
- package/common/latin.instance.json +2 -2
- package/common/latin.js +4 -4
- package/common/length.instance.json +2 -2
- package/common/listener.js +1 -1
- package/common/math.instance.json +28 -28
- package/common/math.js +47 -46
- package/common/menus.instance.json +3 -3
- package/common/menus.js +1 -1
- package/common/meta.js +76 -60
- package/common/nameable.js +7 -7
- package/common/ordering.instance.json +85 -19
- package/common/ordering.js +1 -1
- package/common/ordering.test.json +786 -298
- package/common/people.instance.json +59 -56
- package/common/people.js +6 -4
- package/common/people.test.json +4135 -3606
- package/common/pipboy.instance.json +72 -16
- package/common/pipboy.js +2 -3
- package/common/pokemon.instance.json +8 -8
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +2 -2
- package/common/properties.instance.json +1 -1
- package/common/properties.js +22 -4
- package/common/reminders.instance.json +4 -4
- package/common/reminders.js +3 -3
- package/common/reports.instance.json +3 -3
- package/common/reports.js +18 -16
- package/common/scorekeeper.js +6 -6
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +1 -1
- package/common/stgame.js +1 -1
- package/common/stm.js +4 -4
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +2 -2
- package/common/tester.js +3 -3
- package/common/time.js +3 -3
- package/common/tokenize.js +5 -2
- package/common/weight.instance.json +2 -2
- package/common/wp.instance.json +136 -8
- package/common/wp.js +4 -4
- package/package.json +6 -2
|
@@ -5362,7 +5362,7 @@
|
|
|
5362
5362
|
"word": "ownee",
|
|
5363
5363
|
"range": {
|
|
5364
5364
|
"start": 0,
|
|
5365
|
-
"end":
|
|
5365
|
+
"end": 4
|
|
5366
5366
|
},
|
|
5367
5367
|
"dead": true,
|
|
5368
5368
|
"types": [
|
|
@@ -5401,12 +5401,7 @@
|
|
|
5401
5401
|
},
|
|
5402
5402
|
"do": {
|
|
5403
5403
|
"left": "owner",
|
|
5404
|
-
"right": "ownee"
|
|
5405
|
-
"range": {
|
|
5406
|
-
"start": 30,
|
|
5407
|
-
"end": 45
|
|
5408
|
-
},
|
|
5409
|
-
"text": ""
|
|
5404
|
+
"right": "ownee"
|
|
5410
5405
|
},
|
|
5411
5406
|
"owner": {
|
|
5412
5407
|
"marker": "owner",
|
|
@@ -5440,6 +5435,21 @@
|
|
|
5440
5435
|
],
|
|
5441
5436
|
"level": 0
|
|
5442
5437
|
},
|
|
5438
|
+
"operator": {
|
|
5439
|
+
"value": "owns",
|
|
5440
|
+
"number": "one",
|
|
5441
|
+
"text": "owns",
|
|
5442
|
+
"marker": "owns",
|
|
5443
|
+
"word": "owns",
|
|
5444
|
+
"range": {
|
|
5445
|
+
"start": 36,
|
|
5446
|
+
"end": 39
|
|
5447
|
+
},
|
|
5448
|
+
"evaluateWord": true,
|
|
5449
|
+
"imperative": false,
|
|
5450
|
+
"isVerb": true,
|
|
5451
|
+
"level": 0
|
|
5452
|
+
},
|
|
5443
5453
|
"unflatten": [
|
|
5444
5454
|
"owner",
|
|
5445
5455
|
"ownee"
|
|
@@ -5448,6 +5458,18 @@
|
|
|
5448
5458
|
"owner",
|
|
5449
5459
|
"ownee"
|
|
5450
5460
|
],
|
|
5461
|
+
"interpolate": [
|
|
5462
|
+
{
|
|
5463
|
+
"property": "owner"
|
|
5464
|
+
},
|
|
5465
|
+
{
|
|
5466
|
+
"property": "operator",
|
|
5467
|
+
"number": "owner"
|
|
5468
|
+
},
|
|
5469
|
+
{
|
|
5470
|
+
"property": "ownee"
|
|
5471
|
+
}
|
|
5472
|
+
],
|
|
5451
5473
|
"level": 1
|
|
5452
5474
|
},
|
|
5453
5475
|
"level": 1,
|
|
@@ -6936,7 +6958,7 @@
|
|
|
6936
6958
|
],
|
|
6937
6959
|
"ops": [
|
|
6938
6960
|
[
|
|
6939
|
-
"
|
|
6961
|
+
"is",
|
|
6940
6962
|
0
|
|
6941
6963
|
],
|
|
6942
6964
|
[
|
|
@@ -6994,7 +7016,7 @@
|
|
|
6994
7016
|
"word": "ownervar",
|
|
6995
7017
|
"range": {
|
|
6996
7018
|
"start": 0,
|
|
6997
|
-
"end":
|
|
7019
|
+
"end": 7
|
|
6998
7020
|
},
|
|
6999
7021
|
"dead": true,
|
|
7000
7022
|
"types": [
|
|
@@ -7031,30 +7053,15 @@
|
|
|
7031
7053
|
"types": [
|
|
7032
7054
|
"owner"
|
|
7033
7055
|
],
|
|
7034
|
-
"word": "owner"
|
|
7035
|
-
"range": {
|
|
7036
|
-
"start": 12,
|
|
7037
|
-
"end": 28
|
|
7038
|
-
},
|
|
7039
|
-
"text": ""
|
|
7056
|
+
"word": "owner"
|
|
7040
7057
|
},
|
|
7041
7058
|
"ownee": {
|
|
7042
7059
|
"marker": "ownee",
|
|
7043
7060
|
"types": [
|
|
7044
7061
|
"ownee"
|
|
7045
7062
|
],
|
|
7046
|
-
"word": "ownee"
|
|
7047
|
-
|
|
7048
|
-
"start": 12,
|
|
7049
|
-
"end": 28
|
|
7050
|
-
},
|
|
7051
|
-
"text": ""
|
|
7052
|
-
},
|
|
7053
|
-
"range": {
|
|
7054
|
-
"start": 12,
|
|
7055
|
-
"end": 28
|
|
7056
|
-
},
|
|
7057
|
-
"text": "ed by by"
|
|
7063
|
+
"word": "ownee"
|
|
7064
|
+
}
|
|
7058
7065
|
},
|
|
7059
7066
|
"constraint": {
|
|
7060
7067
|
"marker": "owned",
|
|
@@ -7062,8 +7069,8 @@
|
|
|
7062
7069
|
"word": "owned",
|
|
7063
7070
|
"text": "owned",
|
|
7064
7071
|
"range": {
|
|
7065
|
-
"start":
|
|
7066
|
-
"end":
|
|
7072
|
+
"start": 21,
|
|
7073
|
+
"end": 25
|
|
7067
7074
|
},
|
|
7068
7075
|
"dead": true,
|
|
7069
7076
|
"constrained": true,
|
|
@@ -7085,7 +7092,7 @@
|
|
|
7085
7092
|
"word": "owneevar",
|
|
7086
7093
|
"range": {
|
|
7087
7094
|
"start": 12,
|
|
7088
|
-
"end":
|
|
7095
|
+
"end": 19
|
|
7089
7096
|
},
|
|
7090
7097
|
"dead": true,
|
|
7091
7098
|
"types": [
|
|
@@ -7145,7 +7152,7 @@
|
|
|
7145
7152
|
0
|
|
7146
7153
|
],
|
|
7147
7154
|
[
|
|
7148
|
-
"
|
|
7155
|
+
"owned",
|
|
7149
7156
|
0
|
|
7150
7157
|
],
|
|
7151
7158
|
[
|
|
@@ -7155,7 +7162,11 @@
|
|
|
7155
7162
|
],
|
|
7156
7163
|
[
|
|
7157
7164
|
[
|
|
7158
|
-
"
|
|
7165
|
+
"is",
|
|
7166
|
+
0
|
|
7167
|
+
],
|
|
7168
|
+
[
|
|
7169
|
+
"ownee",
|
|
7159
7170
|
0
|
|
7160
7171
|
],
|
|
7161
7172
|
[
|
|
@@ -7346,7 +7357,7 @@
|
|
|
7346
7357
|
},
|
|
7347
7358
|
{
|
|
7348
7359
|
"marker": [
|
|
7349
|
-
"
|
|
7360
|
+
"is",
|
|
7350
7361
|
0
|
|
7351
7362
|
],
|
|
7352
7363
|
"range": {
|
|
@@ -8359,10 +8370,6 @@
|
|
|
8359
8370
|
"default": true,
|
|
8360
8371
|
"word": "owned",
|
|
8361
8372
|
"text": "owned",
|
|
8362
|
-
"range": {
|
|
8363
|
-
"start": 12,
|
|
8364
|
-
"end": 16
|
|
8365
|
-
},
|
|
8366
8373
|
"types": [
|
|
8367
8374
|
"owned"
|
|
8368
8375
|
],
|
|
@@ -8376,10 +8383,6 @@
|
|
|
8376
8383
|
"text": "owneevar",
|
|
8377
8384
|
"marker": "unknown",
|
|
8378
8385
|
"word": "owneevar",
|
|
8379
|
-
"range": {
|
|
8380
|
-
"start": 0,
|
|
8381
|
-
"end": 28
|
|
8382
|
-
},
|
|
8383
8386
|
"dead": true,
|
|
8384
8387
|
"types": [
|
|
8385
8388
|
"ownee",
|
|
@@ -8393,10 +8396,6 @@
|
|
|
8393
8396
|
"text": "ownervar",
|
|
8394
8397
|
"marker": "ownervar",
|
|
8395
8398
|
"word": "ownervar",
|
|
8396
|
-
"range": {
|
|
8397
|
-
"start": 21,
|
|
8398
|
-
"end": 28
|
|
8399
|
-
},
|
|
8400
8399
|
"dead": true,
|
|
8401
8400
|
"types": [
|
|
8402
8401
|
"ownervar"
|
|
@@ -8886,6 +8885,20 @@
|
|
|
8886
8885
|
0
|
|
8887
8886
|
]
|
|
8888
8887
|
],
|
|
8888
|
+
[
|
|
8889
|
+
[
|
|
8890
|
+
"is",
|
|
8891
|
+
0
|
|
8892
|
+
],
|
|
8893
|
+
[
|
|
8894
|
+
"owned",
|
|
8895
|
+
0
|
|
8896
|
+
],
|
|
8897
|
+
[
|
|
8898
|
+
"unknown",
|
|
8899
|
+
0
|
|
8900
|
+
]
|
|
8901
|
+
],
|
|
8889
8902
|
[
|
|
8890
8903
|
[
|
|
8891
8904
|
"is",
|
|
@@ -9114,16 +9127,6 @@
|
|
|
9114
9127
|
0
|
|
9115
9128
|
]
|
|
9116
9129
|
],
|
|
9117
|
-
[
|
|
9118
|
-
[
|
|
9119
|
-
"owned",
|
|
9120
|
-
0
|
|
9121
|
-
],
|
|
9122
|
-
[
|
|
9123
|
-
"unknown",
|
|
9124
|
-
0
|
|
9125
|
-
]
|
|
9126
|
-
],
|
|
9127
9130
|
[
|
|
9128
9131
|
[
|
|
9129
9132
|
"owned",
|
|
@@ -10497,7 +10500,7 @@
|
|
|
10497
10500
|
},
|
|
10498
10501
|
{
|
|
10499
10502
|
"marker": [
|
|
10500
|
-
"
|
|
10503
|
+
"is",
|
|
10501
10504
|
0
|
|
10502
10505
|
],
|
|
10503
10506
|
"range": {
|
package/common/people.js
CHANGED
|
@@ -5,7 +5,6 @@ const people_tests = require('./people.test.json')
|
|
|
5
5
|
const people_instance = require('./people.instance.json')
|
|
6
6
|
const { hashIndexesGet, hashIndexesSet, translationMapping, translationMappings, compose } = require('./helpers/meta.js')
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
// TODO first name
|
|
10
9
|
// TODO last name
|
|
11
10
|
// alive is a first name vs alive is a person
|
|
@@ -42,7 +41,7 @@ const config = {
|
|
|
42
41
|
|
|
43
42
|
};
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
function initializer({baseConfig, context, apis, isModule}) {
|
|
46
45
|
// const api = km('properties').api
|
|
47
46
|
const api = apis('properties')
|
|
48
47
|
// setup paraphrase
|
|
@@ -71,8 +70,11 @@ knowledgeModule( {
|
|
|
71
70
|
name: './people.test.json',
|
|
72
71
|
contents: people_tests,
|
|
73
72
|
checks: {
|
|
74
|
-
context: [
|
|
75
|
-
|
|
73
|
+
context: [
|
|
74
|
+
defaultContextCheck({ marker: 'owns', extra: ['constraints', 'owned', 'ownee'] }),
|
|
75
|
+
],
|
|
76
|
+
objects: [{ km: 'properties' }],
|
|
77
|
+
},
|
|
76
78
|
},
|
|
77
79
|
template: {
|
|
78
80
|
template,
|