tpmkms 9.8.0-beta.8 → 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 +4 -4
- package/common/actions.js +9 -9
- package/common/askfor.instance.json +12 -184
- package/common/askfor.js +19 -11
- package/common/asking.js +13 -5
- package/common/can.instance.json +2 -18
- package/common/can.js +2 -2
- package/common/comparable.instance.json +6 -12
- package/common/concept.instance.json +8 -4
- package/common/concept.js +2 -0
- package/common/conjunction.js +6 -4
- package/common/control.js +5 -5
- package/common/countable.js +1 -0
- package/common/dateTimeSelectors.instance.json +1 -1
- package/common/dateTimeSelectors.js +1 -1
- package/common/dates.instance.json +11 -1
- package/common/dates.js +6 -1
- package/common/debug.instance.json +5 -1
- package/common/debug.js +2 -0
- package/common/dialogues.js +37 -35
- package/common/dimension.instance.json +144 -446
- package/common/dimension.js +14 -8
- package/common/drone.instance.json +43 -19
- package/common/drone.js +29 -35
- package/common/drone_v1.instance.json +13 -3
- package/common/drone_v1.js +14 -9
- package/common/evaluate.js +2 -2
- package/common/fastfood.instance.json +12 -4
- package/common/fastfood.js +27 -12
- package/common/formulas.instance.json +138 -12
- package/common/formulas.js +15 -6
- package/common/gdefaults.js +2 -71
- package/common/helpers/dialogues.js +1 -10
- package/common/helpers/properties.js +6 -10
- package/common/helpers.js +5 -2
- package/common/hierarchy.js +11 -7
- package/common/math.instance.json +141 -4
- package/common/math.js +18 -5
- package/common/menus.instance.json +6 -2
- package/common/menus.js +5 -2
- package/common/meta.js +12 -12
- package/common/nameable.js +6 -2
- package/common/ordering.instance.json +1 -2
- package/common/percentages.js +4 -2
- package/common/pipboy.instance.json +38 -27
- package/common/pipboy.js +21 -14
- package/common/properties.instance.json +2319 -560
- package/common/properties.js +146 -37
- package/common/punctuation.js +1 -0
- package/common/rates.instance.json +1 -1
- package/common/rates.js +2 -2
- package/common/reminders.instance.json +16 -0
- package/common/reminders.js +23 -19
- package/common/reports.instance.json +4 -6
- package/common/reports.js +12 -12
- package/common/sdefaults.js +11 -9
- package/common/stm.js +11 -14
- package/common/testing.js +2 -2
- package/common/time.instance.json +42 -15
- package/common/time.js +7 -6
- package/common/ui.js +5 -5
- package/common/words.js +106 -1
- package/common/wp.instance.json +10 -3
- package/common/wp.js +5 -1
- package/package.json +2 -2
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"amount is a concept",
|
|
4
4
|
"measurement modifies unit",
|
|
5
5
|
"dimension and measurement unit are concepts",
|
|
6
|
-
"unit means measurement unit",
|
|
7
6
|
{
|
|
8
7
|
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.initial) {\n bridge.initial = {}\n }\n bridge.initial['dimension'] = parent.objects[1].value\n })\n }\n })\n }"
|
|
9
8
|
},
|
|
@@ -87,29 +86,59 @@
|
|
|
87
86
|
]
|
|
88
87
|
},
|
|
89
88
|
{
|
|
90
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
89
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:201",
|
|
91
90
|
"id": "preferredUnits",
|
|
92
91
|
"isA": [
|
|
93
92
|
"verb"
|
|
94
93
|
],
|
|
95
94
|
"bridge": "{ ...next(operator), quantity: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'quantity' }] }",
|
|
96
|
-
"
|
|
95
|
+
"check": [
|
|
96
|
+
"marker",
|
|
97
|
+
"text",
|
|
98
|
+
"verbatim",
|
|
99
|
+
"value",
|
|
100
|
+
"evalue",
|
|
101
|
+
"isResponse",
|
|
102
|
+
{
|
|
103
|
+
"properties": "modifiers"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"properties": "postModifiers"
|
|
107
|
+
},
|
|
108
|
+
"quantity"
|
|
109
|
+
],
|
|
110
|
+
"semantic": "async ({context, e, api, toArray, resolveEvaluate}) => {\n const preferredUnits = await api.getPreferredUnits(context.quantity)\n if (!preferredUnits) {\n return\n }\n const from = context.quantity;\n const value = await e({ marker: 'convertToUnits', from, to: preferredUnits }, where())\n resolveEvaluate(context, value.evalue)\n }"
|
|
97
111
|
},
|
|
98
112
|
{
|
|
99
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
113
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:217",
|
|
100
114
|
"id": "useUnits",
|
|
101
115
|
"isA": [
|
|
102
116
|
"verb"
|
|
103
117
|
],
|
|
104
118
|
"bridge": "{ ...next(operator), units: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'units' }] }",
|
|
119
|
+
"check": [
|
|
120
|
+
"marker",
|
|
121
|
+
"text",
|
|
122
|
+
"verbatim",
|
|
123
|
+
"value",
|
|
124
|
+
"evalue",
|
|
125
|
+
"isResponse",
|
|
126
|
+
{
|
|
127
|
+
"properties": "modifiers"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"properties": "postModifiers"
|
|
131
|
+
},
|
|
132
|
+
"units"
|
|
133
|
+
],
|
|
105
134
|
"semantic": "({context, api}) => {\n api.setPreferredUnits(context.units)\n }"
|
|
106
135
|
},
|
|
107
136
|
{
|
|
108
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
137
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:227",
|
|
109
138
|
"id": "dimension"
|
|
110
139
|
},
|
|
111
140
|
{
|
|
112
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
141
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:231",
|
|
113
142
|
"id": "quantity",
|
|
114
143
|
"isA": [
|
|
115
144
|
"noun"
|
|
@@ -151,12 +180,44 @@
|
|
|
151
180
|
"after": [
|
|
152
181
|
"mathematical_operator"
|
|
153
182
|
],
|
|
154
|
-
"bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }"
|
|
183
|
+
"bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }",
|
|
184
|
+
"check": [
|
|
185
|
+
"marker",
|
|
186
|
+
"text",
|
|
187
|
+
"verbatim",
|
|
188
|
+
"value",
|
|
189
|
+
"evalue",
|
|
190
|
+
"isResponse",
|
|
191
|
+
{
|
|
192
|
+
"properties": "modifiers"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"properties": "postModifiers"
|
|
196
|
+
},
|
|
197
|
+
"unit",
|
|
198
|
+
"amount"
|
|
199
|
+
]
|
|
155
200
|
},
|
|
156
201
|
{
|
|
157
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
202
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:270",
|
|
158
203
|
"id": "convertToUnits",
|
|
159
204
|
"bridge": "{ ...next(operator), from: before[0], to: after[0] }",
|
|
205
|
+
"check": [
|
|
206
|
+
"marker",
|
|
207
|
+
"text",
|
|
208
|
+
"verbatim",
|
|
209
|
+
"value",
|
|
210
|
+
"evalue",
|
|
211
|
+
"isResponse",
|
|
212
|
+
{
|
|
213
|
+
"properties": "modifiers"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"properties": "postModifiers"
|
|
217
|
+
},
|
|
218
|
+
"from",
|
|
219
|
+
"to"
|
|
220
|
+
],
|
|
160
221
|
"isA": [
|
|
161
222
|
"expression",
|
|
162
223
|
"queryable"
|
|
@@ -178,7 +239,7 @@
|
|
|
178
239
|
]
|
|
179
240
|
],
|
|
180
241
|
"generatorp": "async ({context, g}) => `${await g(context.from)} ${context.word} ${await g(context.to)}`",
|
|
181
|
-
"
|
|
242
|
+
"semantic": "async ({context, api, toArray, callId, resolveEvaluate}) => {\n const from = context.from;\n const tos = toArray(context.to);\n resolveEvaluate(context, await api.convertToUnits(context, from, tos))\n }"
|
|
182
243
|
},
|
|
183
244
|
{
|
|
184
245
|
"id": "unit",
|
|
@@ -198,6 +259,7 @@
|
|
|
198
259
|
"bridges": [
|
|
199
260
|
{
|
|
200
261
|
"id": "useMeasurementSystem",
|
|
262
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:328",
|
|
201
263
|
"isA": [
|
|
202
264
|
"verb"
|
|
203
265
|
],
|
|
@@ -225,7 +287,7 @@
|
|
|
225
287
|
"semantics": [
|
|
226
288
|
{
|
|
227
289
|
"match": "({context, isA, debug}) => {\n return context.marker == 'unify' && \n context.terms.every((term) => isA(term, 'quantity')) &&\n context.terms.every((term) => term.instance)\n }",
|
|
228
|
-
"apply": "async ({context, e, unify, toEValue}) => {\n const t1 = context.terms[0]\n const t2 = context.terms[1]\n if (t1.propertyType !== t2.propertyType) {\n return\n }\n if (t1[t1.propertyType].marker !== t2[t2.propertyType].marker) {\n return\n }\n const convert = await e({ marker: 'convertToUnits', from: t2, to: t1.unit })\n const t2InT1Units = await toEValue(await toEValue(convert))\n // debug.coxunter('greg29')\n if (!await unify(t1.amount, await t2InT1Units.amount)) {\n // debugger\n }\n // debugger\n }"
|
|
290
|
+
"apply": "async ({context, e, unify, toEValue}) => {\n const t1 = context.terms[0]\n const t2 = context.terms[1]\n if (t1.propertyType !== t2.propertyType) {\n return\n }\n if (t1[t1.propertyType].marker !== t2[t2.propertyType].marker) {\n return\n }\n const convert = await e({ marker: 'convertToUnits', from: t2, to: t1.unit }, where())\n const t2InT1Units = await toEValue(await toEValue(convert))\n // debug.coxunter('greg29')\n if (!await unify(t1.amount, await t2InT1Units.amount)) {\n // debugger\n }\n // debugger\n }"
|
|
229
291
|
}
|
|
230
292
|
]
|
|
231
293
|
}
|
|
@@ -1406,298 +1468,6 @@
|
|
|
1406
1468
|
"query": "dimension and measurement unit are concepts"
|
|
1407
1469
|
}
|
|
1408
1470
|
},
|
|
1409
|
-
{
|
|
1410
|
-
"metadata": {
|
|
1411
|
-
"opChoices": [
|
|
1412
|
-
{
|
|
1413
|
-
"op": [
|
|
1414
|
-
"measurement_unit",
|
|
1415
|
-
0
|
|
1416
|
-
],
|
|
1417
|
-
"ops": [
|
|
1418
|
-
[
|
|
1419
|
-
"means",
|
|
1420
|
-
0
|
|
1421
|
-
],
|
|
1422
|
-
[
|
|
1423
|
-
"measurement",
|
|
1424
|
-
0
|
|
1425
|
-
],
|
|
1426
|
-
[
|
|
1427
|
-
"measurement_unit",
|
|
1428
|
-
0
|
|
1429
|
-
],
|
|
1430
|
-
[
|
|
1431
|
-
"unit",
|
|
1432
|
-
0
|
|
1433
|
-
]
|
|
1434
|
-
],
|
|
1435
|
-
"counter": 1
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"op": [
|
|
1439
|
-
"unit",
|
|
1440
|
-
0
|
|
1441
|
-
],
|
|
1442
|
-
"ops": [
|
|
1443
|
-
[
|
|
1444
|
-
"means",
|
|
1445
|
-
0
|
|
1446
|
-
],
|
|
1447
|
-
[
|
|
1448
|
-
"unit",
|
|
1449
|
-
0
|
|
1450
|
-
]
|
|
1451
|
-
],
|
|
1452
|
-
"counter": 2
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"op": [
|
|
1456
|
-
"means",
|
|
1457
|
-
0
|
|
1458
|
-
],
|
|
1459
|
-
"ops": [
|
|
1460
|
-
[
|
|
1461
|
-
"means",
|
|
1462
|
-
0
|
|
1463
|
-
]
|
|
1464
|
-
],
|
|
1465
|
-
"counter": 3
|
|
1466
|
-
}
|
|
1467
|
-
]
|
|
1468
|
-
},
|
|
1469
|
-
"trace": "undefined",
|
|
1470
|
-
"contexts": [
|
|
1471
|
-
{
|
|
1472
|
-
"marker": "means",
|
|
1473
|
-
"value": "means",
|
|
1474
|
-
"default": true,
|
|
1475
|
-
"text": "unit means measurement unit",
|
|
1476
|
-
"word": "means",
|
|
1477
|
-
"range": {
|
|
1478
|
-
"start": 0,
|
|
1479
|
-
"end": 26
|
|
1480
|
-
},
|
|
1481
|
-
"dead": true,
|
|
1482
|
-
"from": {
|
|
1483
|
-
"value": "unit",
|
|
1484
|
-
"number": "one",
|
|
1485
|
-
"text": "unit",
|
|
1486
|
-
"marker": "unit",
|
|
1487
|
-
"word": "unit",
|
|
1488
|
-
"range": {
|
|
1489
|
-
"start": 0,
|
|
1490
|
-
"end": 3
|
|
1491
|
-
},
|
|
1492
|
-
"dead": true,
|
|
1493
|
-
"level": 1
|
|
1494
|
-
},
|
|
1495
|
-
"to": {
|
|
1496
|
-
"value": "measurement_unit",
|
|
1497
|
-
"number": "one",
|
|
1498
|
-
"text": "measurement unit",
|
|
1499
|
-
"marker": "measurement_unit",
|
|
1500
|
-
"word": "unit",
|
|
1501
|
-
"range": {
|
|
1502
|
-
"start": 11,
|
|
1503
|
-
"end": 26
|
|
1504
|
-
},
|
|
1505
|
-
"types": [
|
|
1506
|
-
"measurement_unit",
|
|
1507
|
-
"unit"
|
|
1508
|
-
],
|
|
1509
|
-
"modifier_measurement": {
|
|
1510
|
-
"value": "measurement",
|
|
1511
|
-
"number": "one",
|
|
1512
|
-
"text": "measurement",
|
|
1513
|
-
"marker": "measurement",
|
|
1514
|
-
"word": "measurement",
|
|
1515
|
-
"range": {
|
|
1516
|
-
"start": 11,
|
|
1517
|
-
"end": 21
|
|
1518
|
-
},
|
|
1519
|
-
"types": [
|
|
1520
|
-
"measurement"
|
|
1521
|
-
],
|
|
1522
|
-
"level": 0
|
|
1523
|
-
},
|
|
1524
|
-
"atomic": true,
|
|
1525
|
-
"dead": true,
|
|
1526
|
-
"compatible_types": [
|
|
1527
|
-
"unit"
|
|
1528
|
-
],
|
|
1529
|
-
"modifiers": [
|
|
1530
|
-
"modifier_measurement"
|
|
1531
|
-
],
|
|
1532
|
-
"level": 0
|
|
1533
|
-
},
|
|
1534
|
-
"level": 1,
|
|
1535
|
-
"context_index": 1,
|
|
1536
|
-
"topLevel": true,
|
|
1537
|
-
"metaInfo": "The mapping from from the expression being defined \"unit\" to the definition phrase \"measurement unit\" is [{\"from\":[\"number\"],\"to\":[\"number\"]}]",
|
|
1538
|
-
"touchedBy": [
|
|
1539
|
-
"dimension#call2"
|
|
1540
|
-
]
|
|
1541
|
-
}
|
|
1542
|
-
],
|
|
1543
|
-
"generated": [
|
|
1544
|
-
""
|
|
1545
|
-
],
|
|
1546
|
-
"paraphrases": [
|
|
1547
|
-
"unit means measurement unit"
|
|
1548
|
-
],
|
|
1549
|
-
"paraphrasesParenthesized": [],
|
|
1550
|
-
"generatedParenthesized": [],
|
|
1551
|
-
"responses": [
|
|
1552
|
-
""
|
|
1553
|
-
],
|
|
1554
|
-
"associations": [],
|
|
1555
|
-
"summaries": [
|
|
1556
|
-
{
|
|
1557
|
-
"summaries": [
|
|
1558
|
-
{
|
|
1559
|
-
"operators": [
|
|
1560
|
-
{
|
|
1561
|
-
"marker": [
|
|
1562
|
-
"unit",
|
|
1563
|
-
0
|
|
1564
|
-
],
|
|
1565
|
-
"range": {
|
|
1566
|
-
"start": 0,
|
|
1567
|
-
"end": 3
|
|
1568
|
-
}
|
|
1569
|
-
},
|
|
1570
|
-
{
|
|
1571
|
-
"marker": [
|
|
1572
|
-
"means",
|
|
1573
|
-
0
|
|
1574
|
-
],
|
|
1575
|
-
"range": {
|
|
1576
|
-
"start": 5,
|
|
1577
|
-
"end": 9
|
|
1578
|
-
}
|
|
1579
|
-
},
|
|
1580
|
-
{
|
|
1581
|
-
"marker": [
|
|
1582
|
-
"measurement",
|
|
1583
|
-
0
|
|
1584
|
-
],
|
|
1585
|
-
"range": {
|
|
1586
|
-
"start": 11,
|
|
1587
|
-
"end": 21
|
|
1588
|
-
}
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"marker": [
|
|
1592
|
-
"unit",
|
|
1593
|
-
0
|
|
1594
|
-
],
|
|
1595
|
-
"range": {
|
|
1596
|
-
"start": 23,
|
|
1597
|
-
"end": 26
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
],
|
|
1601
|
-
"counter": 1
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
"operators": [
|
|
1605
|
-
{
|
|
1606
|
-
"marker": [
|
|
1607
|
-
"unit",
|
|
1608
|
-
0
|
|
1609
|
-
],
|
|
1610
|
-
"range": {
|
|
1611
|
-
"start": 0,
|
|
1612
|
-
"end": 3
|
|
1613
|
-
}
|
|
1614
|
-
},
|
|
1615
|
-
{
|
|
1616
|
-
"marker": [
|
|
1617
|
-
"means",
|
|
1618
|
-
0
|
|
1619
|
-
],
|
|
1620
|
-
"range": {
|
|
1621
|
-
"start": 5,
|
|
1622
|
-
"end": 9
|
|
1623
|
-
}
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
"marker": [
|
|
1627
|
-
"measurement_unit",
|
|
1628
|
-
0
|
|
1629
|
-
],
|
|
1630
|
-
"range": {
|
|
1631
|
-
"start": 11,
|
|
1632
|
-
"end": 26
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
],
|
|
1636
|
-
"counter": 2
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
"operators": [
|
|
1640
|
-
{
|
|
1641
|
-
"marker": [
|
|
1642
|
-
"unit",
|
|
1643
|
-
1
|
|
1644
|
-
],
|
|
1645
|
-
"range": {
|
|
1646
|
-
"start": 0,
|
|
1647
|
-
"end": 3
|
|
1648
|
-
}
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"marker": [
|
|
1652
|
-
"means",
|
|
1653
|
-
0
|
|
1654
|
-
],
|
|
1655
|
-
"range": {
|
|
1656
|
-
"start": 5,
|
|
1657
|
-
"end": 9
|
|
1658
|
-
}
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
"marker": [
|
|
1662
|
-
"measurement_unit",
|
|
1663
|
-
0
|
|
1664
|
-
],
|
|
1665
|
-
"range": {
|
|
1666
|
-
"start": 11,
|
|
1667
|
-
"end": 26
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
],
|
|
1671
|
-
"counter": 3
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"operators": [
|
|
1675
|
-
{
|
|
1676
|
-
"marker": [
|
|
1677
|
-
"means",
|
|
1678
|
-
1
|
|
1679
|
-
],
|
|
1680
|
-
"range": {
|
|
1681
|
-
"start": 0,
|
|
1682
|
-
"end": 26
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
],
|
|
1686
|
-
"counter": 4
|
|
1687
|
-
}
|
|
1688
|
-
],
|
|
1689
|
-
"length": 1
|
|
1690
|
-
}
|
|
1691
|
-
],
|
|
1692
|
-
"learned_contextual_priorities": [],
|
|
1693
|
-
"explain_associations_details": [
|
|
1694
|
-
null
|
|
1695
|
-
],
|
|
1696
|
-
"query": "unit means measurement unit",
|
|
1697
|
-
"key": {
|
|
1698
|
-
"query": "unit means measurement unit"
|
|
1699
|
-
}
|
|
1700
|
-
},
|
|
1701
1471
|
{
|
|
1702
1472
|
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.initial) {\n bridge.initial = {}\n }\n bridge.initial['dimension'] = parent.objects[1].value\n })\n }\n })\n }"
|
|
1703
1473
|
},
|
|
@@ -5191,7 +4961,7 @@
|
|
|
5191
4961
|
],
|
|
5192
4962
|
"generators": [
|
|
5193
4963
|
{
|
|
5194
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
4964
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:187"
|
|
5195
4965
|
}
|
|
5196
4966
|
],
|
|
5197
4967
|
"bridges": [
|
|
@@ -5219,27 +4989,57 @@
|
|
|
5219
4989
|
]
|
|
5220
4990
|
},
|
|
5221
4991
|
{
|
|
5222
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
4992
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:201",
|
|
5223
4993
|
"id": "preferredUnits",
|
|
5224
4994
|
"isA": [
|
|
5225
4995
|
"verb"
|
|
5226
4996
|
],
|
|
5227
|
-
"bridge": "{ ...next(operator), quantity: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'quantity' }] }"
|
|
4997
|
+
"bridge": "{ ...next(operator), quantity: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'quantity' }] }",
|
|
4998
|
+
"check": [
|
|
4999
|
+
"marker",
|
|
5000
|
+
"text",
|
|
5001
|
+
"verbatim",
|
|
5002
|
+
"value",
|
|
5003
|
+
"evalue",
|
|
5004
|
+
"isResponse",
|
|
5005
|
+
{
|
|
5006
|
+
"properties": "modifiers"
|
|
5007
|
+
},
|
|
5008
|
+
{
|
|
5009
|
+
"properties": "postModifiers"
|
|
5010
|
+
},
|
|
5011
|
+
"quantity"
|
|
5012
|
+
]
|
|
5228
5013
|
},
|
|
5229
5014
|
{
|
|
5230
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
5015
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:217",
|
|
5231
5016
|
"id": "useUnits",
|
|
5232
5017
|
"isA": [
|
|
5233
5018
|
"verb"
|
|
5234
5019
|
],
|
|
5235
|
-
"bridge": "{ ...next(operator), units: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'units' }] }"
|
|
5020
|
+
"bridge": "{ ...next(operator), units: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'units' }] }",
|
|
5021
|
+
"check": [
|
|
5022
|
+
"marker",
|
|
5023
|
+
"text",
|
|
5024
|
+
"verbatim",
|
|
5025
|
+
"value",
|
|
5026
|
+
"evalue",
|
|
5027
|
+
"isResponse",
|
|
5028
|
+
{
|
|
5029
|
+
"properties": "modifiers"
|
|
5030
|
+
},
|
|
5031
|
+
{
|
|
5032
|
+
"properties": "postModifiers"
|
|
5033
|
+
},
|
|
5034
|
+
"units"
|
|
5035
|
+
]
|
|
5236
5036
|
},
|
|
5237
5037
|
{
|
|
5238
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
5038
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:227",
|
|
5239
5039
|
"id": "dimension"
|
|
5240
5040
|
},
|
|
5241
5041
|
{
|
|
5242
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
5042
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:231",
|
|
5243
5043
|
"id": "quantity",
|
|
5244
5044
|
"isA": [
|
|
5245
5045
|
"noun"
|
|
@@ -5285,12 +5085,44 @@
|
|
|
5285
5085
|
"after": [
|
|
5286
5086
|
"mathematical_operator"
|
|
5287
5087
|
],
|
|
5288
|
-
"bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }"
|
|
5088
|
+
"bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }",
|
|
5089
|
+
"check": [
|
|
5090
|
+
"marker",
|
|
5091
|
+
"text",
|
|
5092
|
+
"verbatim",
|
|
5093
|
+
"value",
|
|
5094
|
+
"evalue",
|
|
5095
|
+
"isResponse",
|
|
5096
|
+
{
|
|
5097
|
+
"properties": "modifiers"
|
|
5098
|
+
},
|
|
5099
|
+
{
|
|
5100
|
+
"properties": "postModifiers"
|
|
5101
|
+
},
|
|
5102
|
+
"unit",
|
|
5103
|
+
"amount"
|
|
5104
|
+
]
|
|
5289
5105
|
},
|
|
5290
5106
|
{
|
|
5291
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
5107
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:270",
|
|
5292
5108
|
"id": "convertToUnits",
|
|
5293
5109
|
"bridge": "{ ...next(operator), from: before[0], to: after[0] }",
|
|
5110
|
+
"check": [
|
|
5111
|
+
"marker",
|
|
5112
|
+
"text",
|
|
5113
|
+
"verbatim",
|
|
5114
|
+
"value",
|
|
5115
|
+
"evalue",
|
|
5116
|
+
"isResponse",
|
|
5117
|
+
{
|
|
5118
|
+
"properties": "modifiers"
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
"properties": "postModifiers"
|
|
5122
|
+
},
|
|
5123
|
+
"from",
|
|
5124
|
+
"to"
|
|
5125
|
+
],
|
|
5294
5126
|
"isA": [
|
|
5295
5127
|
"expression",
|
|
5296
5128
|
"queryable"
|
|
@@ -5331,6 +5163,7 @@
|
|
|
5331
5163
|
"bridges": [
|
|
5332
5164
|
{
|
|
5333
5165
|
"id": "useMeasurementSystem",
|
|
5166
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:328",
|
|
5334
5167
|
"isA": [
|
|
5335
5168
|
"verb"
|
|
5336
5169
|
],
|
|
@@ -5969,141 +5802,6 @@
|
|
|
5969
5802
|
],
|
|
5970
5803
|
"length": 1
|
|
5971
5804
|
},
|
|
5972
|
-
{
|
|
5973
|
-
"summaries": [
|
|
5974
|
-
{
|
|
5975
|
-
"operators": [
|
|
5976
|
-
{
|
|
5977
|
-
"marker": [
|
|
5978
|
-
"unit",
|
|
5979
|
-
0
|
|
5980
|
-
],
|
|
5981
|
-
"range": {
|
|
5982
|
-
"start": 0,
|
|
5983
|
-
"end": 3
|
|
5984
|
-
}
|
|
5985
|
-
},
|
|
5986
|
-
{
|
|
5987
|
-
"marker": [
|
|
5988
|
-
"means",
|
|
5989
|
-
0
|
|
5990
|
-
],
|
|
5991
|
-
"range": {
|
|
5992
|
-
"start": 5,
|
|
5993
|
-
"end": 9
|
|
5994
|
-
}
|
|
5995
|
-
},
|
|
5996
|
-
{
|
|
5997
|
-
"marker": [
|
|
5998
|
-
"measurement",
|
|
5999
|
-
0
|
|
6000
|
-
],
|
|
6001
|
-
"range": {
|
|
6002
|
-
"start": 11,
|
|
6003
|
-
"end": 21
|
|
6004
|
-
}
|
|
6005
|
-
},
|
|
6006
|
-
{
|
|
6007
|
-
"marker": [
|
|
6008
|
-
"unit",
|
|
6009
|
-
0
|
|
6010
|
-
],
|
|
6011
|
-
"range": {
|
|
6012
|
-
"start": 23,
|
|
6013
|
-
"end": 26
|
|
6014
|
-
}
|
|
6015
|
-
}
|
|
6016
|
-
],
|
|
6017
|
-
"counter": 1
|
|
6018
|
-
},
|
|
6019
|
-
{
|
|
6020
|
-
"operators": [
|
|
6021
|
-
{
|
|
6022
|
-
"marker": [
|
|
6023
|
-
"unit",
|
|
6024
|
-
0
|
|
6025
|
-
],
|
|
6026
|
-
"range": {
|
|
6027
|
-
"start": 0,
|
|
6028
|
-
"end": 3
|
|
6029
|
-
}
|
|
6030
|
-
},
|
|
6031
|
-
{
|
|
6032
|
-
"marker": [
|
|
6033
|
-
"means",
|
|
6034
|
-
0
|
|
6035
|
-
],
|
|
6036
|
-
"range": {
|
|
6037
|
-
"start": 5,
|
|
6038
|
-
"end": 9
|
|
6039
|
-
}
|
|
6040
|
-
},
|
|
6041
|
-
{
|
|
6042
|
-
"marker": [
|
|
6043
|
-
"measurement_unit",
|
|
6044
|
-
0
|
|
6045
|
-
],
|
|
6046
|
-
"range": {
|
|
6047
|
-
"start": 11,
|
|
6048
|
-
"end": 26
|
|
6049
|
-
}
|
|
6050
|
-
}
|
|
6051
|
-
],
|
|
6052
|
-
"counter": 2
|
|
6053
|
-
},
|
|
6054
|
-
{
|
|
6055
|
-
"operators": [
|
|
6056
|
-
{
|
|
6057
|
-
"marker": [
|
|
6058
|
-
"unit",
|
|
6059
|
-
1
|
|
6060
|
-
],
|
|
6061
|
-
"range": {
|
|
6062
|
-
"start": 0,
|
|
6063
|
-
"end": 3
|
|
6064
|
-
}
|
|
6065
|
-
},
|
|
6066
|
-
{
|
|
6067
|
-
"marker": [
|
|
6068
|
-
"means",
|
|
6069
|
-
0
|
|
6070
|
-
],
|
|
6071
|
-
"range": {
|
|
6072
|
-
"start": 5,
|
|
6073
|
-
"end": 9
|
|
6074
|
-
}
|
|
6075
|
-
},
|
|
6076
|
-
{
|
|
6077
|
-
"marker": [
|
|
6078
|
-
"measurement_unit",
|
|
6079
|
-
0
|
|
6080
|
-
],
|
|
6081
|
-
"range": {
|
|
6082
|
-
"start": 11,
|
|
6083
|
-
"end": 26
|
|
6084
|
-
}
|
|
6085
|
-
}
|
|
6086
|
-
],
|
|
6087
|
-
"counter": 3
|
|
6088
|
-
},
|
|
6089
|
-
{
|
|
6090
|
-
"operators": [
|
|
6091
|
-
{
|
|
6092
|
-
"marker": [
|
|
6093
|
-
"means",
|
|
6094
|
-
1
|
|
6095
|
-
],
|
|
6096
|
-
"range": {
|
|
6097
|
-
"start": 0,
|
|
6098
|
-
"end": 26
|
|
6099
|
-
}
|
|
6100
|
-
}
|
|
6101
|
-
],
|
|
6102
|
-
"counter": 4
|
|
6103
|
-
}
|
|
6104
|
-
],
|
|
6105
|
-
"length": 1
|
|
6106
|
-
},
|
|
6107
5805
|
{
|
|
6108
5806
|
"summaries": [
|
|
6109
5807
|
{
|