tpmkms 9.8.0 → 9.9.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/actions.instance.json +10 -8
- package/common/actions.js +13 -11
- package/common/angle.instance.json +25 -17
- package/common/animals.instance.json +54 -28
- package/common/askfor.instance.json +89 -192
- package/common/askfor.js +49 -12
- package/common/asking.js +13 -5
- package/common/avatar.js +3 -3
- package/common/can.instance.json +32 -20
- package/common/can.js +2 -2
- package/common/colors.instance.json +44 -16
- package/common/colors.js +1 -1
- package/common/comparable.instance.json +25 -22
- package/common/compass.instance.json +9 -3
- package/common/concept.instance.json +14 -6
- package/common/concept.js +2 -0
- package/common/conjunction.js +17 -9
- package/common/control.js +10 -18
- package/common/countable.js +4 -3
- package/common/crew.instance.json +95 -27
- package/common/dateTimeSelectors.instance.json +4 -4
- package/common/dateTimeSelectors.js +4 -7
- package/common/dates.instance.json +52 -28
- package/common/dates.js +16 -11
- package/common/debug.instance.json +48 -0
- package/common/debug.js +50 -0
- package/common/debug.test.json +1 -0
- package/common/dialogues.js +126 -70
- package/common/dimension.instance.json +239 -495
- package/common/dimension.js +51 -9
- package/common/drone.instance.json +395 -84
- package/common/drone.js +43 -50
- package/common/drone_v1.instance.json +36 -12
- package/common/drone_v1.js +14 -9
- package/common/edible.instance.json +96 -32
- package/common/emotions.instance.json +15 -1
- package/common/evaluate.js +10 -13
- package/common/fastfood.instance.json +282 -100
- package/common/fastfood.js +30 -15
- package/common/formulas.instance.json +162 -24
- package/common/formulas.js +18 -9
- package/common/gdefaults.js +20 -96
- package/common/helpers/concept.js +2 -9
- package/common/helpers/conjunction.js +11 -1
- package/common/helpers/dialogues.js +48 -24
- package/common/helpers/gdefaults.js +15 -5
- package/common/helpers/properties.js +125 -326
- package/common/helpers.js +28 -58
- package/common/hierarchy.js +71 -41
- package/common/kirk.instance.json +3 -1
- package/common/latin.instance.json +10 -10
- package/common/latin.js +5 -5
- package/common/length.instance.json +247 -61
- package/common/math.instance.json +144 -5
- package/common/math.js +18 -5
- package/common/menus.instance.json +29 -11
- package/common/menus.js +8 -5
- package/common/meta.js +14 -13
- package/common/nameable.js +9 -5
- package/common/numbers.instance.json +5 -3
- package/common/numbers.js +28 -28
- package/common/ordering.instance.json +53 -4
- package/common/ordinals.js +25 -25
- package/common/people.instance.json +66 -12
- package/common/percentages.js +4 -2
- package/common/pipboy.instance.json +89 -44
- package/common/pipboy.js +21 -14
- package/common/pokemon.instance.json +39 -13
- package/common/pressure.instance.json +14 -6
- package/common/properties.instance.json +2370 -511
- package/common/properties.js +496 -78
- package/common/punctuation.js +1 -0
- package/common/rates.instance.json +2 -2
- package/common/rates.js +3 -3
- package/common/reminders.instance.json +16 -0
- package/common/reminders.js +24 -20
- package/common/reports.instance.json +11 -12
- package/common/reports.js +12 -12
- package/common/scorekeeper.js +20 -10
- package/common/sdefaults.js +30 -9
- package/common/spock.instance.json +3 -1
- package/common/stm.js +16 -21
- package/common/temperature.instance.json +19 -11
- package/common/testing.js +2 -2
- package/common/time.instance.json +104 -47
- package/common/time.js +9 -8
- package/common/ui.instance.json +4 -2
- package/common/ui.js +5 -5
- package/common/weight.instance.json +86 -21
- package/common/weight.js +5 -1
- package/common/words.js +113 -2
- package/common/wp.instance.json +125 -18
- package/common/wp.js +6 -2
- package/main.js +2 -0
- package/package.json +7 -3
package/common/numbers.js
CHANGED
|
@@ -28,53 +28,53 @@ const config = {
|
|
|
28
28
|
*/
|
|
29
29
|
{
|
|
30
30
|
id: "number",
|
|
31
|
-
bridge: "{
|
|
31
|
+
bridge: "{ isInstance: false, ...next(operator) }"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: "integer",
|
|
35
35
|
isA: ['number'],
|
|
36
|
-
bridge: "{
|
|
36
|
+
bridge: "{ isInstance: false, ...next(operator) }"
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
words: {
|
|
40
40
|
"literals": {
|
|
41
|
-
"one": [{"id": "integer", "initial": "{ value: 1,
|
|
42
|
-
"ones": [{"id": "integer", "initial": "{ value: 1, integer: 'many',
|
|
43
|
-
"two": [{"id": "integer", "initial": "{ value: 2 ,
|
|
44
|
-
"twos": [{"id": "integer", "initial": "{ value: 2 , integer: 'many',
|
|
45
|
-
"three": [{"id": "integer", "initial": "{ value: 3,
|
|
46
|
-
"threes": [{"id": "integer", "initial": "{ value: 3, integer: 'many',
|
|
47
|
-
"four": [{"id": "integer", "initial": "{ value: 4,
|
|
48
|
-
"fours": [{"id": "integer", "initial": "{ value: 4, integer: 'many',
|
|
49
|
-
"five": [{"id": "integer", "initial": "{ value: 5,
|
|
50
|
-
"fives": [{"id": "integer", "initial": "{ value: 5, integer: 'many',
|
|
51
|
-
"six": [{"id": "integer", "initial": "{ value: 6,
|
|
52
|
-
"sixes": [{"id": "integer", "initial": "{ value: 6, integer: 'many',
|
|
53
|
-
"seven": [{"id": "integer", "initial": "{ value: 7,
|
|
54
|
-
"sevens": [{"id": "integer", "initial": "{ value: 7, integer: 'many',
|
|
55
|
-
"eight": [{"id": "integer", "initial": "{ value: 8,
|
|
56
|
-
"eights": [{"id": "integer", "initial": "{ value: 8, integer: 'many',
|
|
57
|
-
"nine": [{"id": "integer", "initial": "{ value: 9,
|
|
58
|
-
"nines": [{"id": "integer", "initial": "{ value: 9, integer: 'many',
|
|
59
|
-
"ten": [{"id": "integer", "initial": "{ value: 10,
|
|
60
|
-
"tens": [{"id": "integer", "initial": "{ value: 10, integer: 'many',
|
|
61
|
-
"pi": [{"id": "integer", "initial": { value: 3.1415926, integer: 'many',
|
|
41
|
+
"one": [{"id": "integer", "initial": "{ value: 1, isInstance: true }" }],
|
|
42
|
+
"ones": [{"id": "integer", "initial": "{ value: 1, integer: 'many', isInstance: true }" }],
|
|
43
|
+
"two": [{"id": "integer", "initial": "{ value: 2 , isInstance: true}" }],
|
|
44
|
+
"twos": [{"id": "integer", "initial": "{ value: 2 , integer: 'many', isInstance: true}" }],
|
|
45
|
+
"three": [{"id": "integer", "initial": "{ value: 3, isInstance: true }" }],
|
|
46
|
+
"threes": [{"id": "integer", "initial": "{ value: 3, integer: 'many', isInstance: true }" }],
|
|
47
|
+
"four": [{"id": "integer", "initial": "{ value: 4, isInstance: true }" }],
|
|
48
|
+
"fours": [{"id": "integer", "initial": "{ value: 4, integer: 'many', isInstance: true }" }],
|
|
49
|
+
"five": [{"id": "integer", "initial": "{ value: 5, isInstance: true }" }],
|
|
50
|
+
"fives": [{"id": "integer", "initial": "{ value: 5, integer: 'many', isInstance: true }" }],
|
|
51
|
+
"six": [{"id": "integer", "initial": "{ value: 6, isInstance: true }" }],
|
|
52
|
+
"sixes": [{"id": "integer", "initial": "{ value: 6, integer: 'many', isInstance: true }" }],
|
|
53
|
+
"seven": [{"id": "integer", "initial": "{ value: 7, isInstance: true }" }],
|
|
54
|
+
"sevens": [{"id": "integer", "initial": "{ value: 7, integer: 'many', isInstance: true }" }],
|
|
55
|
+
"eight": [{"id": "integer", "initial": "{ value: 8, isInstance: true }" }],
|
|
56
|
+
"eights": [{"id": "integer", "initial": "{ value: 8, integer: 'many', isInstance: true }" }],
|
|
57
|
+
"nine": [{"id": "integer", "initial": "{ value: 9, isInstance: true }" }],
|
|
58
|
+
"nines": [{"id": "integer", "initial": "{ value: 9, integer: 'many', isInstance: true }" }],
|
|
59
|
+
"ten": [{"id": "integer", "initial": "{ value: 10, isInstance: true }" }],
|
|
60
|
+
"tens": [{"id": "integer", "initial": "{ value: 10, integer: 'many', isInstance: true }" }],
|
|
61
|
+
"pi": [{"id": "integer", "initial": { value: 3.1415926, integer: 'many', isInstance: true } }],
|
|
62
62
|
},
|
|
63
63
|
patterns: [
|
|
64
64
|
{
|
|
65
65
|
pattern: [{ type: 'digit' }, { repeat: true }],
|
|
66
66
|
allow_partial_matches: false,
|
|
67
|
-
defs: [{id: "integer", uuid: '1', initial: "{ value: int(text),
|
|
67
|
+
defs: [{id: "integer", uuid: '1', initial: "{ value: int(text), isInstance: true }" }]
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
pattern: [{ type: 'digit' }, { repeat: true }, '.', { type: 'digit' }, { repeat: true }],
|
|
71
71
|
allow_partial_matches: false,
|
|
72
|
-
defs: [{id: "number", uuid: '1', initial: "{ value: float(text),
|
|
72
|
+
defs: [{id: "number", uuid: '1', initial: "{ value: float(text), isInstance: true }" }]
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
pattern: ['.', { type: 'digit' }, { repeat: true }],
|
|
76
76
|
allow_partial_matches: false,
|
|
77
|
-
defs: [{id: "number", uuid: '1', initial: "{ value: float(text),
|
|
77
|
+
defs: [{id: "number", uuid: '1', initial: "{ value: float(text), isInstance: true }" }]
|
|
78
78
|
},
|
|
79
79
|
],
|
|
80
80
|
},
|
|
@@ -137,8 +137,8 @@ knowledgeModule( {
|
|
|
137
137
|
contents: numbers_tests,
|
|
138
138
|
checks: {
|
|
139
139
|
context: [
|
|
140
|
-
defaultContextCheck({ marker: 'number', exported: true, extra: ['
|
|
141
|
-
defaultContextCheck({ match: ({isA, context}) => isA(context.marker, 'integer'), exported: true, extra: ['
|
|
140
|
+
defaultContextCheck({ marker: 'number', exported: true, extra: ['isInstance'] }),
|
|
141
|
+
defaultContextCheck({ match: ({isA, context}) => isA(context.marker, 'integer'), exported: true, extra: ['isInstance'] }),
|
|
142
142
|
defaultContextCheck()
|
|
143
143
|
],
|
|
144
144
|
}
|
|
@@ -203,8 +203,7 @@
|
|
|
203
203
|
"types": [
|
|
204
204
|
"unknown"
|
|
205
205
|
],
|
|
206
|
-
"level": 0
|
|
207
|
-
"evaluate": false
|
|
206
|
+
"level": 0
|
|
208
207
|
},
|
|
209
208
|
"two": {
|
|
210
209
|
"marker": "xfx",
|
|
@@ -288,7 +287,6 @@
|
|
|
288
287
|
"level": 2,
|
|
289
288
|
"context_index": 1,
|
|
290
289
|
"topLevel": true,
|
|
291
|
-
"context_id": 2,
|
|
292
290
|
"touchedBy": [
|
|
293
291
|
"ordering#call2"
|
|
294
292
|
]
|
|
@@ -779,6 +777,9 @@
|
|
|
779
777
|
}
|
|
780
778
|
],
|
|
781
779
|
"learned_contextual_priorities": [],
|
|
780
|
+
"explain_associations_details": [
|
|
781
|
+
null
|
|
782
|
+
],
|
|
782
783
|
"query": "wants is xfx between wanter and wantee",
|
|
783
784
|
"key": {
|
|
784
785
|
"query": "wants is xfx between wanter and wantee"
|
|
@@ -1361,6 +1362,23 @@
|
|
|
1361
1362
|
],
|
|
1362
1363
|
"level": 0
|
|
1363
1364
|
},
|
|
1365
|
+
"relationBacked": false,
|
|
1366
|
+
"orderingArgs": {
|
|
1367
|
+
"name": "preference",
|
|
1368
|
+
"marker": "like",
|
|
1369
|
+
"object": "liker",
|
|
1370
|
+
"category": "likee"
|
|
1371
|
+
},
|
|
1372
|
+
"relationArgs": [
|
|
1373
|
+
{
|
|
1374
|
+
"tag": "liker",
|
|
1375
|
+
"id": "object"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"tag": "likee",
|
|
1379
|
+
"id": "object"
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1364
1382
|
"operator": {
|
|
1365
1383
|
"value": "like",
|
|
1366
1384
|
"isVerb": true,
|
|
@@ -1449,6 +1467,23 @@
|
|
|
1449
1467
|
],
|
|
1450
1468
|
"level": 0
|
|
1451
1469
|
},
|
|
1470
|
+
"relationBacked": false,
|
|
1471
|
+
"orderingArgs": {
|
|
1472
|
+
"name": "preference",
|
|
1473
|
+
"marker": "love",
|
|
1474
|
+
"object": "lover",
|
|
1475
|
+
"category": "lovee"
|
|
1476
|
+
},
|
|
1477
|
+
"relationArgs": [
|
|
1478
|
+
{
|
|
1479
|
+
"tag": "lover",
|
|
1480
|
+
"id": "object"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"tag": "lovee",
|
|
1484
|
+
"id": "object"
|
|
1485
|
+
}
|
|
1486
|
+
],
|
|
1452
1487
|
"operator": {
|
|
1453
1488
|
"value": "love",
|
|
1454
1489
|
"isVerb": true,
|
|
@@ -1542,6 +1577,18 @@
|
|
|
1542
1577
|
],
|
|
1543
1578
|
"level": 0
|
|
1544
1579
|
},
|
|
1580
|
+
"relationBacked": false,
|
|
1581
|
+
"orderingArgs": {},
|
|
1582
|
+
"relationArgs": [
|
|
1583
|
+
{
|
|
1584
|
+
"tag": "wanter",
|
|
1585
|
+
"id": "object"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"tag": "wantee",
|
|
1589
|
+
"id": "object"
|
|
1590
|
+
}
|
|
1591
|
+
],
|
|
1545
1592
|
"operator": {
|
|
1546
1593
|
"value": "want",
|
|
1547
1594
|
"text": "wants",
|
|
@@ -1585,7 +1632,6 @@
|
|
|
1585
1632
|
"level": 1,
|
|
1586
1633
|
"context_index": 1,
|
|
1587
1634
|
"topLevel": true,
|
|
1588
|
-
"context_id": 2,
|
|
1589
1635
|
"touchedBy": [
|
|
1590
1636
|
"ordering#call2"
|
|
1591
1637
|
]
|
|
@@ -2946,6 +2992,9 @@
|
|
|
2946
2992
|
}
|
|
2947
2993
|
],
|
|
2948
2994
|
"learned_contextual_priorities": [],
|
|
2995
|
+
"explain_associations_details": [
|
|
2996
|
+
null
|
|
2997
|
+
],
|
|
2949
2998
|
"query": "if x likes y or x loves y then x wants y",
|
|
2950
2999
|
"key": {
|
|
2951
3000
|
"query": "if x likes y or x loves y then x wants y"
|
package/common/ordinals.js
CHANGED
|
@@ -16,7 +16,7 @@ const config = {
|
|
|
16
16
|
{
|
|
17
17
|
id: "ordinal",
|
|
18
18
|
isA: ["listable"],
|
|
19
|
-
bridge: "{
|
|
19
|
+
bridge: "{ isInstance: false, ordinal: true, ...next(operator) }",
|
|
20
20
|
initial: { 'notConjunctableWith':['quantity', 'number'] },
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -41,7 +41,7 @@ const config = {
|
|
|
41
41
|
semantics: [
|
|
42
42
|
{
|
|
43
43
|
where: where(),
|
|
44
|
-
match: ({context}) => context.marker == 'mentions' && context.
|
|
44
|
+
match: ({context}) => context.marker == 'mentions' && context.args?.context?.ordinal,
|
|
45
45
|
apply: async ({callId, _continue, toList, context, kms, e, log, toArray, retry}) => {
|
|
46
46
|
// const ordinals = toArray(context.args?.context?.ordinal)
|
|
47
47
|
const lastNotFirst = context.args?.context?.ordinal.value < 0
|
|
@@ -87,31 +87,31 @@ const config = {
|
|
|
87
87
|
],
|
|
88
88
|
words: {
|
|
89
89
|
"literals": {
|
|
90
|
-
"first": [{"id": "ordinal", "initial": "{ value: 1, ordinal: true,
|
|
91
|
-
"last": [{"id": "ordinal", "initial": "{ value: -1, ordinal: true,
|
|
92
|
-
"1st": [{"id": "ordinal", "initial": "{ value: 1, ordinal: true,
|
|
93
|
-
"second": [{"id": "ordinal", "initial": "{ value: 2, ordinal: true,
|
|
94
|
-
"2nd": [{"id": "ordinal", "initial": "{ value: 2, ordinal: true,
|
|
95
|
-
"third": [{"id": "ordinal", "initial": "{ value: 3, ordinal: true,
|
|
96
|
-
"3rd": [{"id": "ordinal", "initial": "{ value: 3, ordinal: true,
|
|
97
|
-
"fourth": [{"id": "ordinal", "initial": "{ value: 4, ordinal: true,
|
|
98
|
-
"4rd": [{"id": "ordinal", "initial": "{ value: 4, ordinal: true,
|
|
99
|
-
"fifth": [{"id": "ordinal", "initial": "{ value: 5, ordinal: true,
|
|
100
|
-
"5th": [{"id": "ordinal", "initial": "{ value: 5, ordinal: true,
|
|
101
|
-
"sixth": [{"id": "ordinal", "initial": "{ value: 6, ordinal: true,
|
|
102
|
-
"6th": [{"id": "ordinal", "initial": "{ value: 6, ordinal: true,
|
|
103
|
-
"seventh": [{"id": "ordinal", "initial": "{ value: 7, ordinal: true,
|
|
104
|
-
"7th": [{"id": "ordinal", "initial": "{ value: 7, ordinal: true,
|
|
105
|
-
"eigth": [{"id": "ordinal", "initial": "{ value: 8, ordinal: true,
|
|
106
|
-
"8th": [{"id": "ordinal", "initial": "{ value: 8, ordinal: true,
|
|
107
|
-
"ninth": [{"id": "ordinal", "initial": "{ value: 9, ordinal: true,
|
|
108
|
-
"9th": [{"id": "ordinal", "initial": "{ value: 9, ordinal: true,
|
|
90
|
+
"first": [{"id": "ordinal", "initial": "{ value: 1, ordinal: true, isInstance: true }" }],
|
|
91
|
+
"last": [{"id": "ordinal", "initial": "{ value: -1, ordinal: true, isInstance: true }" }],
|
|
92
|
+
"1st": [{"id": "ordinal", "initial": "{ value: 1, ordinal: true, isInstance: true }" }],
|
|
93
|
+
"second": [{"id": "ordinal", "initial": "{ value: 2, ordinal: true, isInstance: true }" }],
|
|
94
|
+
"2nd": [{"id": "ordinal", "initial": "{ value: 2, ordinal: true, isInstance: true }" }],
|
|
95
|
+
"third": [{"id": "ordinal", "initial": "{ value: 3, ordinal: true, isInstance: true }" }],
|
|
96
|
+
"3rd": [{"id": "ordinal", "initial": "{ value: 3, ordinal: true, isInstance: true }" }],
|
|
97
|
+
"fourth": [{"id": "ordinal", "initial": "{ value: 4, ordinal: true, isInstance: true }" }],
|
|
98
|
+
"4rd": [{"id": "ordinal", "initial": "{ value: 4, ordinal: true, isInstance: true }" }],
|
|
99
|
+
"fifth": [{"id": "ordinal", "initial": "{ value: 5, ordinal: true, isInstance: true }" }],
|
|
100
|
+
"5th": [{"id": "ordinal", "initial": "{ value: 5, ordinal: true, isInstance: true }" }],
|
|
101
|
+
"sixth": [{"id": "ordinal", "initial": "{ value: 6, ordinal: true, isInstance: true }" }],
|
|
102
|
+
"6th": [{"id": "ordinal", "initial": "{ value: 6, ordinal: true, isInstance: true }" }],
|
|
103
|
+
"seventh": [{"id": "ordinal", "initial": "{ value: 7, ordinal: true, isInstance: true }" }],
|
|
104
|
+
"7th": [{"id": "ordinal", "initial": "{ value: 7, ordinal: true, isInstance: true }" }],
|
|
105
|
+
"eigth": [{"id": "ordinal", "initial": "{ value: 8, ordinal: true, isInstance: true }" }],
|
|
106
|
+
"8th": [{"id": "ordinal", "initial": "{ value: 8, ordinal: true, isInstance: true }" }],
|
|
107
|
+
"ninth": [{"id": "ordinal", "initial": "{ value: 9, ordinal: true, isInstance: true }" }],
|
|
108
|
+
"9th": [{"id": "ordinal", "initial": "{ value: 9, ordinal: true, isInstance: true }" }],
|
|
109
109
|
},
|
|
110
110
|
patterns: [
|
|
111
|
-
{ "pattern": [{ type: 'digit' }, { repeat: true }, 'th'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true,
|
|
112
|
-
{ "pattern": [{ type: 'digit' }, { repeat: true }, '1st'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true,
|
|
113
|
-
{ "pattern": [{ type: 'digit' }, { repeat: true }, '2nd'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true,
|
|
114
|
-
{ "pattern": [{ type: 'digit' }, { repeat: true }, '3rd'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true,
|
|
111
|
+
{ "pattern": [{ type: 'digit' }, { repeat: true }, 'th'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true, isInstance: true }" }]},
|
|
112
|
+
{ "pattern": [{ type: 'digit' }, { repeat: true }, '1st'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true, isInstance: true }" }]},
|
|
113
|
+
{ "pattern": [{ type: 'digit' }, { repeat: true }, '2nd'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true, isInstance: true }" }]},
|
|
114
|
+
{ "pattern": [{ type: 'digit' }, { repeat: true }, '3rd'], defs: [{id: "ordinal", uuid: '1', initial: "{ value: int(substr(text, -2)), ordinal: true, isInstance: true }" }]},
|
|
115
115
|
],
|
|
116
116
|
},
|
|
117
117
|
};
|
|
@@ -110,7 +110,6 @@
|
|
|
110
110
|
"level": 1,
|
|
111
111
|
"context_index": 1,
|
|
112
112
|
"topLevel": true,
|
|
113
|
-
"context_id": 2,
|
|
114
113
|
"touchedBy": [
|
|
115
114
|
"people#call2"
|
|
116
115
|
]
|
|
@@ -256,6 +255,9 @@
|
|
|
256
255
|
}
|
|
257
256
|
],
|
|
258
257
|
"learned_contextual_priorities": [],
|
|
258
|
+
"explain_associations_details": [
|
|
259
|
+
null
|
|
260
|
+
],
|
|
259
261
|
"query": "first modifies name",
|
|
260
262
|
"key": {
|
|
261
263
|
"query": "first modifies name"
|
|
@@ -361,7 +363,6 @@
|
|
|
361
363
|
"level": 1,
|
|
362
364
|
"context_index": 1,
|
|
363
365
|
"topLevel": true,
|
|
364
|
-
"context_id": 2,
|
|
365
366
|
"touchedBy": [
|
|
366
367
|
"people#call2"
|
|
367
368
|
]
|
|
@@ -507,6 +508,9 @@
|
|
|
507
508
|
}
|
|
508
509
|
],
|
|
509
510
|
"learned_contextual_priorities": [],
|
|
511
|
+
"explain_associations_details": [
|
|
512
|
+
null
|
|
513
|
+
],
|
|
510
514
|
"query": "last modifies name",
|
|
511
515
|
"key": {
|
|
512
516
|
"query": "last modifies name"
|
|
@@ -652,7 +656,6 @@
|
|
|
652
656
|
"level": 1,
|
|
653
657
|
"context_index": 1,
|
|
654
658
|
"topLevel": true,
|
|
655
|
-
"context_id": 2,
|
|
656
659
|
"touchedBy": [
|
|
657
660
|
"people#call2"
|
|
658
661
|
]
|
|
@@ -818,6 +821,9 @@
|
|
|
818
821
|
}
|
|
819
822
|
],
|
|
820
823
|
"learned_contextual_priorities": [],
|
|
824
|
+
"explain_associations_details": [
|
|
825
|
+
null
|
|
826
|
+
],
|
|
821
827
|
"query": "surname means last name",
|
|
822
828
|
"key": {
|
|
823
829
|
"query": "surname means last name"
|
|
@@ -923,7 +929,6 @@
|
|
|
923
929
|
"level": 1,
|
|
924
930
|
"context_index": 1,
|
|
925
931
|
"topLevel": true,
|
|
926
|
-
"context_id": 2,
|
|
927
932
|
"touchedBy": [
|
|
928
933
|
"people#call2"
|
|
929
934
|
]
|
|
@@ -1069,6 +1074,9 @@
|
|
|
1069
1074
|
}
|
|
1070
1075
|
],
|
|
1071
1076
|
"learned_contextual_priorities": [],
|
|
1077
|
+
"explain_associations_details": [
|
|
1078
|
+
null
|
|
1079
|
+
],
|
|
1072
1080
|
"query": "given modifies name",
|
|
1073
1081
|
"key": {
|
|
1074
1082
|
"query": "given modifies name"
|
|
@@ -1244,7 +1252,6 @@
|
|
|
1244
1252
|
"level": 1,
|
|
1245
1253
|
"context_index": 1,
|
|
1246
1254
|
"topLevel": true,
|
|
1247
|
-
"context_id": 2,
|
|
1248
1255
|
"metaInfo": "The mapping from from the expression being defined \"given name\" to the definition phrase \"first name\" is []",
|
|
1249
1256
|
"touchedBy": [
|
|
1250
1257
|
"people#call2"
|
|
@@ -1421,6 +1428,9 @@
|
|
|
1421
1428
|
}
|
|
1422
1429
|
],
|
|
1423
1430
|
"learned_contextual_priorities": [],
|
|
1431
|
+
"explain_associations_details": [
|
|
1432
|
+
null
|
|
1433
|
+
],
|
|
1424
1434
|
"query": "given name means first name",
|
|
1425
1435
|
"key": {
|
|
1426
1436
|
"query": "given name means first name"
|
|
@@ -1591,6 +1601,8 @@
|
|
|
1591
1601
|
"dead": true,
|
|
1592
1602
|
"isEd": true,
|
|
1593
1603
|
"subject": "ownee",
|
|
1604
|
+
"beforeTag": "owner",
|
|
1605
|
+
"afterTag": "ownee",
|
|
1594
1606
|
"ownee": {
|
|
1595
1607
|
"operator": {
|
|
1596
1608
|
"marker": "owned",
|
|
@@ -1689,6 +1701,18 @@
|
|
|
1689
1701
|
],
|
|
1690
1702
|
"level": 0
|
|
1691
1703
|
},
|
|
1704
|
+
"relationBacked": true,
|
|
1705
|
+
"orderingArgs": {},
|
|
1706
|
+
"relationArgs": [
|
|
1707
|
+
{
|
|
1708
|
+
"tag": "owner",
|
|
1709
|
+
"id": "owner"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"tag": "ownee",
|
|
1713
|
+
"id": "ownee"
|
|
1714
|
+
}
|
|
1715
|
+
],
|
|
1692
1716
|
"operator": {
|
|
1693
1717
|
"value": "owns",
|
|
1694
1718
|
"isVerb": true,
|
|
@@ -1729,7 +1753,6 @@
|
|
|
1729
1753
|
"level": 1,
|
|
1730
1754
|
"context_index": 1,
|
|
1731
1755
|
"topLevel": true,
|
|
1732
|
-
"context_id": 2,
|
|
1733
1756
|
"metaInfo": "The mapping from from the expression being defined \"ownee is owned by owner\" to the definition phrase \"owner owns ownee\" is [{\"from\":[\"ownee\"],\"to\":[\"ownee\"]},{\"from\":[\"owner\"],\"to\":[\"owner\"]},{\"from\":[\"number\"],\"to\":[\"number\"]}]",
|
|
1734
1757
|
"touchedBy": [
|
|
1735
1758
|
"people#call2"
|
|
@@ -2181,6 +2204,9 @@
|
|
|
2181
2204
|
}
|
|
2182
2205
|
],
|
|
2183
2206
|
"learned_contextual_priorities": [],
|
|
2207
|
+
"explain_associations_details": [
|
|
2208
|
+
null
|
|
2209
|
+
],
|
|
2184
2210
|
"query": "ownee is owned by owner means owner owns ownee",
|
|
2185
2211
|
"key": {
|
|
2186
2212
|
"query": "ownee is owned by owner means owner owns ownee"
|
|
@@ -2319,7 +2345,6 @@
|
|
|
2319
2345
|
"level": 2,
|
|
2320
2346
|
"context_index": 1,
|
|
2321
2347
|
"topLevel": true,
|
|
2322
|
-
"context_id": 2,
|
|
2323
2348
|
"touchedBy": [
|
|
2324
2349
|
"people#call2"
|
|
2325
2350
|
]
|
|
@@ -2500,6 +2525,9 @@
|
|
|
2500
2525
|
}
|
|
2501
2526
|
],
|
|
2502
2527
|
"learned_contextual_priorities": [],
|
|
2528
|
+
"explain_associations_details": [
|
|
2529
|
+
null
|
|
2530
|
+
],
|
|
2503
2531
|
"query": "gender is a property type",
|
|
2504
2532
|
"key": {
|
|
2505
2533
|
"query": "gender is a property type"
|
|
@@ -2723,7 +2751,6 @@
|
|
|
2723
2751
|
"level": 2,
|
|
2724
2752
|
"context_index": 1,
|
|
2725
2753
|
"topLevel": true,
|
|
2726
|
-
"context_id": 2,
|
|
2727
2754
|
"touchedBy": [
|
|
2728
2755
|
"people#call2"
|
|
2729
2756
|
]
|
|
@@ -3014,6 +3041,9 @@
|
|
|
3014
3041
|
}
|
|
3015
3042
|
],
|
|
3016
3043
|
"learned_contextual_priorities": [],
|
|
3044
|
+
"explain_associations_details": [
|
|
3045
|
+
null
|
|
3046
|
+
],
|
|
3017
3047
|
"query": "male and female are genders",
|
|
3018
3048
|
"key": {
|
|
3019
3049
|
"query": "male and female are genders"
|
|
@@ -3186,6 +3216,22 @@
|
|
|
3186
3216
|
"types": [
|
|
3187
3217
|
"ownee"
|
|
3188
3218
|
],
|
|
3219
|
+
"isEdProperties": [
|
|
3220
|
+
"ownee",
|
|
3221
|
+
"owner"
|
|
3222
|
+
],
|
|
3223
|
+
"relationBacked": true,
|
|
3224
|
+
"orderingArgs": null,
|
|
3225
|
+
"relationArgs": [
|
|
3226
|
+
{
|
|
3227
|
+
"tag": "owner",
|
|
3228
|
+
"id": "owner"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"tag": "ownee",
|
|
3232
|
+
"id": "ownee"
|
|
3233
|
+
}
|
|
3234
|
+
],
|
|
3189
3235
|
"constraints": [
|
|
3190
3236
|
{
|
|
3191
3237
|
"property": "ownee",
|
|
@@ -3221,6 +3267,8 @@
|
|
|
3221
3267
|
},
|
|
3222
3268
|
"dead": true,
|
|
3223
3269
|
"constrained": true,
|
|
3270
|
+
"beforeTag": "owner",
|
|
3271
|
+
"afterTag": "ownee",
|
|
3224
3272
|
"owner": {
|
|
3225
3273
|
"marker": "unknown",
|
|
3226
3274
|
"implicit": true,
|
|
@@ -3256,8 +3304,7 @@
|
|
|
3256
3304
|
"dead": true,
|
|
3257
3305
|
"level": 2,
|
|
3258
3306
|
"context_index": 1,
|
|
3259
|
-
"topLevel": true
|
|
3260
|
-
"context_id": 2
|
|
3307
|
+
"topLevel": true
|
|
3261
3308
|
}
|
|
3262
3309
|
],
|
|
3263
3310
|
"generated": [
|
|
@@ -3565,6 +3612,9 @@
|
|
|
3565
3612
|
}
|
|
3566
3613
|
],
|
|
3567
3614
|
"learned_contextual_priorities": [],
|
|
3615
|
+
"explain_associations_details": [
|
|
3616
|
+
null
|
|
3617
|
+
],
|
|
3568
3618
|
"query": "ownervar is owneevar owned by",
|
|
3569
3619
|
"skipSemantics": true,
|
|
3570
3620
|
"key": {
|
|
@@ -3713,6 +3763,8 @@
|
|
|
3713
3763
|
"dead": true,
|
|
3714
3764
|
"isEd": true,
|
|
3715
3765
|
"subject": "ownee",
|
|
3766
|
+
"beforeTag": "owner",
|
|
3767
|
+
"afterTag": "ownee",
|
|
3716
3768
|
"ownee": {
|
|
3717
3769
|
"operator": {
|
|
3718
3770
|
"marker": "owned",
|
|
@@ -3773,8 +3825,7 @@
|
|
|
3773
3825
|
},
|
|
3774
3826
|
"level": 1,
|
|
3775
3827
|
"context_index": 1,
|
|
3776
|
-
"topLevel": true
|
|
3777
|
-
"context_id": 2
|
|
3828
|
+
"topLevel": true
|
|
3778
3829
|
}
|
|
3779
3830
|
],
|
|
3780
3831
|
"generated": [
|
|
@@ -4082,6 +4133,9 @@
|
|
|
4082
4133
|
}
|
|
4083
4134
|
],
|
|
4084
4135
|
"learned_contextual_priorities": [],
|
|
4136
|
+
"explain_associations_details": [
|
|
4137
|
+
null
|
|
4138
|
+
],
|
|
4085
4139
|
"query": "owneevar is owned by ownervar",
|
|
4086
4140
|
"skipSemantics": true,
|
|
4087
4141
|
"key": {
|
package/common/percentages.js
CHANGED
|
@@ -12,6 +12,7 @@ const config = {
|
|
|
12
12
|
bridges: [
|
|
13
13
|
{
|
|
14
14
|
id: "percent",
|
|
15
|
+
where: where(),
|
|
15
16
|
words: ['percent', '%'],
|
|
16
17
|
separators: '?',
|
|
17
18
|
bridge: "{ ...next(operator), modifiers: ['scale'], scale: before[0] }",
|
|
@@ -19,11 +20,12 @@ const config = {
|
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
id: "percentageOf",
|
|
23
|
+
where: where(),
|
|
22
24
|
words: ['percent', '%'],
|
|
23
25
|
bridge: "{ ...next(operator), percentage: before[0], isResponse: true, semanticIsEvaluate: true, value: after[0] }",
|
|
24
|
-
|
|
26
|
+
semantic: async ({context, e}) => {
|
|
25
27
|
const scale = context.percentage.scale
|
|
26
|
-
const number = await e(context.value)
|
|
28
|
+
const number = await e(context.value, where())
|
|
27
29
|
const percentage = number.value * scale.value / 100
|
|
28
30
|
const result = { ...number, value: percentage, evalue: percentage, word: null, text: null }
|
|
29
31
|
context.evalue = result
|