tpmkms_4wp 9.3.0 → 9.4.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/animals.instance.json +0 -65
- package/common/animals.js +2 -3
- package/common/animals.test.json +1607 -1
- package/common/articles.js +2 -4
- package/common/asking.js +21 -5
- package/common/avatar.js +4 -12
- package/common/characters.js +2 -2
- package/common/colors.instance.json +0 -70
- package/common/colors.js +2 -2
- package/common/comparable.instance.json +0 -15
- package/common/comparable.js +2 -2
- package/common/concept.js +1 -2
- package/common/concept.test.json +279 -193
- package/common/conjunction.js +3 -5
- package/common/countable.js +2 -14
- package/common/crew.instance.json +0 -130
- package/common/crew.js +2 -2
- package/common/currency.js +2 -3
- package/common/dateTimeSelectors.instance.json +175 -0
- package/common/dateTimeSelectors.js +168 -0
- package/common/dateTimeSelectors.test.json +85622 -0
- package/common/dates.instance.json +504 -486
- package/common/dates.js +128 -16
- package/common/dates.test.json +16867 -373
- package/common/dialogues.js +13 -49
- package/common/dimension.instance.json +0 -5
- package/common/dimension.js +4 -4
- package/common/edible.instance.json +0 -216
- package/common/edible.js +2 -2
- package/common/emotions.instance.json +0 -5
- package/common/emotions.js +2 -2
- package/common/errors.js +3 -0
- package/common/evaluate.js +2 -2
- package/common/events.js +1 -2
- package/common/fastfood.instance.json +28 -975
- package/common/fastfood.js +2 -4
- package/common/fastfood.test.json +16291 -6597
- package/common/formulas.instance.json +0 -5
- package/common/formulas.js +3 -1
- package/common/gdefaults.js +7 -4
- package/common/help.js +2 -2
- package/common/helpers/dateTimeSelectors.js +198 -0
- package/common/helpers/dialogues.js +11 -8
- package/common/helpers/properties.js +2 -2
- package/common/helpers.js +23 -47
- package/common/hierarchy.js +12 -13
- package/common/javascript.js +2 -3
- package/common/kirk.instance.json +30 -119
- package/common/kirk.js +2 -3
- package/common/length.instance.json +0 -75
- package/common/length.js +2 -3
- package/common/listener.js +3 -1
- package/common/math.instance.json +0 -5
- package/common/math.js +2 -3
- package/common/menus.instance.json +0 -35
- package/common/menus.js +3 -1
- package/common/meta.js +4 -5
- package/common/nameable.js +3 -1
- package/common/negation.js +2 -2
- package/common/numbers.js +7 -4
- package/common/numbers.test.json +89 -23
- package/common/ordering.instance.json +0 -10
- package/common/ordering.js +2 -3
- package/common/ordinals.js +2 -3
- package/common/people.instance.json +0 -40
- package/common/people.js +2 -3
- package/common/percentages.js +3 -4
- package/common/percentages.test.json +57 -11
- package/common/pipboy.instance.json +0 -85
- package/common/pipboy.js +1 -1
- package/common/pipboy.test.json +4377 -3386
- package/common/pokemon.instance.json +0 -65
- package/common/pokemon.js +1 -2
- package/common/pos.js +2 -2
- package/common/pressure.instance.json +0 -20
- package/common/pressure.js +2 -2
- package/common/properties.instance.json +0 -5
- package/common/properties.js +11 -13
- package/common/punctuation.js +2 -2
- package/common/reminders.instance.json +237 -0
- package/common/reminders.js +394 -0
- package/common/reminders.test.json +81932 -0
- package/common/reports.instance.json +2 -12
- package/common/reports.js +1 -1
- package/common/scorekeeper.js +2 -2
- package/common/scorekeeper.test.json +3565 -7550
- package/common/sdefaults.js +1 -1
- package/common/self.instance.json +2 -0
- package/common/self.js +49 -0
- package/common/self.test.json +2 -0
- package/common/sizeable.js +2 -2
- package/common/spock.instance.json +30 -119
- package/common/spock.js +1 -1
- package/common/stgame.js +1 -1
- package/common/stm.js +1 -1
- package/common/tell.js +2 -2
- package/common/temperature.instance.json +84 -20
- package/common/temperature.js +2 -2
- package/common/tester.js +0 -1
- package/common/testing.js +0 -1
- package/common/time.js +57 -30
- package/common/time.test.json +4159 -205
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +0 -5
- package/common/ui.js +4 -2
- package/common/weight.instance.json +0 -60
- package/common/weight.js +2 -2
- package/common/wp.instance.json +386 -72
- package/common/wp.js +1 -5
- package/common/wp.test.json +8057 -3867
- package/common/yesno.js +2 -2
- package/main.js +6 -0
- package/package.json +16 -4
package/common/sdefaults.js
CHANGED
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
|
+
})
|
package/common/sizeable.js
CHANGED
@@ -500,11 +500,6 @@
|
|
500
500
|
"theAble",
|
501
501
|
false
|
502
502
|
],
|
503
|
-
[
|
504
|
-
"evaluate",
|
505
|
-
"verb",
|
506
|
-
false
|
507
|
-
],
|
508
503
|
[
|
509
504
|
"every",
|
510
505
|
"article",
|
@@ -1598,27 +1593,6 @@
|
|
1598
1593
|
],
|
1599
1594
|
"metadata": {
|
1600
1595
|
"opChoices": [
|
1601
|
-
{
|
1602
|
-
"op": [
|
1603
|
-
"self",
|
1604
|
-
0
|
1605
|
-
],
|
1606
|
-
"ops": [
|
1607
|
-
[
|
1608
|
-
"is",
|
1609
|
-
0
|
1610
|
-
],
|
1611
|
-
[
|
1612
|
-
"self",
|
1613
|
-
0
|
1614
|
-
],
|
1615
|
-
[
|
1616
|
-
"spock",
|
1617
|
-
0
|
1618
|
-
]
|
1619
|
-
],
|
1620
|
-
"counter": 1
|
1621
|
-
},
|
1622
1596
|
{
|
1623
1597
|
"op": [
|
1624
1598
|
"spock",
|
@@ -1634,7 +1608,7 @@
|
|
1634
1608
|
0
|
1635
1609
|
]
|
1636
1610
|
],
|
1637
|
-
"counter":
|
1611
|
+
"counter": 1
|
1638
1612
|
},
|
1639
1613
|
{
|
1640
1614
|
"op": [
|
@@ -1647,7 +1621,7 @@
|
|
1647
1621
|
0
|
1648
1622
|
]
|
1649
1623
|
],
|
1650
|
-
"counter":
|
1624
|
+
"counter": 2
|
1651
1625
|
},
|
1652
1626
|
{
|
1653
1627
|
"op": [
|
@@ -1660,7 +1634,7 @@
|
|
1660
1634
|
1
|
1661
1635
|
]
|
1662
1636
|
],
|
1663
|
-
"counter":
|
1637
|
+
"counter": 3
|
1664
1638
|
}
|
1665
1639
|
]
|
1666
1640
|
},
|
@@ -1676,21 +1650,28 @@
|
|
1676
1650
|
"end": 12
|
1677
1651
|
},
|
1678
1652
|
"one": {
|
1679
|
-
"number":
|
1680
|
-
|
1681
|
-
|
1653
|
+
"number": [
|
1654
|
+
"one",
|
1655
|
+
"many"
|
1656
|
+
],
|
1657
|
+
"word": "you",
|
1658
|
+
"grammar_person": 2,
|
1659
|
+
"grammer_case": [
|
1660
|
+
"nominative",
|
1661
|
+
"dative",
|
1662
|
+
"accusative"
|
1663
|
+
],
|
1682
1664
|
"text": "you",
|
1683
1665
|
"marker": "self",
|
1684
|
-
"
|
1666
|
+
"dead": true,
|
1685
1667
|
"range": {
|
1686
1668
|
"start": 0,
|
1687
1669
|
"end": 12
|
1688
1670
|
},
|
1689
|
-
"dead": true,
|
1690
1671
|
"types": [
|
1691
1672
|
"self"
|
1692
1673
|
],
|
1693
|
-
"level":
|
1674
|
+
"level": 0
|
1694
1675
|
},
|
1695
1676
|
"two": {
|
1696
1677
|
"value": "spock",
|
@@ -1738,10 +1719,6 @@
|
|
1738
1719
|
[
|
1739
1720
|
"self",
|
1740
1721
|
0
|
1741
|
-
],
|
1742
|
-
[
|
1743
|
-
"spock",
|
1744
|
-
0
|
1745
1722
|
]
|
1746
1723
|
],
|
1747
1724
|
[
|
@@ -1749,6 +1726,10 @@
|
|
1749
1726
|
"is",
|
1750
1727
|
0
|
1751
1728
|
],
|
1729
|
+
[
|
1730
|
+
"self",
|
1731
|
+
0
|
1732
|
+
],
|
1752
1733
|
[
|
1753
1734
|
"spock",
|
1754
1735
|
0
|
@@ -1798,43 +1779,8 @@
|
|
1798
1779
|
{
|
1799
1780
|
"marker": [
|
1800
1781
|
"self",
|
1801
|
-
1
|
1802
|
-
],
|
1803
|
-
"range": {
|
1804
|
-
"start": 0,
|
1805
|
-
"end": 2
|
1806
|
-
}
|
1807
|
-
},
|
1808
|
-
{
|
1809
|
-
"marker": [
|
1810
|
-
"is",
|
1811
|
-
0
|
1812
|
-
],
|
1813
|
-
"range": {
|
1814
|
-
"start": 4,
|
1815
|
-
"end": 6
|
1816
|
-
}
|
1817
|
-
},
|
1818
|
-
{
|
1819
|
-
"marker": [
|
1820
|
-
"spock",
|
1821
1782
|
0
|
1822
1783
|
],
|
1823
|
-
"range": {
|
1824
|
-
"start": 8,
|
1825
|
-
"end": 12
|
1826
|
-
}
|
1827
|
-
}
|
1828
|
-
],
|
1829
|
-
"counter": 2
|
1830
|
-
},
|
1831
|
-
{
|
1832
|
-
"operators": [
|
1833
|
-
{
|
1834
|
-
"marker": [
|
1835
|
-
"self",
|
1836
|
-
1
|
1837
|
-
],
|
1838
1784
|
"range": {
|
1839
1785
|
"start": 0,
|
1840
1786
|
"end": 2
|
@@ -1861,7 +1807,7 @@
|
|
1861
1807
|
}
|
1862
1808
|
}
|
1863
1809
|
],
|
1864
|
-
"counter":
|
1810
|
+
"counter": 2
|
1865
1811
|
},
|
1866
1812
|
{
|
1867
1813
|
"operators": [
|
@@ -1876,7 +1822,7 @@
|
|
1876
1822
|
}
|
1877
1823
|
}
|
1878
1824
|
],
|
1879
|
-
"counter":
|
1825
|
+
"counter": 3
|
1880
1826
|
},
|
1881
1827
|
{
|
1882
1828
|
"operators": [
|
@@ -1891,7 +1837,7 @@
|
|
1891
1837
|
}
|
1892
1838
|
}
|
1893
1839
|
],
|
1894
|
-
"counter":
|
1840
|
+
"counter": 4
|
1895
1841
|
}
|
1896
1842
|
],
|
1897
1843
|
"length": 1
|
@@ -1916,10 +1862,6 @@
|
|
1916
1862
|
[
|
1917
1863
|
"self",
|
1918
1864
|
0
|
1919
|
-
],
|
1920
|
-
[
|
1921
|
-
"spock",
|
1922
|
-
0
|
1923
1865
|
]
|
1924
1866
|
],
|
1925
1867
|
[
|
@@ -1927,6 +1869,10 @@
|
|
1927
1869
|
"is",
|
1928
1870
|
0
|
1929
1871
|
],
|
1872
|
+
[
|
1873
|
+
"self",
|
1874
|
+
0
|
1875
|
+
],
|
1930
1876
|
[
|
1931
1877
|
"spock",
|
1932
1878
|
0
|
@@ -1976,43 +1922,8 @@
|
|
1976
1922
|
{
|
1977
1923
|
"marker": [
|
1978
1924
|
"self",
|
1979
|
-
1
|
1980
|
-
],
|
1981
|
-
"range": {
|
1982
|
-
"start": 0,
|
1983
|
-
"end": 2
|
1984
|
-
}
|
1985
|
-
},
|
1986
|
-
{
|
1987
|
-
"marker": [
|
1988
|
-
"is",
|
1989
1925
|
0
|
1990
1926
|
],
|
1991
|
-
"range": {
|
1992
|
-
"start": 4,
|
1993
|
-
"end": 6
|
1994
|
-
}
|
1995
|
-
},
|
1996
|
-
{
|
1997
|
-
"marker": [
|
1998
|
-
"spock",
|
1999
|
-
0
|
2000
|
-
],
|
2001
|
-
"range": {
|
2002
|
-
"start": 8,
|
2003
|
-
"end": 12
|
2004
|
-
}
|
2005
|
-
}
|
2006
|
-
],
|
2007
|
-
"counter": 2
|
2008
|
-
},
|
2009
|
-
{
|
2010
|
-
"operators": [
|
2011
|
-
{
|
2012
|
-
"marker": [
|
2013
|
-
"self",
|
2014
|
-
1
|
2015
|
-
],
|
2016
1927
|
"range": {
|
2017
1928
|
"start": 0,
|
2018
1929
|
"end": 2
|
@@ -2039,7 +1950,7 @@
|
|
2039
1950
|
}
|
2040
1951
|
}
|
2041
1952
|
],
|
2042
|
-
"counter":
|
1953
|
+
"counter": 2
|
2043
1954
|
},
|
2044
1955
|
{
|
2045
1956
|
"operators": [
|
@@ -2054,7 +1965,7 @@
|
|
2054
1965
|
}
|
2055
1966
|
}
|
2056
1967
|
],
|
2057
|
-
"counter":
|
1968
|
+
"counter": 3
|
2058
1969
|
},
|
2059
1970
|
{
|
2060
1971
|
"operators": [
|
@@ -2069,7 +1980,7 @@
|
|
2069
1980
|
}
|
2070
1981
|
}
|
2071
1982
|
],
|
2072
|
-
"counter":
|
1983
|
+
"counter": 4
|
2073
1984
|
}
|
2074
1985
|
],
|
2075
1986
|
"length": 1
|
package/common/spock.js
CHANGED
package/common/stgame.js
CHANGED
package/common/stm.js
CHANGED
@@ -270,7 +270,7 @@ knowledgeModule( {
|
|
270
270
|
name: './stm.test.json',
|
271
271
|
contents: stm_tests,
|
272
272
|
checks: {
|
273
|
-
|
273
|
+
context: [defaultContextCheck({ extra: ['pullFromContext', 'stm_id'] })],
|
274
274
|
objects: [{ property: 'mentioned', filter: helpers.defaultContextCheckProperties }],
|
275
275
|
},
|
276
276
|
},
|
package/common/tell.js
CHANGED
@@ -243,11 +243,6 @@
|
|
243
243
|
"article",
|
244
244
|
false
|
245
245
|
],
|
246
|
-
[
|
247
|
-
"evaluate",
|
248
|
-
"verb",
|
249
|
-
false
|
250
|
-
],
|
251
246
|
[
|
252
247
|
"every",
|
253
248
|
"article",
|
@@ -1675,11 +1670,6 @@
|
|
1675
1670
|
"article",
|
1676
1671
|
false
|
1677
1672
|
],
|
1678
|
-
[
|
1679
|
-
"evaluate",
|
1680
|
-
"verb",
|
1681
|
-
false
|
1682
|
-
],
|
1683
1673
|
[
|
1684
1674
|
"every",
|
1685
1675
|
"article",
|
@@ -3919,11 +3909,6 @@
|
|
3919
3909
|
"article",
|
3920
3910
|
false
|
3921
3911
|
],
|
3922
|
-
[
|
3923
|
-
"evaluate",
|
3924
|
-
"verb",
|
3925
|
-
false
|
3926
|
-
],
|
3927
3912
|
[
|
3928
3913
|
"every",
|
3929
3914
|
"article",
|
@@ -6397,11 +6382,6 @@
|
|
6397
6382
|
"article",
|
6398
6383
|
false
|
6399
6384
|
],
|
6400
|
-
[
|
6401
|
-
"evaluate",
|
6402
|
-
"verb",
|
6403
|
-
false
|
6404
|
-
],
|
6405
6385
|
[
|
6406
6386
|
"every",
|
6407
6387
|
"article",
|
@@ -7827,6 +7807,48 @@
|
|
7827
7807
|
0
|
7828
7808
|
]
|
7829
7809
|
],
|
7810
|
+
[
|
7811
|
+
[
|
7812
|
+
"celcius",
|
7813
|
+
0
|
7814
|
+
],
|
7815
|
+
[
|
7816
|
+
"divideByOperator",
|
7817
|
+
0
|
7818
|
+
],
|
7819
|
+
[
|
7820
|
+
"equals",
|
7821
|
+
0
|
7822
|
+
],
|
7823
|
+
[
|
7824
|
+
"fahrenheit",
|
7825
|
+
0
|
7826
|
+
],
|
7827
|
+
[
|
7828
|
+
"integer",
|
7829
|
+
0
|
7830
|
+
],
|
7831
|
+
[
|
7832
|
+
"leftParenthesis",
|
7833
|
+
0
|
7834
|
+
],
|
7835
|
+
[
|
7836
|
+
"minusOperator",
|
7837
|
+
0
|
7838
|
+
],
|
7839
|
+
[
|
7840
|
+
"plusOperator",
|
7841
|
+
0
|
7842
|
+
],
|
7843
|
+
[
|
7844
|
+
"rightParenthesis",
|
7845
|
+
0
|
7846
|
+
],
|
7847
|
+
[
|
7848
|
+
"timesOperator",
|
7849
|
+
0
|
7850
|
+
]
|
7851
|
+
],
|
7830
7852
|
[
|
7831
7853
|
[
|
7832
7854
|
"celcius",
|
@@ -9402,6 +9424,48 @@
|
|
9402
9424
|
0
|
9403
9425
|
]
|
9404
9426
|
],
|
9427
|
+
[
|
9428
|
+
[
|
9429
|
+
"celcius",
|
9430
|
+
0
|
9431
|
+
],
|
9432
|
+
[
|
9433
|
+
"divideByOperator",
|
9434
|
+
0
|
9435
|
+
],
|
9436
|
+
[
|
9437
|
+
"equals",
|
9438
|
+
0
|
9439
|
+
],
|
9440
|
+
[
|
9441
|
+
"fahrenheit",
|
9442
|
+
0
|
9443
|
+
],
|
9444
|
+
[
|
9445
|
+
"integer",
|
9446
|
+
0
|
9447
|
+
],
|
9448
|
+
[
|
9449
|
+
"leftParenthesis",
|
9450
|
+
0
|
9451
|
+
],
|
9452
|
+
[
|
9453
|
+
"minusOperator",
|
9454
|
+
0
|
9455
|
+
],
|
9456
|
+
[
|
9457
|
+
"plusOperator",
|
9458
|
+
0
|
9459
|
+
],
|
9460
|
+
[
|
9461
|
+
"rightParenthesis",
|
9462
|
+
0
|
9463
|
+
],
|
9464
|
+
[
|
9465
|
+
"timesOperator",
|
9466
|
+
0
|
9467
|
+
]
|
9468
|
+
],
|
9405
9469
|
[
|
9406
9470
|
[
|
9407
9471
|
"celcius",
|
package/common/temperature.js
CHANGED
package/common/tester.js
CHANGED