ekms 7.12.8 → 8.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/common/animals.instance.json +192 -406
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -6
  5. package/common/{pipboyTemplate.instance.json → colors.instance.json} +13784 -8900
  6. package/common/colors.js +71 -0
  7. package/common/colors.test.json +4860 -0
  8. package/common/concept.js +2 -2
  9. package/common/crew.instance.json +3945 -3636
  10. package/common/crew.js +5 -3
  11. package/common/currency.js +0 -2
  12. package/common/dialogues.js +152 -20
  13. package/common/dialogues.test.json +1053 -33
  14. package/common/dimension.instance.json +750 -86
  15. package/common/dimension.js +15 -7
  16. package/common/dimension.test.json +289 -312
  17. package/common/edible.instance.json +446 -578
  18. package/common/edible.js +1 -1
  19. package/common/emotions.instance.json +67 -39
  20. package/common/emotions.js +1 -1
  21. package/common/fastfood.instance.json +1769 -2136
  22. package/common/fastfood.js +2 -2
  23. package/common/fastfood.test.json +7941 -3647
  24. package/common/formulas.instance.json +996 -0
  25. package/common/formulas.js +19 -6
  26. package/common/formulas.test.json +504 -2896
  27. package/common/gdefaults.js +2 -0
  28. package/common/help.js +7 -2
  29. package/common/help.test.json +18 -10
  30. package/common/helpers/concept.js +29 -9
  31. package/common/helpers/dialogues.js +17 -1
  32. package/common/helpers/formulas.js +0 -14
  33. package/common/helpers/meta.js +0 -1
  34. package/common/helpers/properties.js +6 -13
  35. package/common/helpers.js +5 -0
  36. package/common/javascript.js +8 -6
  37. package/common/kirk.instance.json +5 -1
  38. package/common/kirk.js +1 -1
  39. package/common/length.instance.json +417 -811
  40. package/common/length.js +1 -1
  41. package/common/math.instance.json +1938 -1
  42. package/common/math.js +17 -5
  43. package/common/meta.instance.json +1 -1
  44. package/common/meta.js +33 -10
  45. package/common/numbers.js +28 -24
  46. package/common/ordering.instance.json +98 -138
  47. package/common/ordering.js +1 -1
  48. package/common/people.instance.json +68 -121
  49. package/common/people.js +1 -1
  50. package/common/pipboy.instance.json +23411 -1076
  51. package/common/pipboy.js +31 -4
  52. package/common/pipboy.test.json +13 -9
  53. package/common/pokemon.instance.json +172 -223
  54. package/common/pokemon.js +1 -1
  55. package/common/pressure.instance.json +131 -81
  56. package/common/pressure.js +1 -1
  57. package/common/properties.instance.json +25 -49
  58. package/common/properties.js +20 -15
  59. package/common/properties.test.json +17605 -4030
  60. package/common/punctuation.js +8 -0
  61. package/common/punctuation.test.json +233 -5
  62. package/common/reports.instance.json +33 -65
  63. package/common/reports.js +9 -9
  64. package/common/scorekeeper.instance.json +1 -1
  65. package/common/scorekeeper.js +9 -7
  66. package/common/sizeable.js +7 -2
  67. package/common/spock.instance.json +5 -1
  68. package/common/spock.js +1 -1
  69. package/common/stm.js +16 -5
  70. package/common/tell.js +4 -2
  71. package/common/temperature.instance.json +142 -252
  72. package/common/temperature.js +1 -1
  73. package/common/testing.js +0 -1
  74. package/common/time.js +36 -20
  75. package/common/time.test.json +66 -44
  76. package/common/tokenize.js +47 -0
  77. package/common/tokenize.test.json +87 -0
  78. package/common/ui.instance.json +13 -1
  79. package/common/ui.js +0 -1
  80. package/common/weight.instance.json +335 -228
  81. package/common/weight.js +1 -1
  82. package/common/weight.test.json +242 -238
  83. package/main.js +6 -8
  84. package/package.json +10 -18
  85. package/common/dimensionTemplate.instance.json +0 -582
  86. package/common/dimensionTemplate.js +0 -35
  87. package/common/dimensionTemplate.test.json +0 -2
  88. package/common/formulasTemplate.instance.json +0 -483
  89. package/common/formulasTemplate.js +0 -30
  90. package/common/formulasTemplate.test.json +0 -2
  91. package/common/mathTemplate.instance.json +0 -1635
  92. package/common/mathTemplate.js +0 -32
  93. package/common/mathTemplate.test.json +0 -1422
  94. package/common/pipboyTemplate.js +0 -48
  95. package/common/pipboyTemplate.test.json +0 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "temperature is a dimension",
4
4
  "celcius fahrenheit and kelvin are units of temperature",
5
5
  "fahrenheit = celcius*9/5 + 32",
@@ -192,6 +192,10 @@
192
192
  "convertToUnits",
193
193
  "queryable"
194
194
  ],
195
+ [
196
+ "convertToUnits",
197
+ "testingValue"
198
+ ],
195
199
  [
196
200
  "countable",
197
201
  "hierarchyAble"
@@ -240,6 +244,10 @@
240
244
  "divideByOperator",
241
245
  "mathematicalOperator"
242
246
  ],
247
+ [
248
+ "doubleQuote",
249
+ "queryable"
250
+ ],
243
251
  [
244
252
  "expression",
245
253
  "expression"
@@ -344,6 +352,10 @@
344
352
  "it",
345
353
  "toAble"
346
354
  ],
355
+ [
356
+ "length",
357
+ "dimension"
358
+ ],
347
359
  [
348
360
  "lowest",
349
361
  "condition"
@@ -572,6 +584,10 @@
572
584
  "reason",
573
585
  "theAble"
574
586
  ],
587
+ [
588
+ "testingValue",
589
+ "testingValue"
590
+ ],
575
591
  [
576
592
  "that",
577
593
  "thisitthat"
@@ -696,9 +712,17 @@
696
712
  "whose",
697
713
  "object"
698
714
  ],
715
+ [
716
+ "x",
717
+ "number"
718
+ ],
699
719
  [
700
720
  "xfx",
701
721
  "queryable"
722
+ ],
723
+ [
724
+ "y",
725
+ "number"
702
726
  ]
703
727
  ],
704
728
  "metadata": {
@@ -807,15 +831,15 @@
807
831
  },
808
832
  "one": {
809
833
  "number": "one",
834
+ "value": "temperature",
835
+ "unknown": true,
836
+ "text": "temperature",
810
837
  "marker": "unknown",
838
+ "word": "temperature",
811
839
  "range": {
812
840
  "start": 0,
813
841
  "end": 25
814
842
  },
815
- "word": "temperature",
816
- "text": "temperature",
817
- "value": "temperature",
818
- "unknown": true,
819
843
  "dead": true,
820
844
  "types": [
821
845
  "unknown"
@@ -1128,6 +1152,10 @@
1128
1152
  "convertToUnits",
1129
1153
  "queryable"
1130
1154
  ],
1155
+ [
1156
+ "convertToUnits",
1157
+ "testingValue"
1158
+ ],
1131
1159
  [
1132
1160
  "countable",
1133
1161
  "hierarchyAble"
@@ -1176,6 +1204,10 @@
1176
1204
  "divideByOperator",
1177
1205
  "mathematicalOperator"
1178
1206
  ],
1207
+ [
1208
+ "doubleQuote",
1209
+ "queryable"
1210
+ ],
1179
1211
  [
1180
1212
  "expression",
1181
1213
  "expression"
@@ -1280,6 +1312,10 @@
1280
1312
  "it",
1281
1313
  "toAble"
1282
1314
  ],
1315
+ [
1316
+ "length",
1317
+ "dimension"
1318
+ ],
1283
1319
  [
1284
1320
  "lowest",
1285
1321
  "condition"
@@ -1540,6 +1576,10 @@
1540
1576
  "temperature",
1541
1577
  "theAble"
1542
1578
  ],
1579
+ [
1580
+ "testingValue",
1581
+ "testingValue"
1582
+ ],
1543
1583
  [
1544
1584
  "that",
1545
1585
  "thisitthat"
@@ -1664,9 +1704,17 @@
1664
1704
  "whose",
1665
1705
  "object"
1666
1706
  ],
1707
+ [
1708
+ "x",
1709
+ "number"
1710
+ ],
1667
1711
  [
1668
1712
  "xfx",
1669
1713
  "queryable"
1714
+ ],
1715
+ [
1716
+ "y",
1717
+ "number"
1670
1718
  ]
1671
1719
  ],
1672
1720
  "metadata": {
@@ -1817,10 +1865,6 @@
1817
1865
  1
1818
1866
  ],
1819
1867
  "ops": [
1820
- [
1821
- "list",
1822
- 1
1823
- ],
1824
1868
  [
1825
1869
  "is",
1826
1870
  0
@@ -1844,35 +1888,6 @@
1844
1888
  ],
1845
1889
  "counter": 5
1846
1890
  },
1847
- {
1848
- "op": [
1849
- "list",
1850
- 1
1851
- ],
1852
- "ops": [
1853
- [
1854
- "is",
1855
- 0
1856
- ],
1857
- [
1858
- "unit",
1859
- 0
1860
- ],
1861
- [
1862
- "propertyOf",
1863
- 0
1864
- ],
1865
- [
1866
- "temperature",
1867
- 0
1868
- ],
1869
- [
1870
- "list",
1871
- 1
1872
- ]
1873
- ],
1874
- "counter": 6
1875
- },
1876
1891
  {
1877
1892
  "op": [
1878
1893
  "unit",
@@ -1896,7 +1911,7 @@
1896
1911
  0
1897
1912
  ]
1898
1913
  ],
1899
- "counter": 7
1914
+ "counter": 6
1900
1915
  },
1901
1916
  {
1902
1917
  "op": [
@@ -1917,7 +1932,7 @@
1917
1932
  0
1918
1933
  ]
1919
1934
  ],
1920
- "counter": 8
1935
+ "counter": 7
1921
1936
  },
1922
1937
  {
1923
1938
  "op": [
@@ -1934,7 +1949,7 @@
1934
1949
  0
1935
1950
  ]
1936
1951
  ],
1937
- "counter": 9
1952
+ "counter": 8
1938
1953
  },
1939
1954
  {
1940
1955
  "op": [
@@ -1951,7 +1966,7 @@
1951
1966
  1
1952
1967
  ]
1953
1968
  ],
1954
- "counter": 10
1969
+ "counter": 9
1955
1970
  },
1956
1971
  {
1957
1972
  "op": [
@@ -1964,7 +1979,7 @@
1964
1979
  0
1965
1980
  ]
1966
1981
  ],
1967
- "counter": 11
1982
+ "counter": 10
1968
1983
  },
1969
1984
  {
1970
1985
  "op": [
@@ -1977,7 +1992,7 @@
1977
1992
  1
1978
1993
  ]
1979
1994
  ],
1980
- "counter": 12
1995
+ "counter": 11
1981
1996
  }
1982
1997
  ]
1983
1998
  },
@@ -1995,57 +2010,60 @@
1995
2010
  "one": {
1996
2011
  "number": "many",
1997
2012
  "marker": "list",
2013
+ "default": true,
2014
+ "word": "and",
2015
+ "text": "celcius fahrenheit and kelvin",
2016
+ "range": {
2017
+ "start": 0,
2018
+ "end": 53
2019
+ },
2020
+ "types": [
2021
+ "list",
2022
+ "unknown"
2023
+ ],
1998
2024
  "listable": true,
2025
+ "isList": true,
1999
2026
  "value": [
2000
2027
  {
2028
+ "value": "celcius",
2029
+ "unknown": true,
2030
+ "text": "celcius",
2001
2031
  "marker": "unknown",
2032
+ "word": "celcius",
2002
2033
  "range": {
2003
2034
  "start": 0,
2004
2035
  "end": 6
2005
2036
  },
2006
- "word": "celcius",
2007
- "text": "celcius",
2008
- "value": "celcius",
2009
- "unknown": true,
2010
2037
  "dead": true,
2011
2038
  "level": 1
2012
2039
  },
2013
2040
  {
2041
+ "value": "fahrenheit",
2042
+ "unknown": true,
2043
+ "text": "fahrenheit",
2014
2044
  "marker": "unknown",
2045
+ "word": "fahrenheit",
2015
2046
  "range": {
2016
2047
  "start": 8,
2017
2048
  "end": 17
2018
2049
  },
2019
- "word": "fahrenheit",
2020
- "text": "fahrenheit",
2021
- "value": "fahrenheit",
2022
- "unknown": true,
2023
2050
  "dead": true,
2024
- "level": 2
2051
+ "level": 1
2025
2052
  },
2026
2053
  {
2054
+ "value": "kelvin",
2055
+ "unknown": true,
2056
+ "text": "kelvin",
2027
2057
  "marker": "unknown",
2058
+ "word": "kelvin",
2028
2059
  "range": {
2029
2060
  "start": 23,
2030
2061
  "end": 28
2031
2062
  },
2032
- "word": "kelvin",
2033
- "text": "kelvin",
2034
- "value": "kelvin",
2035
- "unknown": true,
2036
2063
  "dead": true,
2037
- "level": 2
2064
+ "level": 1
2038
2065
  }
2039
2066
  ],
2040
- "range": {
2041
- "start": 0,
2042
- "end": 53
2043
- },
2044
- "types": [
2045
- "list",
2046
- "unknown"
2047
- ],
2048
- "text": "celcius",
2049
2067
  "level": 1
2050
2068
  },
2051
2069
  "two": {
@@ -2191,36 +2209,6 @@
2191
2209
  1
2192
2210
  ]
2193
2211
  ],
2194
- [
2195
- [
2196
- "is",
2197
- 0
2198
- ],
2199
- [
2200
- "list",
2201
- 0
2202
- ],
2203
- [
2204
- "propertyOf",
2205
- 0
2206
- ],
2207
- [
2208
- "temperature",
2209
- 0
2210
- ],
2211
- [
2212
- "unit",
2213
- 0
2214
- ],
2215
- [
2216
- "unknown",
2217
- 0
2218
- ],
2219
- [
2220
- "unknown",
2221
- 1
2222
- ]
2223
- ],
2224
2212
  [
2225
2213
  [
2226
2214
  "is",
@@ -2350,16 +2338,6 @@
2350
2338
  "propertyOf",
2351
2339
  1
2352
2340
  ]
2353
- ],
2354
- [
2355
- [
2356
- "temperature",
2357
- 0
2358
- ],
2359
- [
2360
- "unknown",
2361
- 0
2362
- ]
2363
2341
  ]
2364
2342
  ],
2365
2343
  "learned_contextual_priorities": [],
@@ -2586,6 +2564,10 @@
2586
2564
  "convertToUnits",
2587
2565
  "queryable"
2588
2566
  ],
2567
+ [
2568
+ "convertToUnits",
2569
+ "testingValue"
2570
+ ],
2589
2571
  [
2590
2572
  "countable",
2591
2573
  "hierarchyAble"
@@ -2634,6 +2616,10 @@
2634
2616
  "divideByOperator",
2635
2617
  "mathematicalOperator"
2636
2618
  ],
2619
+ [
2620
+ "doubleQuote",
2621
+ "queryable"
2622
+ ],
2637
2623
  [
2638
2624
  "expression",
2639
2625
  "expression"
@@ -2802,6 +2788,10 @@
2802
2788
  "kelvin",
2803
2789
  "unit"
2804
2790
  ],
2791
+ [
2792
+ "length",
2793
+ "dimension"
2794
+ ],
2805
2795
  [
2806
2796
  "lowest",
2807
2797
  "condition"
@@ -3062,6 +3052,10 @@
3062
3052
  "temperature",
3063
3053
  "theAble"
3064
3054
  ],
3055
+ [
3056
+ "testingValue",
3057
+ "testingValue"
3058
+ ],
3065
3059
  [
3066
3060
  "that",
3067
3061
  "thisitthat"
@@ -3186,9 +3180,17 @@
3186
3180
  "whose",
3187
3181
  "object"
3188
3182
  ],
3183
+ [
3184
+ "x",
3185
+ "number"
3186
+ ],
3189
3187
  [
3190
3188
  "xfx",
3191
3189
  "queryable"
3190
+ ],
3191
+ [
3192
+ "y",
3193
+ "number"
3192
3194
  ]
3193
3195
  ],
3194
3196
  "metadata": {
@@ -3459,7 +3461,7 @@
3459
3461
  "trace": "undefined",
3460
3462
  "contexts": [
3461
3463
  {
3462
- "value": "=",
3464
+ "value": "equals",
3463
3465
  "text": "fahrenheit = celcius*9/5 + 32",
3464
3466
  "marker": "equals",
3465
3467
  "word": "=",
@@ -3487,7 +3489,7 @@
3487
3489
  },
3488
3490
  "right": {
3489
3491
  "value": null,
3490
- "text": "celcius * 9 / 5 + 32",
3492
+ "text": "celcius*9/5 + 32",
3491
3493
  "marker": "plusExpression",
3492
3494
  "word": "+",
3493
3495
  "range": {
@@ -3501,7 +3503,7 @@
3501
3503
  ],
3502
3504
  "x": {
3503
3505
  "value": null,
3504
- "text": "celcius * 9 / 5",
3506
+ "text": "celcius*9/5",
3505
3507
  "marker": "divideByExpression",
3506
3508
  "word": "/",
3507
3509
  "range": {
@@ -3515,7 +3517,7 @@
3515
3517
  ],
3516
3518
  "x": {
3517
3519
  "value": null,
3518
- "text": "celcius * 9",
3520
+ "text": "celcius*9",
3519
3521
  "marker": "timesExpression",
3520
3522
  "word": "*",
3521
3523
  "range": {
@@ -3626,28 +3628,6 @@
3626
3628
  ""
3627
3629
  ],
3628
3630
  "associations": [
3629
- [
3630
- [
3631
- "*",
3632
- 0
3633
- ],
3634
- [
3635
- "+",
3636
- 0
3637
- ],
3638
- [
3639
- "/",
3640
- 0
3641
- ],
3642
- [
3643
- "celcius",
3644
- 0
3645
- ],
3646
- [
3647
- "fahrenheit",
3648
- 0
3649
- ]
3650
- ],
3651
3631
  [
3652
3632
  [
3653
3633
  "celcius",
@@ -3993,6 +3973,10 @@
3993
3973
  "convertToUnits",
3994
3974
  "queryable"
3995
3975
  ],
3976
+ [
3977
+ "convertToUnits",
3978
+ "testingValue"
3979
+ ],
3996
3980
  [
3997
3981
  "countable",
3998
3982
  "hierarchyAble"
@@ -4041,6 +4025,10 @@
4041
4025
  "divideByOperator",
4042
4026
  "mathematicalOperator"
4043
4027
  ],
4028
+ [
4029
+ "doubleQuote",
4030
+ "queryable"
4031
+ ],
4044
4032
  [
4045
4033
  "expression",
4046
4034
  "expression"
@@ -4209,6 +4197,10 @@
4209
4197
  "kelvin",
4210
4198
  "unit"
4211
4199
  ],
4200
+ [
4201
+ "length",
4202
+ "dimension"
4203
+ ],
4212
4204
  [
4213
4205
  "lowest",
4214
4206
  "condition"
@@ -4469,6 +4461,10 @@
4469
4461
  "temperature",
4470
4462
  "theAble"
4471
4463
  ],
4464
+ [
4465
+ "testingValue",
4466
+ "testingValue"
4467
+ ],
4472
4468
  [
4473
4469
  "that",
4474
4470
  "thisitthat"
@@ -4593,9 +4589,17 @@
4593
4589
  "whose",
4594
4590
  "object"
4595
4591
  ],
4592
+ [
4593
+ "x",
4594
+ "number"
4595
+ ],
4596
4596
  [
4597
4597
  "xfx",
4598
4598
  "queryable"
4599
+ ],
4600
+ [
4601
+ "y",
4602
+ "number"
4599
4603
  ]
4600
4604
  ],
4601
4605
  "metadata": {
@@ -4902,7 +4906,7 @@
4902
4906
  "trace": "undefined",
4903
4907
  "contexts": [
4904
4908
  {
4905
- "value": "=",
4909
+ "value": "equals",
4906
4910
  "text": "celcius = (fahrenheit - 32)*5/8 + 32",
4907
4911
  "marker": "equals",
4908
4912
  "word": "=",
@@ -4930,7 +4934,7 @@
4930
4934
  },
4931
4935
  "right": {
4932
4936
  "value": null,
4933
- "text": "( fahrenheit - 32 ) * 5 / 8 + 32",
4937
+ "text": "(fahrenheit - 32)*5/8 + 32",
4934
4938
  "marker": "plusExpression",
4935
4939
  "word": "+",
4936
4940
  "range": {
@@ -4944,7 +4948,7 @@
4944
4948
  ],
4945
4949
  "x": {
4946
4950
  "value": null,
4947
- "text": "( fahrenheit - 32 ) * 5 / 8",
4951
+ "text": "(fahrenheit - 32)*5/8",
4948
4952
  "marker": "divideByExpression",
4949
4953
  "word": "/",
4950
4954
  "range": {
@@ -4958,7 +4962,7 @@
4958
4962
  ],
4959
4963
  "x": {
4960
4964
  "value": null,
4961
- "text": "( fahrenheit - 32 ) * 5",
4965
+ "text": "(fahrenheit - 32)*5",
4962
4966
  "marker": "timesExpression",
4963
4967
  "word": "*",
4964
4968
  "range": {
@@ -4972,7 +4976,7 @@
4972
4976
  ],
4973
4977
  "x": {
4974
4978
  "value": null,
4975
- "text": "( fahrenheit - 32 )",
4979
+ "text": "(fahrenheit - 32)",
4976
4980
  "marker": "minusExpression",
4977
4981
  "word": "-",
4978
4982
  "range": {
@@ -5105,32 +5109,6 @@
5105
5109
  ""
5106
5110
  ],
5107
5111
  "associations": [
5108
- [
5109
- [
5110
- "*",
5111
- 0
5112
- ],
5113
- [
5114
- "+",
5115
- 0
5116
- ],
5117
- [
5118
- "-",
5119
- 0
5120
- ],
5121
- [
5122
- "/",
5123
- 0
5124
- ],
5125
- [
5126
- "celcius",
5127
- 0
5128
- ],
5129
- [
5130
- "fahrenheit",
5131
- 0
5132
- ]
5133
- ],
5134
5112
  [
5135
5113
  [
5136
5114
  "celcius",
@@ -5376,54 +5354,6 @@
5376
5354
  "fragments": [],
5377
5355
  "semantics": [],
5378
5356
  "associations": [
5379
- [
5380
- [
5381
- "*",
5382
- 0
5383
- ],
5384
- [
5385
- "+",
5386
- 0
5387
- ],
5388
- [
5389
- "-",
5390
- 0
5391
- ],
5392
- [
5393
- "/",
5394
- 0
5395
- ],
5396
- [
5397
- "celcius",
5398
- 0
5399
- ],
5400
- [
5401
- "fahrenheit",
5402
- 0
5403
- ]
5404
- ],
5405
- [
5406
- [
5407
- "*",
5408
- 0
5409
- ],
5410
- [
5411
- "+",
5412
- 0
5413
- ],
5414
- [
5415
- "/",
5416
- 0
5417
- ],
5418
- [
5419
- "celcius",
5420
- 0
5421
- ],
5422
- [
5423
- "fahrenheit",
5424
- 0
5425
- ]
5426
- ],
5427
5357
  [
5428
5358
  [
5429
5359
  "a",
@@ -5884,36 +5814,6 @@
5884
5814
  1
5885
5815
  ]
5886
5816
  ],
5887
- [
5888
- [
5889
- "is",
5890
- 0
5891
- ],
5892
- [
5893
- "list",
5894
- 0
5895
- ],
5896
- [
5897
- "propertyOf",
5898
- 0
5899
- ],
5900
- [
5901
- "temperature",
5902
- 0
5903
- ],
5904
- [
5905
- "unit",
5906
- 0
5907
- ],
5908
- [
5909
- "unknown",
5910
- 0
5911
- ],
5912
- [
5913
- "unknown",
5914
- 1
5915
- ]
5916
- ],
5917
5817
  [
5918
5818
  [
5919
5819
  "is",
@@ -6053,16 +5953,6 @@
6053
5953
  "unknown",
6054
5954
  1
6055
5955
  ]
6056
- ],
6057
- [
6058
- [
6059
- "temperature",
6060
- 0
6061
- ],
6062
- [
6063
- "unknown",
6064
- 0
6065
- ]
6066
5956
  ]
6067
5957
  ],
6068
5958
  "learned_contextual_priorities": []