ekms 9.8.0-beta.8 → 9.9.0-beta.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.
Files changed (78) hide show
  1. package/common/actions.instance.json +6 -6
  2. package/common/actions.js +10 -10
  3. package/common/angle.instance.json +12 -0
  4. package/common/askfor.instance.json +12 -184
  5. package/common/askfor.js +19 -11
  6. package/common/asking.js +13 -5
  7. package/common/can.instance.json +2 -18
  8. package/common/can.js +2 -2
  9. package/common/comparable.instance.json +6 -12
  10. package/common/compass.js +1 -1
  11. package/common/concept.instance.json +8 -4
  12. package/common/concept.js +2 -0
  13. package/common/conjunction.js +9 -7
  14. package/common/control.js +5 -5
  15. package/common/countable.js +1 -0
  16. package/common/dateTimeSelectors.instance.json +1 -1
  17. package/common/dateTimeSelectors.js +1 -1
  18. package/common/dates.instance.json +11 -1
  19. package/common/dates.js +6 -1
  20. package/common/debug.instance.json +9 -1
  21. package/common/debug.js +4 -0
  22. package/common/dialogues.js +37 -35
  23. package/common/dimension.instance.json +198 -477
  24. package/common/dimension.js +48 -24
  25. package/common/drone.instance.json +89 -19
  26. package/common/drone.js +43 -41
  27. package/common/drone_v1.instance.json +13 -3
  28. package/common/drone_v1.js +20 -15
  29. package/common/evaluate.js +3 -3
  30. package/common/fastfood.instance.json +12 -4
  31. package/common/fastfood.js +27 -12
  32. package/common/formulas.instance.json +138 -12
  33. package/common/formulas.js +15 -6
  34. package/common/gdefaults.js +2 -71
  35. package/common/helpers/dialogues.js +1 -10
  36. package/common/helpers/properties.js +10 -7
  37. package/common/helpers.js +5 -2
  38. package/common/hierarchy.js +11 -7
  39. package/common/latin.instance.json +4 -4
  40. package/common/latin.js +2 -2
  41. package/common/length.instance.json +84 -0
  42. package/common/linear_orderings.instance.json +1 -0
  43. package/common/linear_orderings.js +90 -0
  44. package/common/linear_orderings.test.json +1 -0
  45. package/common/math.instance.json +141 -4
  46. package/common/math.js +18 -7
  47. package/common/menus.instance.json +6 -2
  48. package/common/menus.js +5 -2
  49. package/common/meta.js +12 -12
  50. package/common/nameable.js +6 -2
  51. package/common/numbers.instance.json +3 -0
  52. package/common/numbers.js +56 -32
  53. package/common/ordering.instance.json +1 -2
  54. package/common/percentages.js +4 -2
  55. package/common/pipboy.instance.json +38 -27
  56. package/common/pipboy.js +21 -14
  57. package/common/pressure.instance.json +6 -0
  58. package/common/properties.instance.json +2575 -528
  59. package/common/properties.js +211 -41
  60. package/common/punctuation.js +1 -0
  61. package/common/rates.instance.json +1 -1
  62. package/common/rates.js +2 -2
  63. package/common/reminders.instance.json +16 -0
  64. package/common/reminders.js +23 -19
  65. package/common/reports.instance.json +4 -6
  66. package/common/reports.js +12 -12
  67. package/common/sdefaults.js +11 -9
  68. package/common/stm.js +11 -14
  69. package/common/temperature.instance.json +21 -0
  70. package/common/testing.js +2 -2
  71. package/common/time.instance.json +87 -15
  72. package/common/time.js +7 -6
  73. package/common/ui.js +5 -5
  74. package/common/weight.instance.json +27 -0
  75. package/common/words.js +106 -1
  76. package/common/wp.instance.json +10 -3
  77. package/common/wp.js +5 -1
  78. package/package.json +5 -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,32 +86,63 @@
87
86
  ]
88
87
  },
89
88
  {
90
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:200",
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
- "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 })\n resolveEvaluate(context, value.evalue)\n }"
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:215",
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:224",
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:228",
141
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:231",
113
142
  "id": "quantity",
114
143
  "isA": [
115
- "noun"
144
+ "noun",
145
+ "linearlyOrdered"
116
146
  ],
117
147
  "check": [
118
148
  "marker",
@@ -151,12 +181,50 @@
151
181
  "after": [
152
182
  "mathematical_operator"
153
183
  ],
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 }"
184
+ "localHierarchy": [
185
+ [
186
+ "linearOrderedRange",
187
+ "number"
188
+ ]
189
+ ],
190
+ "bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n rangeableWith: ['quantity'],\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }",
191
+ "check": [
192
+ "marker",
193
+ "text",
194
+ "verbatim",
195
+ "value",
196
+ "evalue",
197
+ "isResponse",
198
+ {
199
+ "properties": "modifiers"
200
+ },
201
+ {
202
+ "properties": "postModifiers"
203
+ },
204
+ "unit",
205
+ "amount"
206
+ ]
155
207
  },
156
208
  {
157
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:266",
209
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:271",
158
210
  "id": "convertToUnits",
159
211
  "bridge": "{ ...next(operator), from: before[0], to: after[0] }",
212
+ "check": [
213
+ "marker",
214
+ "text",
215
+ "verbatim",
216
+ "value",
217
+ "evalue",
218
+ "isResponse",
219
+ {
220
+ "properties": "modifiers"
221
+ },
222
+ {
223
+ "properties": "postModifiers"
224
+ },
225
+ "from",
226
+ "to"
227
+ ],
160
228
  "isA": [
161
229
  "expression",
162
230
  "queryable"
@@ -178,7 +246,7 @@
178
246
  ]
179
247
  ],
180
248
  "generatorp": "async ({context, g}) => `${await g(context.from)} ${context.word} ${await g(context.to)}`",
181
- "evaluator": "async ({context, api, toArray, resolveEvaluate}) => {\n const from = context.from;\n const tos = toArray(context.to);\n resolveEvaluate(context, await api.convertToUnits(context, from, tos))\n }"
249
+ "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
250
  },
183
251
  {
184
252
  "id": "unit",
@@ -198,6 +266,7 @@
198
266
  "bridges": [
199
267
  {
200
268
  "id": "useMeasurementSystem",
269
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:329",
201
270
  "isA": [
202
271
  "verb"
203
272
  ],
@@ -224,8 +293,12 @@
224
293
  {
225
294
  "semantics": [
226
295
  {
227
- "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 }"
296
+ "match": "({context, isA}) => {\n if (context.marker == 'linearlyOrderedCompare') {\n const terms = [context.left, context.right]\n return terms.every((term) => isA(term, 'quantity')) && terms.every((term) => term.instance)\n }\n }",
297
+ "apply": "async ({context, toFinalValue, toEValue, compare, resolveEvaluate, e}) => {\n debugger\n const { left, right } = context\n if (left.propertyType !== right.propertyType) {\n return\n }\n const convert = await e({ marker: 'convertToUnits', from: right, to: left.unit }, where())\n const rightInLeftUnits = await toEValue(convert)\n resolveEvaluate(context, await compare(left.amount, await rightInLeftUnits.amount))\n }"
298
+ },
299
+ {
300
+ "match": "({context, isA, debug}) => {\n if (context.marker !== 'unify') {\n return\n }\n if (context.terms[0].marker == 'linearOrderedRange') {\n } else {\n return context.terms.every((term) => isA(term, 'quantity')) && context.terms.every((term) => term.instance)\n }\n }",
301
+ "apply": "async ({context, e, debug, unify, resolveEvaluate, toEValue}) => {\n const t1 = context.terms[0]\n const t2 = context.terms[1]\n if (t1.propertyType !== t2.propertyType) {\n return\n }\n const convert = await e({ marker: 'convertToUnits', from: t2, to: t1.unit }, where())\n const t2InT1Units = await toEValue(convert)\n resolveEvaluate(context, await unify(t1.amount, await t2InT1Units.amount))\n }"
229
302
  }
230
303
  ]
231
304
  }
@@ -1302,388 +1375,96 @@
1302
1375
  ],
1303
1376
  "range": {
1304
1377
  "start": 14,
1305
- "end": 29
1306
- }
1307
- },
1308
- {
1309
- "marker": [
1310
- "is",
1311
- 0
1312
- ],
1313
- "range": {
1314
- "start": 31,
1315
- "end": 33
1316
- }
1317
- },
1318
- {
1319
- "marker": [
1320
- "unknown",
1321
- 0
1322
- ],
1323
- "range": {
1324
- "start": 35,
1325
- "end": 42
1326
- }
1327
- }
1328
- ],
1329
- "counter": 4
1330
- },
1331
- {
1332
- "operators": [
1333
- {
1334
- "marker": [
1335
- "list",
1336
- 1
1337
- ],
1338
- "range": {
1339
- "start": 0,
1340
- "end": 29
1341
- }
1342
- },
1343
- {
1344
- "marker": [
1345
- "is",
1346
- 0
1347
- ],
1348
- "range": {
1349
- "start": 31,
1350
- "end": 33
1351
- }
1352
- },
1353
- {
1354
- "marker": [
1355
- "unknown",
1356
- 0
1357
- ],
1358
- "range": {
1359
- "start": 35,
1360
- "end": 42
1361
- }
1362
- }
1363
- ],
1364
- "counter": 5
1365
- },
1366
- {
1367
- "operators": [
1368
- {
1369
- "marker": [
1370
- "is",
1371
- 1
1372
- ],
1373
- "range": {
1374
- "start": 0,
1375
- "end": 42
1376
- }
1377
- }
1378
- ],
1379
- "counter": 6
1380
- },
1381
- {
1382
- "operators": [
1383
- {
1384
- "marker": [
1385
- "is",
1386
- 2
1387
- ],
1388
- "range": {
1389
- "start": 0,
1390
- "end": 42
1391
- }
1392
- }
1393
- ],
1394
- "counter": 7
1395
- }
1396
- ],
1397
- "length": 1
1398
- }
1399
- ],
1400
- "learned_contextual_priorities": [],
1401
- "explain_associations_details": [
1402
- null
1403
- ],
1404
- "query": "dimension and measurement unit are concepts",
1405
- "key": {
1406
- "query": "dimension and measurement unit are concepts"
1407
- }
1408
- },
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
1378
+ "end": 29
1578
1379
  }
1579
1380
  },
1580
1381
  {
1581
1382
  "marker": [
1582
- "measurement",
1383
+ "is",
1583
1384
  0
1584
1385
  ],
1585
1386
  "range": {
1586
- "start": 11,
1587
- "end": 21
1387
+ "start": 31,
1388
+ "end": 33
1588
1389
  }
1589
1390
  },
1590
1391
  {
1591
1392
  "marker": [
1592
- "unit",
1393
+ "unknown",
1593
1394
  0
1594
1395
  ],
1595
1396
  "range": {
1596
- "start": 23,
1597
- "end": 26
1397
+ "start": 35,
1398
+ "end": 42
1598
1399
  }
1599
1400
  }
1600
1401
  ],
1601
- "counter": 1
1402
+ "counter": 4
1602
1403
  },
1603
1404
  {
1604
1405
  "operators": [
1605
1406
  {
1606
1407
  "marker": [
1607
- "unit",
1608
- 0
1408
+ "list",
1409
+ 1
1609
1410
  ],
1610
1411
  "range": {
1611
1412
  "start": 0,
1612
- "end": 3
1413
+ "end": 29
1613
1414
  }
1614
1415
  },
1615
1416
  {
1616
1417
  "marker": [
1617
- "means",
1418
+ "is",
1618
1419
  0
1619
1420
  ],
1620
1421
  "range": {
1621
- "start": 5,
1622
- "end": 9
1422
+ "start": 31,
1423
+ "end": 33
1623
1424
  }
1624
1425
  },
1625
1426
  {
1626
1427
  "marker": [
1627
- "measurement_unit",
1428
+ "unknown",
1628
1429
  0
1629
1430
  ],
1630
1431
  "range": {
1631
- "start": 11,
1632
- "end": 26
1432
+ "start": 35,
1433
+ "end": 42
1633
1434
  }
1634
1435
  }
1635
1436
  ],
1636
- "counter": 2
1437
+ "counter": 5
1637
1438
  },
1638
1439
  {
1639
1440
  "operators": [
1640
1441
  {
1641
1442
  "marker": [
1642
- "unit",
1443
+ "is",
1643
1444
  1
1644
1445
  ],
1645
1446
  "range": {
1646
1447
  "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
1448
+ "end": 42
1668
1449
  }
1669
1450
  }
1670
1451
  ],
1671
- "counter": 3
1452
+ "counter": 6
1672
1453
  },
1673
1454
  {
1674
1455
  "operators": [
1675
1456
  {
1676
1457
  "marker": [
1677
- "means",
1678
- 1
1458
+ "is",
1459
+ 2
1679
1460
  ],
1680
1461
  "range": {
1681
1462
  "start": 0,
1682
- "end": 26
1463
+ "end": 42
1683
1464
  }
1684
1465
  }
1685
1466
  ],
1686
- "counter": 4
1467
+ "counter": 7
1687
1468
  }
1688
1469
  ],
1689
1470
  "length": 1
@@ -1693,9 +1474,9 @@
1693
1474
  "explain_associations_details": [
1694
1475
  null
1695
1476
  ],
1696
- "query": "unit means measurement unit",
1477
+ "query": "dimension and measurement unit are concepts",
1697
1478
  "key": {
1698
- "query": "unit means measurement unit"
1479
+ "query": "dimension and measurement unit are concepts"
1699
1480
  }
1700
1481
  },
1701
1482
  {
@@ -5191,7 +4972,7 @@
5191
4972
  ],
5192
4973
  "generators": [
5193
4974
  {
5194
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:186"
4975
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:187"
5195
4976
  }
5196
4977
  ],
5197
4978
  "bridges": [
@@ -5219,30 +5000,61 @@
5219
5000
  ]
5220
5001
  },
5221
5002
  {
5222
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:200",
5003
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:201",
5223
5004
  "id": "preferredUnits",
5224
5005
  "isA": [
5225
5006
  "verb"
5226
5007
  ],
5227
- "bridge": "{ ...next(operator), quantity: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'quantity' }] }"
5008
+ "bridge": "{ ...next(operator), quantity: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'quantity' }] }",
5009
+ "check": [
5010
+ "marker",
5011
+ "text",
5012
+ "verbatim",
5013
+ "value",
5014
+ "evalue",
5015
+ "isResponse",
5016
+ {
5017
+ "properties": "modifiers"
5018
+ },
5019
+ {
5020
+ "properties": "postModifiers"
5021
+ },
5022
+ "quantity"
5023
+ ]
5228
5024
  },
5229
5025
  {
5230
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:215",
5026
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:217",
5231
5027
  "id": "useUnits",
5232
5028
  "isA": [
5233
5029
  "verb"
5234
5030
  ],
5235
- "bridge": "{ ...next(operator), units: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'units' }] }"
5031
+ "bridge": "{ ...next(operator), units: after[0], operator: operator, interpolate: [{ property: 'operator' }, { property: 'units' }] }",
5032
+ "check": [
5033
+ "marker",
5034
+ "text",
5035
+ "verbatim",
5036
+ "value",
5037
+ "evalue",
5038
+ "isResponse",
5039
+ {
5040
+ "properties": "modifiers"
5041
+ },
5042
+ {
5043
+ "properties": "postModifiers"
5044
+ },
5045
+ "units"
5046
+ ]
5236
5047
  },
5237
5048
  {
5238
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:224",
5049
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:227",
5239
5050
  "id": "dimension"
5240
5051
  },
5241
5052
  {
5242
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:228",
5053
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:231",
5243
5054
  "id": "quantity",
5244
5055
  "isA": [
5245
- "noun"
5056
+ "noun",
5057
+ "linearlyOrdered"
5246
5058
  ],
5247
5059
  "check": [
5248
5060
  "marker",
@@ -5285,12 +5097,50 @@
5285
5097
  "after": [
5286
5098
  "mathematical_operator"
5287
5099
  ],
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 }"
5100
+ "localHierarchy": [
5101
+ [
5102
+ "linearOrderedRange",
5103
+ "number"
5104
+ ]
5105
+ ],
5106
+ "bridge": "{ \n marker: next(operator('quantity')), \n dead: true, \n instance: true,\n rangeableWith: ['quantity'],\n unit: after[0], \n amount: before[0], \n interpolate: [ { property: 'amount' }, { property: 'unit' } ] \n }",
5107
+ "check": [
5108
+ "marker",
5109
+ "text",
5110
+ "verbatim",
5111
+ "value",
5112
+ "evalue",
5113
+ "isResponse",
5114
+ {
5115
+ "properties": "modifiers"
5116
+ },
5117
+ {
5118
+ "properties": "postModifiers"
5119
+ },
5120
+ "unit",
5121
+ "amount"
5122
+ ]
5289
5123
  },
5290
5124
  {
5291
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:266",
5125
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:271",
5292
5126
  "id": "convertToUnits",
5293
5127
  "bridge": "{ ...next(operator), from: before[0], to: after[0] }",
5128
+ "check": [
5129
+ "marker",
5130
+ "text",
5131
+ "verbatim",
5132
+ "value",
5133
+ "evalue",
5134
+ "isResponse",
5135
+ {
5136
+ "properties": "modifiers"
5137
+ },
5138
+ {
5139
+ "properties": "postModifiers"
5140
+ },
5141
+ "from",
5142
+ "to"
5143
+ ],
5294
5144
  "isA": [
5295
5145
  "expression",
5296
5146
  "queryable"
@@ -5331,6 +5181,7 @@
5331
5181
  "bridges": [
5332
5182
  {
5333
5183
  "id": "useMeasurementSystem",
5184
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:329",
5334
5185
  "isA": [
5335
5186
  "verb"
5336
5187
  ],
@@ -5356,7 +5207,12 @@
5356
5207
  {
5357
5208
  "extraConfig": true,
5358
5209
  "semantics": [
5359
- {}
5210
+ {
5211
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:342"
5212
+ },
5213
+ {
5214
+ "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:362"
5215
+ }
5360
5216
  ]
5361
5217
  }
5362
5218
  ],
@@ -5969,141 +5825,6 @@
5969
5825
  ],
5970
5826
  "length": 1
5971
5827
  },
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
5828
  {
6108
5829
  "summaries": [
6109
5830
  {