ekms 8.0.0-beta.0 → 8.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +103 -113
- package/common/characters.js +0 -1
- package/common/colors.instance.json +22304 -0
- package/common/colors.js +71 -0
- package/common/colors.test.json +4860 -0
- package/common/concept.js +2 -2
- package/common/crew.instance.json +4142 -3545
- package/common/crew.js +4 -2
- package/common/dialogues.js +34 -7
- package/common/dialogues.test.json +1053 -33
- package/common/dimension.instance.json +20 -30
- package/common/dimension.test.json +289 -312
- package/common/edible.instance.json +216 -156
- package/common/emotions.instance.json +64 -0
- package/common/fastfood.instance.json +1011 -386
- package/common/fastfood.js +1 -1
- package/common/fastfood.test.json +7941 -3647
- package/common/formulas.instance.json +4 -0
- package/common/formulas.test.json +1027 -955
- package/common/help.test.json +14 -10
- package/common/helpers/concept.js +29 -9
- package/common/helpers/dialogues.js +17 -1
- package/common/helpers/formulas.js +0 -14
- package/common/helpers/meta.js +0 -1
- package/common/helpers/properties.js +6 -13
- package/common/kirk.instance.json +4 -0
- package/common/length.instance.json +93 -63
- package/common/math.instance.json +26 -47
- package/common/meta.js +0 -2
- package/common/ordering.instance.json +76 -0
- package/common/people.instance.json +35 -60
- package/common/pipboy.instance.json +215 -229
- package/common/pokemon.instance.json +131 -82
- package/common/pressure.instance.json +38 -48
- package/common/properties.instance.json +4 -0
- package/common/properties.js +7 -7
- package/common/properties.test.json +17605 -4030
- package/common/punctuation.js +8 -0
- package/common/punctuation.test.json +233 -5
- package/common/reports.instance.json +12 -4
- package/common/reports.js +0 -2
- package/common/sizeable.js +7 -2
- package/common/spock.instance.json +4 -0
- package/common/stm.js +16 -5
- package/common/temperature.instance.json +45 -59
- package/common/testing.js +0 -1
- package/common/tokenize.js +2 -1
- package/common/tokenize.test.json +86 -1
- package/common/ui.instance.json +4 -0
- package/common/ui.js +0 -1
- package/common/weight.instance.json +62 -11
- package/common/weight.test.json +242 -238
- package/main.js +2 -0
- package/package.json +6 -2
@@ -244,6 +244,10 @@
|
|
244
244
|
"divideByOperator",
|
245
245
|
"mathematicalOperator"
|
246
246
|
],
|
247
|
+
[
|
248
|
+
"doubleQuote",
|
249
|
+
"queryable"
|
250
|
+
],
|
247
251
|
[
|
248
252
|
"expression",
|
249
253
|
"expression"
|
@@ -1200,6 +1204,10 @@
|
|
1200
1204
|
"divideByOperator",
|
1201
1205
|
"mathematicalOperator"
|
1202
1206
|
],
|
1207
|
+
[
|
1208
|
+
"doubleQuote",
|
1209
|
+
"queryable"
|
1210
|
+
],
|
1203
1211
|
[
|
1204
1212
|
"expression",
|
1205
1213
|
"expression"
|
@@ -1810,35 +1818,6 @@
|
|
1810
1818
|
],
|
1811
1819
|
"counter": 3
|
1812
1820
|
},
|
1813
|
-
{
|
1814
|
-
"op": [
|
1815
|
-
"list",
|
1816
|
-
1
|
1817
|
-
],
|
1818
|
-
"ops": [
|
1819
|
-
[
|
1820
|
-
"list",
|
1821
|
-
1
|
1822
|
-
],
|
1823
|
-
[
|
1824
|
-
"is",
|
1825
|
-
0
|
1826
|
-
],
|
1827
|
-
[
|
1828
|
-
"unit",
|
1829
|
-
0
|
1830
|
-
],
|
1831
|
-
[
|
1832
|
-
"propertyOf",
|
1833
|
-
0
|
1834
|
-
],
|
1835
|
-
[
|
1836
|
-
"pressure",
|
1837
|
-
0
|
1838
|
-
]
|
1839
|
-
],
|
1840
|
-
"counter": 4
|
1841
|
-
},
|
1842
1821
|
{
|
1843
1822
|
"op": [
|
1844
1823
|
"unit",
|
@@ -1862,7 +1841,7 @@
|
|
1862
1841
|
0
|
1863
1842
|
]
|
1864
1843
|
],
|
1865
|
-
"counter":
|
1844
|
+
"counter": 4
|
1866
1845
|
},
|
1867
1846
|
{
|
1868
1847
|
"op": [
|
@@ -1883,7 +1862,7 @@
|
|
1883
1862
|
0
|
1884
1863
|
]
|
1885
1864
|
],
|
1886
|
-
"counter":
|
1865
|
+
"counter": 5
|
1887
1866
|
},
|
1888
1867
|
{
|
1889
1868
|
"op": [
|
@@ -1900,7 +1879,7 @@
|
|
1900
1879
|
0
|
1901
1880
|
]
|
1902
1881
|
],
|
1903
|
-
"counter":
|
1882
|
+
"counter": 6
|
1904
1883
|
},
|
1905
1884
|
{
|
1906
1885
|
"op": [
|
@@ -1917,7 +1896,7 @@
|
|
1917
1896
|
1
|
1918
1897
|
]
|
1919
1898
|
],
|
1920
|
-
"counter":
|
1899
|
+
"counter": 7
|
1921
1900
|
},
|
1922
1901
|
{
|
1923
1902
|
"op": [
|
@@ -1930,7 +1909,7 @@
|
|
1930
1909
|
0
|
1931
1910
|
]
|
1932
1911
|
],
|
1933
|
-
"counter":
|
1912
|
+
"counter": 8
|
1934
1913
|
},
|
1935
1914
|
{
|
1936
1915
|
"op": [
|
@@ -1943,7 +1922,7 @@
|
|
1943
1922
|
1
|
1944
1923
|
]
|
1945
1924
|
],
|
1946
|
-
"counter":
|
1925
|
+
"counter": 9
|
1947
1926
|
}
|
1948
1927
|
]
|
1949
1928
|
},
|
@@ -1961,7 +1940,19 @@
|
|
1961
1940
|
"one": {
|
1962
1941
|
"number": "many",
|
1963
1942
|
"marker": "list",
|
1943
|
+
"default": true,
|
1944
|
+
"word": "and",
|
1945
|
+
"text": "pascals and atmospheres",
|
1946
|
+
"range": {
|
1947
|
+
"start": 0,
|
1948
|
+
"end": 44
|
1949
|
+
},
|
1950
|
+
"types": [
|
1951
|
+
"list",
|
1952
|
+
"unknown"
|
1953
|
+
],
|
1964
1954
|
"listable": true,
|
1955
|
+
"isList": true,
|
1965
1956
|
"value": [
|
1966
1957
|
{
|
1967
1958
|
"value": "pascals",
|
@@ -1974,7 +1965,7 @@
|
|
1974
1965
|
"end": 6
|
1975
1966
|
},
|
1976
1967
|
"dead": true,
|
1977
|
-
"level":
|
1968
|
+
"level": 1
|
1978
1969
|
},
|
1979
1970
|
{
|
1980
1971
|
"value": "atmospheres",
|
@@ -1987,18 +1978,9 @@
|
|
1987
1978
|
"end": 22
|
1988
1979
|
},
|
1989
1980
|
"dead": true,
|
1990
|
-
"level":
|
1981
|
+
"level": 1
|
1991
1982
|
}
|
1992
1983
|
],
|
1993
|
-
"range": {
|
1994
|
-
"start": 0,
|
1995
|
-
"end": 44
|
1996
|
-
},
|
1997
|
-
"types": [
|
1998
|
-
"list",
|
1999
|
-
"unknown"
|
2000
|
-
],
|
2001
|
-
"text": "pascals and atmospheres are units of pressure",
|
2002
1984
|
"level": 1
|
2003
1985
|
},
|
2004
1986
|
"two": {
|
@@ -2525,6 +2507,10 @@
|
|
2525
2507
|
"divideByOperator",
|
2526
2508
|
"mathematicalOperator"
|
2527
2509
|
],
|
2510
|
+
[
|
2511
|
+
"doubleQuote",
|
2512
|
+
"queryable"
|
2513
|
+
],
|
2528
2514
|
[
|
2529
2515
|
"expression",
|
2530
2516
|
"expression"
|
@@ -3178,7 +3164,7 @@
|
|
3178
3164
|
"trace": "undefined",
|
3179
3165
|
"contexts": [
|
3180
3166
|
{
|
3181
|
-
"value": "
|
3167
|
+
"value": "equals",
|
3182
3168
|
"text": "pascals = atmospheres * 101325",
|
3183
3169
|
"marker": "equals",
|
3184
3170
|
"word": "=",
|
@@ -3616,6 +3602,10 @@
|
|
3616
3602
|
"divideByOperator",
|
3617
3603
|
"mathematicalOperator"
|
3618
3604
|
],
|
3605
|
+
[
|
3606
|
+
"doubleQuote",
|
3607
|
+
"queryable"
|
3608
|
+
],
|
3619
3609
|
[
|
3620
3610
|
"expression",
|
3621
3611
|
"expression"
|
@@ -4269,7 +4259,7 @@
|
|
4269
4259
|
"trace": "undefined",
|
4270
4260
|
"contexts": [
|
4271
4261
|
{
|
4272
|
-
"value": "
|
4262
|
+
"value": "equals",
|
4273
4263
|
"text": "atmospheres = pascals / 101325",
|
4274
4264
|
"marker": "equals",
|
4275
4265
|
"word": "=",
|
package/common/properties.js
CHANGED
@@ -153,7 +153,12 @@ let configStruct = {
|
|
153
153
|
{ id: "doesnt", level: 0, bridge: "{ ...context, number: operator.number, object.number: operator.number, negation: true }*" },
|
154
154
|
{ id: "have", level: 0, bridge: "{ ...next(operator), object: { number: operator.number, ...before }, property: after[0], do: { left: 'object', right: 'property' } }" },
|
155
155
|
{ id: "have", level: 1, bridge: "{ ...next(operator) }" },
|
156
|
-
{
|
156
|
+
{
|
157
|
+
id: "property",
|
158
|
+
words: ['properties'],
|
159
|
+
level: 0,
|
160
|
+
bridge: "{ ...next(operator) }"
|
161
|
+
},
|
157
162
|
{ id: "object", level: 0, bridge: "{ ...next(operator) }" },
|
158
163
|
|
159
164
|
// old
|
@@ -266,7 +271,6 @@ let configStruct = {
|
|
266
271
|
// */
|
267
272
|
// where: where(),
|
268
273
|
// match: ({context}) => {
|
269
|
-
// // debugger;
|
270
274
|
// if (!context.paraphrase) {
|
271
275
|
// return
|
272
276
|
// }
|
@@ -565,15 +569,12 @@ let configStruct = {
|
|
565
569
|
/*
|
566
570
|
const propertyId = context.marker
|
567
571
|
if (context.marker != context.value) {
|
568
|
-
debugger
|
569
|
-
debugger // target
|
570
572
|
}
|
571
573
|
*/
|
572
574
|
// const propertyId = context.marker
|
573
575
|
/*
|
574
576
|
// greg HERE
|
575
577
|
*/
|
576
|
-
// debugger;
|
577
578
|
propertyContext[`disable${uuid}`] = true
|
578
579
|
const propertyId = km("dialogues").api.evaluateToConcept(propertyContext, context, log, s).evalue;
|
579
580
|
try{
|
@@ -661,7 +662,6 @@ let configStruct = {
|
|
661
662
|
// TODO maybe this I aware so it can say "I don't know about blah..." and below
|
662
663
|
// if (currentContext.unknown || !currentContext.value) {
|
663
664
|
if (!api.conceptExists(currentContext.value)) {
|
664
|
-
// debugger;
|
665
665
|
// api.conceptExists(currentContext)
|
666
666
|
const objectPhrase = g({...currentContext, paraphrase: true})
|
667
667
|
context.verbatim = `What "${objectPhrase}" means is unknown`
|
@@ -708,7 +708,7 @@ knowledgeModule( {
|
|
708
708
|
contents: properties_tests,
|
709
709
|
checks: {
|
710
710
|
context: defaultContextCheck,
|
711
|
-
|
711
|
+
objects: [
|
712
712
|
'children',
|
713
713
|
'concept',
|
714
714
|
'parents',
|