tpmkms_4wp 8.0.0-beta.34 → 8.0.0-beta.35
Sign up to get free protection for your applications and to get access to all the features.
- package/common/nameable.js +1 -1
- package/common/nameable.test.json +560 -16
- package/common/stm.js +4 -4
- package/common/stm.test.json +16 -16
- package/package.json +2 -2
package/common/nameable.js
CHANGED
@@ -94,7 +94,7 @@ const configStruct = {
|
|
94
94
|
// TODO find report being referred to
|
95
95
|
const nameable = (await e(context.nameable)).evalue
|
96
96
|
const name = context.name.text
|
97
|
-
config.addWord(name, { id: nameable.marker, initial: `{ value: "${nameable.marker}", nameable_named: true }` })
|
97
|
+
config.addWord(name, { id: nameable.marker, initial: `{ value: "${nameable.marker}", pullFromContext: true, nameable_named: true }` })
|
98
98
|
api.setName(nameable, name)
|
99
99
|
}
|
100
100
|
},
|
@@ -101,7 +101,7 @@
|
|
101
101
|
"end": 10,
|
102
102
|
"start": 9
|
103
103
|
},
|
104
|
-
"
|
104
|
+
"stm_id": 1,
|
105
105
|
"text": "m1",
|
106
106
|
"types": [
|
107
107
|
"m1"
|
@@ -172,7 +172,6 @@
|
|
172
172
|
"word": "call"
|
173
173
|
}
|
174
174
|
],
|
175
|
-
"developerTest": true,
|
176
175
|
"generatedParenthesized": [
|
177
176
|
"",
|
178
177
|
""
|
@@ -358,7 +357,7 @@
|
|
358
357
|
"end": 10,
|
359
358
|
"start": 9
|
360
359
|
},
|
361
|
-
"
|
360
|
+
"stm_id": 1,
|
362
361
|
"text": "m1",
|
363
362
|
"types": [
|
364
363
|
"m1"
|
@@ -464,7 +463,7 @@
|
|
464
463
|
"end": 10,
|
465
464
|
"start": 9
|
466
465
|
},
|
467
|
-
"
|
466
|
+
"stm_id": 1,
|
468
467
|
"text": "m1",
|
469
468
|
"types": [
|
470
469
|
"m1"
|
@@ -546,7 +545,7 @@
|
|
546
545
|
"end": 10,
|
547
546
|
"start": 9
|
548
547
|
},
|
549
|
-
"
|
548
|
+
"stm_id": 1,
|
550
549
|
"text": "m1",
|
551
550
|
"types": [
|
552
551
|
"m1"
|
@@ -629,7 +628,28 @@
|
|
629
628
|
"end": 14,
|
630
629
|
"start": 0
|
631
630
|
},
|
632
|
-
"response":
|
631
|
+
"response": {
|
632
|
+
"dead": true,
|
633
|
+
"default": true,
|
634
|
+
"fromSTM": true,
|
635
|
+
"level": 1,
|
636
|
+
"marker": "m1",
|
637
|
+
"nameable_names": [
|
638
|
+
"banana"
|
639
|
+
],
|
640
|
+
"pullFromContext": false,
|
641
|
+
"range": {
|
642
|
+
"end": 10,
|
643
|
+
"start": 9
|
644
|
+
},
|
645
|
+
"stm_id": 1,
|
646
|
+
"text": "m1",
|
647
|
+
"types": [
|
648
|
+
"m1"
|
649
|
+
],
|
650
|
+
"value": "m1",
|
651
|
+
"word": "m1"
|
652
|
+
},
|
633
653
|
"text": "evaluate banana",
|
634
654
|
"topLevel": true,
|
635
655
|
"touchedBy": [
|
@@ -640,6 +660,7 @@
|
|
640
660
|
"level": 1,
|
641
661
|
"marker": "m1",
|
642
662
|
"nameable_named": true,
|
663
|
+
"pullFromContext": true,
|
643
664
|
"range": {
|
644
665
|
"end": 14,
|
645
666
|
"start": 9
|
@@ -651,11 +672,10 @@
|
|
651
672
|
"word": "evaluate"
|
652
673
|
}
|
653
674
|
],
|
654
|
-
"developerTest": true,
|
655
675
|
"generatedParenthesized": [
|
656
676
|
"",
|
657
677
|
"",
|
658
|
-
"(m1)"
|
678
|
+
"((m1))"
|
659
679
|
],
|
660
680
|
"metadata": {
|
661
681
|
"opChoices": [
|
@@ -836,7 +856,7 @@
|
|
836
856
|
"end": 10,
|
837
857
|
"start": 9
|
838
858
|
},
|
839
|
-
"
|
859
|
+
"stm_id": 1,
|
840
860
|
"text": "m1",
|
841
861
|
"types": [
|
842
862
|
"m1"
|
@@ -866,7 +886,28 @@
|
|
866
886
|
"end": 14,
|
867
887
|
"start": 0
|
868
888
|
},
|
869
|
-
"response":
|
889
|
+
"response": {
|
890
|
+
"dead": true,
|
891
|
+
"default": true,
|
892
|
+
"fromSTM": true,
|
893
|
+
"level": 1,
|
894
|
+
"marker": "m1",
|
895
|
+
"nameable_names": [
|
896
|
+
"banana"
|
897
|
+
],
|
898
|
+
"pullFromContext": false,
|
899
|
+
"range": {
|
900
|
+
"end": 10,
|
901
|
+
"start": 9
|
902
|
+
},
|
903
|
+
"stm_id": 1,
|
904
|
+
"text": "m1",
|
905
|
+
"types": [
|
906
|
+
"m1"
|
907
|
+
],
|
908
|
+
"value": "m1",
|
909
|
+
"word": "m1"
|
910
|
+
},
|
870
911
|
"text": "evaluate banana",
|
871
912
|
"topLevel": true,
|
872
913
|
"touchedBy": [
|
@@ -877,6 +918,7 @@
|
|
877
918
|
"level": 1,
|
878
919
|
"marker": "m1",
|
879
920
|
"nameable_named": true,
|
921
|
+
"pullFromContext": true,
|
880
922
|
"range": {
|
881
923
|
"end": 14,
|
882
924
|
"start": 9
|
@@ -887,7 +929,7 @@
|
|
887
929
|
},
|
888
930
|
"word": "evaluate"
|
889
931
|
},
|
890
|
-
"generatedParenthesized": "(m1)",
|
932
|
+
"generatedParenthesized": "((m1))",
|
891
933
|
"paraphrases": "evaluate banana",
|
892
934
|
"paraphrasesParenthesized": "((evaluate) (banana))",
|
893
935
|
"responses": [
|
@@ -983,7 +1025,7 @@
|
|
983
1025
|
"end": 10,
|
984
1026
|
"start": 9
|
985
1027
|
},
|
986
|
-
"
|
1028
|
+
"stm_id": 1,
|
987
1029
|
"text": "m1",
|
988
1030
|
"types": [
|
989
1031
|
"m1"
|
@@ -1067,7 +1109,7 @@
|
|
1067
1109
|
"end": 10,
|
1068
1110
|
"start": 9
|
1069
1111
|
},
|
1070
|
-
"
|
1112
|
+
"stm_id": 1,
|
1071
1113
|
"text": "m1",
|
1072
1114
|
"types": [
|
1073
1115
|
"m1"
|
@@ -1170,7 +1212,6 @@
|
|
1170
1212
|
"word": "getnamesbytype"
|
1171
1213
|
}
|
1172
1214
|
],
|
1173
|
-
"developerTest": false,
|
1174
1215
|
"generatedParenthesized": [
|
1175
1216
|
"",
|
1176
1217
|
"",
|
@@ -1355,7 +1396,7 @@
|
|
1355
1396
|
"end": 10,
|
1356
1397
|
"start": 9
|
1357
1398
|
},
|
1358
|
-
"
|
1399
|
+
"stm_id": 1,
|
1359
1400
|
"text": "m1",
|
1360
1401
|
"types": [
|
1361
1402
|
"m1"
|
@@ -1500,7 +1541,7 @@
|
|
1500
1541
|
"end": 10,
|
1501
1542
|
"start": 9
|
1502
1543
|
},
|
1503
|
-
"
|
1544
|
+
"stm_id": 1,
|
1504
1545
|
"text": "m1",
|
1505
1546
|
"types": [
|
1506
1547
|
"m1"
|
@@ -1541,5 +1582,508 @@
|
|
1541
1582
|
"",
|
1542
1583
|
"banana"
|
1543
1584
|
]
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"associations": [
|
1588
|
+
],
|
1589
|
+
"config": {
|
1590
|
+
},
|
1591
|
+
"contexts": [
|
1592
|
+
{
|
1593
|
+
"dead": true,
|
1594
|
+
"default": true,
|
1595
|
+
"level": 1,
|
1596
|
+
"marker": "remember",
|
1597
|
+
"postModifiers": [
|
1598
|
+
"rememberee"
|
1599
|
+
],
|
1600
|
+
"range": {
|
1601
|
+
"end": 10,
|
1602
|
+
"start": 0
|
1603
|
+
},
|
1604
|
+
"rememberee": {
|
1605
|
+
"dead": true,
|
1606
|
+
"default": true,
|
1607
|
+
"fromSTM": true,
|
1608
|
+
"level": 1,
|
1609
|
+
"marker": "m1",
|
1610
|
+
"nameable_names": [
|
1611
|
+
"banana"
|
1612
|
+
],
|
1613
|
+
"pullFromContext": false,
|
1614
|
+
"range": {
|
1615
|
+
"end": 10,
|
1616
|
+
"start": 9
|
1617
|
+
},
|
1618
|
+
"stm_id": 1,
|
1619
|
+
"text": "m1",
|
1620
|
+
"types": [
|
1621
|
+
"m1"
|
1622
|
+
],
|
1623
|
+
"value": "m1",
|
1624
|
+
"word": "m1"
|
1625
|
+
},
|
1626
|
+
"text": "remember m1",
|
1627
|
+
"topLevel": true,
|
1628
|
+
"touchedBy": [
|
1629
|
+
"nameable#call2"
|
1630
|
+
],
|
1631
|
+
"value": "remember",
|
1632
|
+
"word": "remember"
|
1633
|
+
},
|
1634
|
+
{
|
1635
|
+
"dead": true,
|
1636
|
+
"default": true,
|
1637
|
+
"level": 1,
|
1638
|
+
"marker": "call",
|
1639
|
+
"name": {
|
1640
|
+
"dead": true,
|
1641
|
+
"level": 1,
|
1642
|
+
"marker": "unknown",
|
1643
|
+
"range": {
|
1644
|
+
"end": 17,
|
1645
|
+
"start": 12
|
1646
|
+
},
|
1647
|
+
"text": "banana",
|
1648
|
+
"unknown": true,
|
1649
|
+
"value": "banana",
|
1650
|
+
"word": "banana"
|
1651
|
+
},
|
1652
|
+
"nameable": {
|
1653
|
+
"concept": true,
|
1654
|
+
"dead": true,
|
1655
|
+
"default": true,
|
1656
|
+
"determiner": "the",
|
1657
|
+
"focusableForPhrase": true,
|
1658
|
+
"level": 1,
|
1659
|
+
"marker": "m1",
|
1660
|
+
"modifiers": [
|
1661
|
+
"determiner"
|
1662
|
+
],
|
1663
|
+
"pullFromContext": true,
|
1664
|
+
"range": {
|
1665
|
+
"end": 10,
|
1666
|
+
"start": 5
|
1667
|
+
},
|
1668
|
+
"text": "the m1",
|
1669
|
+
"types": [
|
1670
|
+
"m1"
|
1671
|
+
],
|
1672
|
+
"value": "m1",
|
1673
|
+
"wantsValue": true,
|
1674
|
+
"word": "m1"
|
1675
|
+
},
|
1676
|
+
"range": {
|
1677
|
+
"end": 17,
|
1678
|
+
"start": 0
|
1679
|
+
},
|
1680
|
+
"text": "call the m1 banana",
|
1681
|
+
"topLevel": true,
|
1682
|
+
"touchedBy": [
|
1683
|
+
"nameable#call2"
|
1684
|
+
],
|
1685
|
+
"value": "call",
|
1686
|
+
"word": "call"
|
1687
|
+
},
|
1688
|
+
{
|
1689
|
+
"dead": true,
|
1690
|
+
"level": 1,
|
1691
|
+
"marker": "m1",
|
1692
|
+
"nameable_named": true,
|
1693
|
+
"pullFromContext": true,
|
1694
|
+
"range": {
|
1695
|
+
"end": 5,
|
1696
|
+
"start": 0
|
1697
|
+
},
|
1698
|
+
"text": "banana",
|
1699
|
+
"topLevel": true,
|
1700
|
+
"touchedBy": [
|
1701
|
+
"nameable#call2"
|
1702
|
+
],
|
1703
|
+
"value": {
|
1704
|
+
"dead": true,
|
1705
|
+
"default": true,
|
1706
|
+
"fromSTM": true,
|
1707
|
+
"level": 1,
|
1708
|
+
"marker": "m1",
|
1709
|
+
"nameable_names": [
|
1710
|
+
"banana"
|
1711
|
+
],
|
1712
|
+
"pullFromContext": false,
|
1713
|
+
"range": {
|
1714
|
+
"end": 10,
|
1715
|
+
"start": 9
|
1716
|
+
},
|
1717
|
+
"stm_id": 1,
|
1718
|
+
"text": "m1",
|
1719
|
+
"types": [
|
1720
|
+
"m1"
|
1721
|
+
],
|
1722
|
+
"value": "m1",
|
1723
|
+
"word": "m1"
|
1724
|
+
},
|
1725
|
+
"word": "banana"
|
1726
|
+
}
|
1727
|
+
],
|
1728
|
+
"generatedParenthesized": [
|
1729
|
+
"",
|
1730
|
+
"",
|
1731
|
+
""
|
1732
|
+
],
|
1733
|
+
"metadata": {
|
1734
|
+
"opChoices": [
|
1735
|
+
{
|
1736
|
+
"counter": 1,
|
1737
|
+
"op": [
|
1738
|
+
"m1",
|
1739
|
+
0
|
1740
|
+
],
|
1741
|
+
"ops": [
|
1742
|
+
[
|
1743
|
+
"m1",
|
1744
|
+
0
|
1745
|
+
],
|
1746
|
+
[
|
1747
|
+
"remember",
|
1748
|
+
0
|
1749
|
+
]
|
1750
|
+
]
|
1751
|
+
},
|
1752
|
+
{
|
1753
|
+
"counter": 2,
|
1754
|
+
"op": [
|
1755
|
+
"remember",
|
1756
|
+
0
|
1757
|
+
],
|
1758
|
+
"ops": [
|
1759
|
+
[
|
1760
|
+
"remember",
|
1761
|
+
0
|
1762
|
+
]
|
1763
|
+
]
|
1764
|
+
},
|
1765
|
+
{
|
1766
|
+
"counter": 1,
|
1767
|
+
"op": [
|
1768
|
+
"unknown",
|
1769
|
+
0
|
1770
|
+
],
|
1771
|
+
"ops": [
|
1772
|
+
[
|
1773
|
+
"call",
|
1774
|
+
0
|
1775
|
+
],
|
1776
|
+
[
|
1777
|
+
"m1",
|
1778
|
+
0
|
1779
|
+
],
|
1780
|
+
[
|
1781
|
+
"the",
|
1782
|
+
0
|
1783
|
+
],
|
1784
|
+
[
|
1785
|
+
"unknown",
|
1786
|
+
0
|
1787
|
+
]
|
1788
|
+
]
|
1789
|
+
},
|
1790
|
+
{
|
1791
|
+
"counter": 2,
|
1792
|
+
"op": [
|
1793
|
+
"m1",
|
1794
|
+
0
|
1795
|
+
],
|
1796
|
+
"ops": [
|
1797
|
+
[
|
1798
|
+
"call",
|
1799
|
+
0
|
1800
|
+
],
|
1801
|
+
[
|
1802
|
+
"m1",
|
1803
|
+
0
|
1804
|
+
],
|
1805
|
+
[
|
1806
|
+
"the",
|
1807
|
+
0
|
1808
|
+
]
|
1809
|
+
]
|
1810
|
+
},
|
1811
|
+
{
|
1812
|
+
"counter": 3,
|
1813
|
+
"op": [
|
1814
|
+
"the",
|
1815
|
+
0
|
1816
|
+
],
|
1817
|
+
"ops": [
|
1818
|
+
[
|
1819
|
+
"call",
|
1820
|
+
0
|
1821
|
+
],
|
1822
|
+
[
|
1823
|
+
"the",
|
1824
|
+
0
|
1825
|
+
]
|
1826
|
+
]
|
1827
|
+
},
|
1828
|
+
{
|
1829
|
+
"counter": 4,
|
1830
|
+
"op": [
|
1831
|
+
"call",
|
1832
|
+
0
|
1833
|
+
],
|
1834
|
+
"ops": [
|
1835
|
+
[
|
1836
|
+
"call",
|
1837
|
+
0
|
1838
|
+
]
|
1839
|
+
]
|
1840
|
+
},
|
1841
|
+
{
|
1842
|
+
"counter": 1,
|
1843
|
+
"op": [
|
1844
|
+
"m1",
|
1845
|
+
0
|
1846
|
+
],
|
1847
|
+
"ops": [
|
1848
|
+
[
|
1849
|
+
"m1",
|
1850
|
+
0
|
1851
|
+
]
|
1852
|
+
]
|
1853
|
+
}
|
1854
|
+
]
|
1855
|
+
},
|
1856
|
+
"objects": {
|
1857
|
+
"nameToUUID": {
|
1858
|
+
"articles": "articles2",
|
1859
|
+
"evaluate": "evaluate2",
|
1860
|
+
"gdefaults": "gdefaults2",
|
1861
|
+
"nameable": "nameable1",
|
1862
|
+
"pos": "pos2",
|
1863
|
+
"stm": "stm2",
|
1864
|
+
"tokenize": "tokenize2"
|
1865
|
+
},
|
1866
|
+
"namespaced": {
|
1867
|
+
"articles2": {
|
1868
|
+
},
|
1869
|
+
"evaluate2": {
|
1870
|
+
},
|
1871
|
+
"gdefaults2": {
|
1872
|
+
},
|
1873
|
+
"nameable1": {
|
1874
|
+
"named": {
|
1875
|
+
}
|
1876
|
+
},
|
1877
|
+
"pos2": {
|
1878
|
+
},
|
1879
|
+
"stm2": {
|
1880
|
+
"mentioned": [
|
1881
|
+
{
|
1882
|
+
"dead": true,
|
1883
|
+
"default": true,
|
1884
|
+
"fromSTM": true,
|
1885
|
+
"level": 1,
|
1886
|
+
"marker": "m1",
|
1887
|
+
"nameable_names": [
|
1888
|
+
"banana"
|
1889
|
+
],
|
1890
|
+
"pullFromContext": false,
|
1891
|
+
"range": {
|
1892
|
+
"end": 10,
|
1893
|
+
"start": 9
|
1894
|
+
},
|
1895
|
+
"stm_id": 1,
|
1896
|
+
"text": "m1",
|
1897
|
+
"types": [
|
1898
|
+
"m1"
|
1899
|
+
],
|
1900
|
+
"value": "m1",
|
1901
|
+
"word": "m1"
|
1902
|
+
}
|
1903
|
+
],
|
1904
|
+
"variables": {
|
1905
|
+
}
|
1906
|
+
},
|
1907
|
+
"tokenize2": {
|
1908
|
+
}
|
1909
|
+
},
|
1910
|
+
"processed": [
|
1911
|
+
{
|
1912
|
+
"context": {
|
1913
|
+
"dead": true,
|
1914
|
+
"level": 1,
|
1915
|
+
"marker": "m1",
|
1916
|
+
"nameable_named": true,
|
1917
|
+
"pullFromContext": true,
|
1918
|
+
"range": {
|
1919
|
+
"end": 5,
|
1920
|
+
"start": 0
|
1921
|
+
},
|
1922
|
+
"text": "banana",
|
1923
|
+
"topLevel": true,
|
1924
|
+
"touchedBy": [
|
1925
|
+
"nameable#call2"
|
1926
|
+
],
|
1927
|
+
"value": {
|
1928
|
+
"dead": true,
|
1929
|
+
"default": true,
|
1930
|
+
"fromSTM": true,
|
1931
|
+
"level": 1,
|
1932
|
+
"marker": "m1",
|
1933
|
+
"nameable_names": [
|
1934
|
+
"banana"
|
1935
|
+
],
|
1936
|
+
"pullFromContext": false,
|
1937
|
+
"range": {
|
1938
|
+
"end": 10,
|
1939
|
+
"start": 9
|
1940
|
+
},
|
1941
|
+
"stm_id": 1,
|
1942
|
+
"text": "m1",
|
1943
|
+
"types": [
|
1944
|
+
"m1"
|
1945
|
+
],
|
1946
|
+
"value": "m1",
|
1947
|
+
"word": "m1"
|
1948
|
+
},
|
1949
|
+
"word": "banana"
|
1950
|
+
},
|
1951
|
+
"generatedParenthesized": "",
|
1952
|
+
"paraphrases": "banana",
|
1953
|
+
"paraphrasesParenthesized": "(banana)",
|
1954
|
+
"responses": [
|
1955
|
+
""
|
1956
|
+
]
|
1957
|
+
},
|
1958
|
+
{
|
1959
|
+
"context": {
|
1960
|
+
"dead": true,
|
1961
|
+
"default": true,
|
1962
|
+
"level": 1,
|
1963
|
+
"marker": "call",
|
1964
|
+
"name": {
|
1965
|
+
"dead": true,
|
1966
|
+
"level": 1,
|
1967
|
+
"marker": "unknown",
|
1968
|
+
"range": {
|
1969
|
+
"end": 17,
|
1970
|
+
"start": 12
|
1971
|
+
},
|
1972
|
+
"text": "banana",
|
1973
|
+
"unknown": true,
|
1974
|
+
"value": "banana",
|
1975
|
+
"word": "banana"
|
1976
|
+
},
|
1977
|
+
"nameable": {
|
1978
|
+
"concept": true,
|
1979
|
+
"dead": true,
|
1980
|
+
"default": true,
|
1981
|
+
"determiner": "the",
|
1982
|
+
"focusableForPhrase": true,
|
1983
|
+
"level": 1,
|
1984
|
+
"marker": "m1",
|
1985
|
+
"modifiers": [
|
1986
|
+
"determiner"
|
1987
|
+
],
|
1988
|
+
"pullFromContext": true,
|
1989
|
+
"range": {
|
1990
|
+
"end": 10,
|
1991
|
+
"start": 5
|
1992
|
+
},
|
1993
|
+
"text": "the m1",
|
1994
|
+
"types": [
|
1995
|
+
"m1"
|
1996
|
+
],
|
1997
|
+
"value": "m1",
|
1998
|
+
"wantsValue": true,
|
1999
|
+
"word": "m1"
|
2000
|
+
},
|
2001
|
+
"range": {
|
2002
|
+
"end": 17,
|
2003
|
+
"start": 0
|
2004
|
+
},
|
2005
|
+
"text": "call the m1 banana",
|
2006
|
+
"topLevel": true,
|
2007
|
+
"touchedBy": [
|
2008
|
+
"nameable#call2"
|
2009
|
+
],
|
2010
|
+
"value": "call",
|
2011
|
+
"word": "call"
|
2012
|
+
},
|
2013
|
+
"generatedParenthesized": "",
|
2014
|
+
"paraphrases": "call the m1 banana",
|
2015
|
+
"paraphrasesParenthesized": "(call (the (m1)) (banana))",
|
2016
|
+
"responses": [
|
2017
|
+
""
|
2018
|
+
]
|
2019
|
+
},
|
2020
|
+
{
|
2021
|
+
"context": {
|
2022
|
+
"dead": true,
|
2023
|
+
"default": true,
|
2024
|
+
"level": 1,
|
2025
|
+
"marker": "remember",
|
2026
|
+
"postModifiers": [
|
2027
|
+
"rememberee"
|
2028
|
+
],
|
2029
|
+
"range": {
|
2030
|
+
"end": 10,
|
2031
|
+
"start": 0
|
2032
|
+
},
|
2033
|
+
"rememberee": {
|
2034
|
+
"dead": true,
|
2035
|
+
"default": true,
|
2036
|
+
"fromSTM": true,
|
2037
|
+
"level": 1,
|
2038
|
+
"marker": "m1",
|
2039
|
+
"nameable_names": [
|
2040
|
+
"banana"
|
2041
|
+
],
|
2042
|
+
"pullFromContext": false,
|
2043
|
+
"range": {
|
2044
|
+
"end": 10,
|
2045
|
+
"start": 9
|
2046
|
+
},
|
2047
|
+
"stm_id": 1,
|
2048
|
+
"text": "m1",
|
2049
|
+
"types": [
|
2050
|
+
"m1"
|
2051
|
+
],
|
2052
|
+
"value": "m1",
|
2053
|
+
"word": "m1"
|
2054
|
+
},
|
2055
|
+
"text": "remember m1",
|
2056
|
+
"topLevel": true,
|
2057
|
+
"touchedBy": [
|
2058
|
+
"nameable#call2"
|
2059
|
+
],
|
2060
|
+
"value": "remember",
|
2061
|
+
"word": "remember"
|
2062
|
+
},
|
2063
|
+
"generatedParenthesized": "",
|
2064
|
+
"paraphrases": "remember m1",
|
2065
|
+
"paraphrasesParenthesized": "((remember) (m1))",
|
2066
|
+
"responses": [
|
2067
|
+
""
|
2068
|
+
]
|
2069
|
+
}
|
2070
|
+
]
|
2071
|
+
},
|
2072
|
+
"paraphrases": [
|
2073
|
+
"remember m1",
|
2074
|
+
"call the m1 banana",
|
2075
|
+
"banana"
|
2076
|
+
],
|
2077
|
+
"paraphrasesParenthesized": [
|
2078
|
+
"((remember) (m1))",
|
2079
|
+
"(call (the (m1)) (banana))",
|
2080
|
+
"(banana)"
|
2081
|
+
],
|
2082
|
+
"query": "remember m1\\ncall the m1 banana\\nbanana",
|
2083
|
+
"responses": [
|
2084
|
+
"",
|
2085
|
+
"",
|
2086
|
+
""
|
2087
|
+
]
|
1544
2088
|
}
|
1545
2089
|
]
|
package/common/stm.js
CHANGED
@@ -55,10 +55,10 @@ class API {
|
|
55
55
|
concept.value = value
|
56
56
|
}
|
57
57
|
concept.fromSTM = true
|
58
|
-
if (!concept.
|
59
|
-
concept.
|
58
|
+
if (!concept.stm_id) {
|
59
|
+
concept.stm_id = this.getId()
|
60
60
|
}
|
61
|
-
this._objects.mentioned = this._objects.mentioned.filter( (context) => context.
|
61
|
+
this._objects.mentioned = this._objects.mentioned.filter( (context) => context.stm_id != concept.stm_id )
|
62
62
|
this._objects.mentioned.unshift(concept)
|
63
63
|
}
|
64
64
|
|
@@ -233,7 +233,7 @@ knowledgeModule( {
|
|
233
233
|
name: './stm.test.json',
|
234
234
|
contents: stm_tests,
|
235
235
|
checks: {
|
236
|
-
context: [...defaultContextCheck, 'pullFromContext', '
|
236
|
+
context: [...defaultContextCheck, 'pullFromContext', 'stm_id'],
|
237
237
|
objects: ['mentioned'],
|
238
238
|
},
|
239
239
|
},
|
package/common/stm.test.json
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
"end": 10,
|
38
38
|
"start": 9
|
39
39
|
},
|
40
|
-
"
|
40
|
+
"stm_id": 1,
|
41
41
|
"text": "m1",
|
42
42
|
"types": [
|
43
43
|
"memorable"
|
@@ -121,7 +121,7 @@
|
|
121
121
|
"end": 10,
|
122
122
|
"start": 9
|
123
123
|
},
|
124
|
-
"
|
124
|
+
"stm_id": 1,
|
125
125
|
"text": "m1",
|
126
126
|
"types": [
|
127
127
|
"memorable"
|
@@ -160,7 +160,7 @@
|
|
160
160
|
"end": 10,
|
161
161
|
"start": 9
|
162
162
|
},
|
163
|
-
"
|
163
|
+
"stm_id": 1,
|
164
164
|
"text": "m1",
|
165
165
|
"types": [
|
166
166
|
"memorable"
|
@@ -527,7 +527,7 @@
|
|
527
527
|
"end": 10,
|
528
528
|
"start": 9
|
529
529
|
},
|
530
|
-
"
|
530
|
+
"stm_id": 1,
|
531
531
|
"text": "m1",
|
532
532
|
"types": [
|
533
533
|
"memorable"
|
@@ -566,7 +566,7 @@
|
|
566
566
|
"end": 10,
|
567
567
|
"start": 9
|
568
568
|
},
|
569
|
-
"
|
569
|
+
"stm_id": 1,
|
570
570
|
"text": "m1",
|
571
571
|
"types": [
|
572
572
|
"memorable"
|
@@ -724,7 +724,7 @@
|
|
724
724
|
"end": 10,
|
725
725
|
"start": 9
|
726
726
|
},
|
727
|
-
"
|
727
|
+
"stm_id": 1,
|
728
728
|
"text": "m1",
|
729
729
|
"types": [
|
730
730
|
"memorable"
|
@@ -764,7 +764,7 @@
|
|
764
764
|
"end": 10,
|
765
765
|
"start": 9
|
766
766
|
},
|
767
|
-
"
|
767
|
+
"stm_id": 1,
|
768
768
|
"text": "m1",
|
769
769
|
"types": [
|
770
770
|
"memorable"
|
@@ -832,7 +832,7 @@
|
|
832
832
|
"end": 10,
|
833
833
|
"start": 9
|
834
834
|
},
|
835
|
-
"
|
835
|
+
"stm_id": 1,
|
836
836
|
"text": "m1",
|
837
837
|
"types": [
|
838
838
|
"memorable"
|
@@ -1167,7 +1167,7 @@
|
|
1167
1167
|
"end": 10,
|
1168
1168
|
"start": 9
|
1169
1169
|
},
|
1170
|
-
"
|
1170
|
+
"stm_id": 1,
|
1171
1171
|
"text": "m1",
|
1172
1172
|
"types": [
|
1173
1173
|
"memorable"
|
@@ -1205,7 +1205,7 @@
|
|
1205
1205
|
"end": 10,
|
1206
1206
|
"start": 9
|
1207
1207
|
},
|
1208
|
-
"
|
1208
|
+
"stm_id": 2,
|
1209
1209
|
"text": "m2",
|
1210
1210
|
"types": [
|
1211
1211
|
"memorable"
|
@@ -1244,7 +1244,7 @@
|
|
1244
1244
|
"end": 10,
|
1245
1245
|
"start": 9
|
1246
1246
|
},
|
1247
|
-
"
|
1247
|
+
"stm_id": 1,
|
1248
1248
|
"text": "m1",
|
1249
1249
|
"types": [
|
1250
1250
|
"memorable"
|
@@ -1472,7 +1472,7 @@
|
|
1472
1472
|
"end": 10,
|
1473
1473
|
"start": 9
|
1474
1474
|
},
|
1475
|
-
"
|
1475
|
+
"stm_id": 2,
|
1476
1476
|
"text": "m2",
|
1477
1477
|
"types": [
|
1478
1478
|
"memorable"
|
@@ -1490,7 +1490,7 @@
|
|
1490
1490
|
"end": 10,
|
1491
1491
|
"start": 9
|
1492
1492
|
},
|
1493
|
-
"
|
1493
|
+
"stm_id": 1,
|
1494
1494
|
"text": "m1",
|
1495
1495
|
"types": [
|
1496
1496
|
"memorable"
|
@@ -1530,7 +1530,7 @@
|
|
1530
1530
|
"end": 10,
|
1531
1531
|
"start": 9
|
1532
1532
|
},
|
1533
|
-
"
|
1533
|
+
"stm_id": 1,
|
1534
1534
|
"text": "m1",
|
1535
1535
|
"types": [
|
1536
1536
|
"memorable"
|
@@ -1612,7 +1612,7 @@
|
|
1612
1612
|
"end": 10,
|
1613
1613
|
"start": 9
|
1614
1614
|
},
|
1615
|
-
"
|
1615
|
+
"stm_id": 2,
|
1616
1616
|
"text": "m2",
|
1617
1617
|
"types": [
|
1618
1618
|
"memorable"
|
@@ -1658,7 +1658,7 @@
|
|
1658
1658
|
"end": 10,
|
1659
1659
|
"start": 9
|
1660
1660
|
},
|
1661
|
-
"
|
1661
|
+
"stm_id": 1,
|
1662
1662
|
"text": "m1",
|
1663
1663
|
"types": [
|
1664
1664
|
"memorable"
|
package/package.json
CHANGED
@@ -291,8 +291,8 @@
|
|
291
291
|
"table": "^6.7.1",
|
292
292
|
"base-64": "^1.0.0",
|
293
293
|
"argparse": "^2.0.1",
|
294
|
-
"theprogrammablemind_4wp": "8.0.0-beta.
|
294
|
+
"theprogrammablemind_4wp": "8.0.0-beta.35"
|
295
295
|
},
|
296
|
-
"version": "8.0.0-beta.
|
296
|
+
"version": "8.0.0-beta.35",
|
297
297
|
"license": "UNLICENSED"
|
298
298
|
}
|