tpmkms_4wp 9.2.0 → 9.3.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 (52) hide show
  1. package/common/animals.instance.json +21 -8
  2. package/common/avatar.js +2 -10
  3. package/common/colors.instance.json +32 -46
  4. package/common/comparable.instance.json +3 -0
  5. package/common/comparable.js +2 -2
  6. package/common/crew.instance.json +4736 -964
  7. package/common/crew.test.json +1904 -0
  8. package/common/dates.instance.json +28643 -0
  9. package/common/dates.js +167 -0
  10. package/common/dates.test.json +16226 -0
  11. package/common/dialogues.js +28 -9
  12. package/common/dimension.instance.json +3 -2
  13. package/common/edible.instance.json +1474 -759
  14. package/common/emotions.instance.json +7 -14
  15. package/common/emotions.js +4 -5
  16. package/common/fastfood.instance.json +3914 -722
  17. package/common/fastfood.js +7 -0
  18. package/common/formulas.instance.json +1 -0
  19. package/common/gdefaults.js +18 -0
  20. package/common/helpers/concept.js +1 -0
  21. package/common/helpers/dialogues.js +3 -0
  22. package/common/helpers/properties.js +2 -27
  23. package/common/helpers.js +70 -1
  24. package/common/hierarchy.js +4 -3
  25. package/common/kirk.instance.json +186 -124
  26. package/common/length.instance.json +17 -2
  27. package/common/math.instance.json +1 -0
  28. package/common/menus.instance.json +7 -0
  29. package/common/menus.js +1 -0
  30. package/common/menus.test.json +2418 -1355
  31. package/common/meta.js +3 -3
  32. package/common/ordering.instance.json +4 -2
  33. package/common/people.instance.json +8 -0
  34. package/common/pipboy.instance.json +29 -68
  35. package/common/pokemon.instance.json +24 -3
  36. package/common/pressure.instance.json +6 -2
  37. package/common/properties.instance.json +1 -0
  38. package/common/properties.js +19 -5
  39. package/common/punctuation.js +3 -0
  40. package/common/reports.instance.json +24 -14
  41. package/common/reports.js +2 -2
  42. package/common/self.instance.json +2 -0
  43. package/common/self.js +49 -0
  44. package/common/self.test.json +2 -0
  45. package/common/spock.instance.json +186 -124
  46. package/common/temperature.instance.json +6 -2
  47. package/common/ui.instance.json +1 -0
  48. package/common/weight.instance.json +12 -0
  49. package/common/wp.instance.json +777 -151
  50. package/common/wp.js +15 -2
  51. package/main.js +4 -0
  52. package/package.json +10 -2
package/common/self.js ADDED
@@ -0,0 +1,49 @@
1
+ const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
+ const { defaultContextCheck } = require('./helpers')
3
+ const self_tests = require('./self.test.json')
4
+
5
+ const config = {
6
+ name: 'self',
7
+
8
+ operators: [
9
+ "([self])",
10
+ ],
11
+
12
+ bridges: [
13
+ {
14
+ id: 'self',
15
+ words: [
16
+ { word: 'i', grammar_person: 1, grammer_case: 'nominative', number: 'one', },
17
+ { word: 'my', grammar_person: 1, grammer_case: 'genitive' , number: 'one',},
18
+ { word: 'me', grammar_person: 1, grammer_case: ['dative', 'accusative'], number: 'one', },
19
+ { word: 'me', grammar_person: 1, grammer_case: 'accusative', number: 'one', },
20
+
21
+ { word: 'you', grammar_person: 2, grammer_case: ['nominative', 'dative', 'accusative'], number: ['one', 'many'], },
22
+ { word: 'your', grammar_person: 2, grammer_case: 'genitive', number: ['one', 'many'], },
23
+
24
+ { word: 'he', grammar_person: 3, grammer_case: 'nominative', number: 'one', },
25
+ { word: 'his', grammar_person: 3, grammer_case: 'genitive', number: 'one', },
26
+ { word: 'him', grammar_person: 3, grammer_case: ['dative', 'accusative'], number: 'one', },
27
+
28
+ { word: 'she', grammar_person: 3, grammer_case: 'nominative', number: 'one', },
29
+ { word: 'her', grammar_person: 3, grammer_case: ['genitive', 'dative', 'accusative'], number: 'one', },
30
+ ],
31
+
32
+ },
33
+ ],
34
+ };
35
+
36
+
37
+ knowledgeModule( {
38
+ config,
39
+
40
+ module,
41
+ description: 'self',
42
+ test: {
43
+ name: './self.test.json',
44
+ contents: self_tests,
45
+ checks: {
46
+ context: defaultContextCheck(),
47
+ },
48
+ }
49
+ })
@@ -0,0 +1,2 @@
1
+ [
2
+ ]
@@ -400,6 +400,11 @@
400
400
  "queryable",
401
401
  false
402
402
  ],
403
+ [
404
+ "doctor",
405
+ "rank",
406
+ false
407
+ ],
403
408
  [
404
409
  "doctor",
405
410
  "theAble",
@@ -495,11 +500,6 @@
495
500
  "theAble",
496
501
  false
497
502
  ],
498
- [
499
- "emotion",
500
- "unknown",
501
- false
502
- ],
503
503
  [
504
504
  "evaluate",
505
505
  "verb",
@@ -510,6 +510,41 @@
510
510
  "article",
511
511
  false
512
512
  ],
513
+ [
514
+ "eye",
515
+ "hierarchyAble",
516
+ false
517
+ ],
518
+ [
519
+ "eye",
520
+ "isEdee",
521
+ false
522
+ ],
523
+ [
524
+ "eye",
525
+ "isEder",
526
+ false
527
+ ],
528
+ [
529
+ "eye",
530
+ "object",
531
+ false
532
+ ],
533
+ [
534
+ "eye",
535
+ "property",
536
+ false
537
+ ],
538
+ [
539
+ "eye",
540
+ "queryable",
541
+ false
542
+ ],
543
+ [
544
+ "eye",
545
+ "theAble",
546
+ false
547
+ ],
513
548
  [
514
549
  "feel",
515
550
  "canBeDoQuestion",
@@ -790,6 +825,11 @@
790
825
  "isEder",
791
826
  false
792
827
  ],
828
+ [
829
+ "mccoy",
830
+ "name",
831
+ false
832
+ ],
793
833
  [
794
834
  "mccoy",
795
835
  "object",
@@ -865,6 +905,41 @@
865
905
  "verb",
866
906
  false
867
907
  ],
908
+ [
909
+ "name",
910
+ "hierarchyAble",
911
+ false
912
+ ],
913
+ [
914
+ "name",
915
+ "isEdee",
916
+ false
917
+ ],
918
+ [
919
+ "name",
920
+ "isEder",
921
+ false
922
+ ],
923
+ [
924
+ "name",
925
+ "object",
926
+ false
927
+ ],
928
+ [
929
+ "name",
930
+ "property",
931
+ false
932
+ ],
933
+ [
934
+ "name",
935
+ "queryable",
936
+ false
937
+ ],
938
+ [
939
+ "name",
940
+ "theAble",
941
+ false
942
+ ],
868
943
  [
869
944
  "negatable",
870
945
  "queryable",
@@ -1185,6 +1260,41 @@
1185
1260
  "punctuation",
1186
1261
  false
1187
1262
  ],
1263
+ [
1264
+ "rank",
1265
+ "hierarchyAble",
1266
+ false
1267
+ ],
1268
+ [
1269
+ "rank",
1270
+ "isEdee",
1271
+ false
1272
+ ],
1273
+ [
1274
+ "rank",
1275
+ "isEder",
1276
+ false
1277
+ ],
1278
+ [
1279
+ "rank",
1280
+ "object",
1281
+ false
1282
+ ],
1283
+ [
1284
+ "rank",
1285
+ "property",
1286
+ false
1287
+ ],
1288
+ [
1289
+ "rank",
1290
+ "queryable",
1291
+ false
1292
+ ],
1293
+ [
1294
+ "rank",
1295
+ "theAble",
1296
+ false
1297
+ ],
1188
1298
  [
1189
1299
  "readonly",
1190
1300
  "queryable",
@@ -1210,11 +1320,6 @@
1210
1320
  "queryable",
1211
1321
  false
1212
1322
  ],
1213
- [
1214
- "sentientBeing",
1215
- "unknown",
1216
- false
1217
- ],
1218
1323
  [
1219
1324
  "spock",
1220
1325
  "crew_member",
@@ -1240,6 +1345,11 @@
1240
1345
  "isEder",
1241
1346
  false
1242
1347
  ],
1348
+ [
1349
+ "spock",
1350
+ "name",
1351
+ false
1352
+ ],
1243
1353
  [
1244
1354
  "spock",
1245
1355
  "object",
@@ -1260,6 +1370,41 @@
1260
1370
  "theAble",
1261
1371
  false
1262
1372
  ],
1373
+ [
1374
+ "status",
1375
+ "hierarchyAble",
1376
+ false
1377
+ ],
1378
+ [
1379
+ "status",
1380
+ "isEdee",
1381
+ false
1382
+ ],
1383
+ [
1384
+ "status",
1385
+ "isEder",
1386
+ false
1387
+ ],
1388
+ [
1389
+ "status",
1390
+ "object",
1391
+ false
1392
+ ],
1393
+ [
1394
+ "status",
1395
+ "property",
1396
+ false
1397
+ ],
1398
+ [
1399
+ "status",
1400
+ "queryable",
1401
+ false
1402
+ ],
1403
+ [
1404
+ "status",
1405
+ "theAble",
1406
+ false
1407
+ ],
1263
1408
  [
1264
1409
  "stm_before",
1265
1410
  "adjective",
@@ -1453,27 +1598,6 @@
1453
1598
  ],
1454
1599
  "metadata": {
1455
1600
  "opChoices": [
1456
- {
1457
- "op": [
1458
- "self",
1459
- 0
1460
- ],
1461
- "ops": [
1462
- [
1463
- "is",
1464
- 0
1465
- ],
1466
- [
1467
- "self",
1468
- 0
1469
- ],
1470
- [
1471
- "spock",
1472
- 0
1473
- ]
1474
- ],
1475
- "counter": 1
1476
- },
1477
1601
  {
1478
1602
  "op": [
1479
1603
  "spock",
@@ -1489,7 +1613,7 @@
1489
1613
  0
1490
1614
  ]
1491
1615
  ],
1492
- "counter": 2
1616
+ "counter": 1
1493
1617
  },
1494
1618
  {
1495
1619
  "op": [
@@ -1502,7 +1626,7 @@
1502
1626
  0
1503
1627
  ]
1504
1628
  ],
1505
- "counter": 3
1629
+ "counter": 2
1506
1630
  },
1507
1631
  {
1508
1632
  "op": [
@@ -1515,7 +1639,7 @@
1515
1639
  1
1516
1640
  ]
1517
1641
  ],
1518
- "counter": 4
1642
+ "counter": 3
1519
1643
  }
1520
1644
  ]
1521
1645
  },
@@ -1531,21 +1655,28 @@
1531
1655
  "end": 12
1532
1656
  },
1533
1657
  "one": {
1534
- "number": "many",
1535
- "variable": true,
1536
- "value": "self",
1658
+ "number": [
1659
+ "one",
1660
+ "many"
1661
+ ],
1662
+ "word": "you",
1663
+ "grammar_person": 2,
1664
+ "grammer_case": [
1665
+ "nominative",
1666
+ "dative",
1667
+ "accusative"
1668
+ ],
1537
1669
  "text": "you",
1538
1670
  "marker": "self",
1539
- "word": "you",
1671
+ "dead": true,
1540
1672
  "range": {
1541
1673
  "start": 0,
1542
1674
  "end": 12
1543
1675
  },
1544
- "dead": true,
1545
1676
  "types": [
1546
1677
  "self"
1547
1678
  ],
1548
- "level": 1
1679
+ "level": 0
1549
1680
  },
1550
1681
  "two": {
1551
1682
  "value": "spock",
@@ -1593,10 +1724,6 @@
1593
1724
  [
1594
1725
  "self",
1595
1726
  0
1596
- ],
1597
- [
1598
- "spock",
1599
- 0
1600
1727
  ]
1601
1728
  ],
1602
1729
  [
@@ -1604,6 +1731,10 @@
1604
1731
  "is",
1605
1732
  0
1606
1733
  ],
1734
+ [
1735
+ "self",
1736
+ 0
1737
+ ],
1607
1738
  [
1608
1739
  "spock",
1609
1740
  0
@@ -1653,43 +1784,8 @@
1653
1784
  {
1654
1785
  "marker": [
1655
1786
  "self",
1656
- 1
1657
- ],
1658
- "range": {
1659
- "start": 0,
1660
- "end": 2
1661
- }
1662
- },
1663
- {
1664
- "marker": [
1665
- "is",
1666
- 0
1667
- ],
1668
- "range": {
1669
- "start": 4,
1670
- "end": 6
1671
- }
1672
- },
1673
- {
1674
- "marker": [
1675
- "spock",
1676
1787
  0
1677
1788
  ],
1678
- "range": {
1679
- "start": 8,
1680
- "end": 12
1681
- }
1682
- }
1683
- ],
1684
- "counter": 2
1685
- },
1686
- {
1687
- "operators": [
1688
- {
1689
- "marker": [
1690
- "self",
1691
- 1
1692
- ],
1693
1789
  "range": {
1694
1790
  "start": 0,
1695
1791
  "end": 2
@@ -1716,7 +1812,7 @@
1716
1812
  }
1717
1813
  }
1718
1814
  ],
1719
- "counter": 3
1815
+ "counter": 2
1720
1816
  },
1721
1817
  {
1722
1818
  "operators": [
@@ -1731,7 +1827,7 @@
1731
1827
  }
1732
1828
  }
1733
1829
  ],
1734
- "counter": 4
1830
+ "counter": 3
1735
1831
  },
1736
1832
  {
1737
1833
  "operators": [
@@ -1746,13 +1842,14 @@
1746
1842
  }
1747
1843
  }
1748
1844
  ],
1749
- "counter": 5
1845
+ "counter": 4
1750
1846
  }
1751
1847
  ],
1752
1848
  "length": 1
1753
1849
  }
1754
1850
  ],
1755
1851
  "learned_contextual_priorities": [],
1852
+ "rtf_associations": [],
1756
1853
  "query": "you are spock",
1757
1854
  "key": {
1758
1855
  "query": "you are spock"
@@ -1770,10 +1867,6 @@
1770
1867
  [
1771
1868
  "self",
1772
1869
  0
1773
- ],
1774
- [
1775
- "spock",
1776
- 0
1777
1870
  ]
1778
1871
  ],
1779
1872
  [
@@ -1781,6 +1874,10 @@
1781
1874
  "is",
1782
1875
  0
1783
1876
  ],
1877
+ [
1878
+ "self",
1879
+ 0
1880
+ ],
1784
1881
  [
1785
1882
  "spock",
1786
1883
  0
@@ -1830,43 +1927,8 @@
1830
1927
  {
1831
1928
  "marker": [
1832
1929
  "self",
1833
- 1
1834
- ],
1835
- "range": {
1836
- "start": 0,
1837
- "end": 2
1838
- }
1839
- },
1840
- {
1841
- "marker": [
1842
- "is",
1843
- 0
1844
- ],
1845
- "range": {
1846
- "start": 4,
1847
- "end": 6
1848
- }
1849
- },
1850
- {
1851
- "marker": [
1852
- "spock",
1853
1930
  0
1854
1931
  ],
1855
- "range": {
1856
- "start": 8,
1857
- "end": 12
1858
- }
1859
- }
1860
- ],
1861
- "counter": 2
1862
- },
1863
- {
1864
- "operators": [
1865
- {
1866
- "marker": [
1867
- "self",
1868
- 1
1869
- ],
1870
1932
  "range": {
1871
1933
  "start": 0,
1872
1934
  "end": 2
@@ -1893,7 +1955,7 @@
1893
1955
  }
1894
1956
  }
1895
1957
  ],
1896
- "counter": 3
1958
+ "counter": 2
1897
1959
  },
1898
1960
  {
1899
1961
  "operators": [
@@ -1908,7 +1970,7 @@
1908
1970
  }
1909
1971
  }
1910
1972
  ],
1911
- "counter": 4
1973
+ "counter": 3
1912
1974
  },
1913
1975
  {
1914
1976
  "operators": [
@@ -1923,7 +1985,7 @@
1923
1985
  }
1924
1986
  }
1925
1987
  ],
1926
- "counter": 5
1988
+ "counter": 4
1927
1989
  }
1928
1990
  ],
1929
1991
  "length": 1
@@ -1432,6 +1432,7 @@
1432
1432
  }
1433
1433
  ],
1434
1434
  "learned_contextual_priorities": [],
1435
+ "rtf_associations": [],
1435
1436
  "query": "temperature is a dimension",
1436
1437
  "key": {
1437
1438
  "query": "temperature is a dimension"
@@ -2763,10 +2764,10 @@
2763
2764
  "start": 8,
2764
2765
  "end": 17
2765
2766
  },
2767
+ "dead": true,
2766
2768
  "types": [
2767
2769
  "unknown"
2768
2770
  ],
2769
- "dead": true,
2770
2771
  "level": 0
2771
2772
  },
2772
2773
  {
@@ -2779,10 +2780,10 @@
2779
2780
  "start": 23,
2780
2781
  "end": 28
2781
2782
  },
2783
+ "dead": true,
2782
2784
  "types": [
2783
2785
  "unknown"
2784
2786
  ],
2785
- "dead": true,
2786
2787
  "level": 0
2787
2788
  }
2788
2789
  ],
@@ -3635,6 +3636,7 @@
3635
3636
  }
3636
3637
  ],
3637
3638
  "learned_contextual_priorities": [],
3639
+ "rtf_associations": [],
3638
3640
  "query": "celcius fahrenheit and kelvin are units of temperature",
3639
3641
  "key": {
3640
3642
  "query": "celcius fahrenheit and kelvin are units of temperature"
@@ -6112,6 +6114,7 @@
6112
6114
  }
6113
6115
  ],
6114
6116
  "learned_contextual_priorities": [],
6117
+ "rtf_associations": [],
6115
6118
  "query": "fahrenheit = celcius*9/5 + 32",
6116
6119
  "key": {
6117
6120
  "query": "fahrenheit = celcius*9/5 + 32"
@@ -9315,6 +9318,7 @@
9315
9318
  }
9316
9319
  ],
9317
9320
  "learned_contextual_priorities": [],
9321
+ "rtf_associations": [],
9318
9322
  "query": "celcius = (fahrenheit - 32)*5/8 + 32",
9319
9323
  "key": {
9320
9324
  "query": "celcius = (fahrenheit - 32)*5/8 + 32"
@@ -1044,6 +1044,7 @@
1044
1044
  }
1045
1045
  ],
1046
1046
  "learned_contextual_priorities": [],
1047
+ "rtf_associations": [],
1047
1048
  "query": "move direction",
1048
1049
  "skipSemantics": false,
1049
1050
  "key": {
@@ -1268,6 +1268,7 @@
1268
1268
  }
1269
1269
  ],
1270
1270
  "learned_contextual_priorities": [],
1271
+ "rtf_associations": [],
1271
1272
  "query": "troy modifies ounces",
1272
1273
  "key": {
1273
1274
  "query": "troy modifies ounces"
@@ -2834,6 +2835,7 @@
2834
2835
  }
2835
2836
  ],
2836
2837
  "learned_contextual_priorities": [],
2838
+ "rtf_associations": [],
2837
2839
  "query": "weight is a dimension",
2838
2840
  "key": {
2839
2841
  "query": "weight is a dimension"
@@ -6613,6 +6615,7 @@
6613
6615
  }
6614
6616
  ],
6615
6617
  "learned_contextual_priorities": [],
6618
+ "rtf_associations": [],
6616
6619
  "query": "kilograms grams pounds (troy ounces) ounces and tons are units of weight",
6617
6620
  "key": {
6618
6621
  "query": "kilograms grams pounds (troy ounces) ounces and tons are units of weight"
@@ -8565,6 +8568,7 @@
8565
8568
  }
8566
8569
  ],
8567
8570
  "learned_contextual_priorities": [],
8571
+ "rtf_associations": [],
8568
8572
  "query": "ounces = 1.097 * troy ounces",
8569
8573
  "key": {
8570
8574
  "query": "ounces = 1.097 * troy ounces"
@@ -10517,6 +10521,7 @@
10517
10521
  }
10518
10522
  ],
10519
10523
  "learned_contextual_priorities": [],
10524
+ "rtf_associations": [],
10520
10525
  "query": "troy ounces = ounces / 1.097",
10521
10526
  "key": {
10522
10527
  "query": "troy ounces = ounces / 1.097"
@@ -12417,6 +12422,7 @@
12417
12422
  }
12418
12423
  ],
12419
12424
  "learned_contextual_priorities": [],
12425
+ "rtf_associations": [],
12420
12426
  "query": "kilograms = pounds * 0.453592",
12421
12427
  "key": {
12422
12428
  "query": "kilograms = pounds * 0.453592"
@@ -14317,6 +14323,7 @@
14317
14323
  }
14318
14324
  ],
14319
14325
  "learned_contextual_priorities": [],
14326
+ "rtf_associations": [],
14320
14327
  "query": "grams = kilograms * 1000",
14321
14328
  "key": {
14322
14329
  "query": "grams = kilograms * 1000"
@@ -16217,6 +16224,7 @@
16217
16224
  }
16218
16225
  ],
16219
16226
  "learned_contextual_priorities": [],
16227
+ "rtf_associations": [],
16220
16228
  "query": "kilograms = grams / 1000",
16221
16229
  "key": {
16222
16230
  "query": "kilograms = grams / 1000"
@@ -18117,6 +18125,7 @@
18117
18125
  }
18118
18126
  ],
18119
18127
  "learned_contextual_priorities": [],
18128
+ "rtf_associations": [],
18120
18129
  "query": "pounds = kilograms * 2.20462",
18121
18130
  "key": {
18122
18131
  "query": "pounds = kilograms * 2.20462"
@@ -20017,6 +20026,7 @@
20017
20026
  }
20018
20027
  ],
20019
20028
  "learned_contextual_priorities": [],
20029
+ "rtf_associations": [],
20020
20030
  "query": "ounces = pounds * 16",
20021
20031
  "key": {
20022
20032
  "query": "ounces = pounds * 16"
@@ -21908,6 +21918,7 @@
21908
21918
  }
21909
21919
  ],
21910
21920
  "learned_contextual_priorities": [],
21921
+ "rtf_associations": [],
21911
21922
  "query": "ton = tonne * 0.907185",
21912
21923
  "key": {
21913
21924
  "query": "ton = tonne * 0.907185"
@@ -23808,6 +23819,7 @@
23808
23819
  }
23809
23820
  ],
23810
23821
  "learned_contextual_priorities": [],
23822
+ "rtf_associations": [],
23811
23823
  "query": "pounds = ton * 2000",
23812
23824
  "key": {
23813
23825
  "query": "pounds = ton * 2000"