ekms 7.12.8-beta.1 → 7.12.8-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/common/animals.instance.json +89 -249
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -5
  5. package/common/crew.instance.json +289 -577
  6. package/common/crew.js +1 -1
  7. package/common/currency.js +0 -2
  8. package/common/dialogues.js +16 -14
  9. package/common/dimension.instance.json +13 -13
  10. package/common/dimension.js +1 -1
  11. package/common/edible.instance.json +293 -297
  12. package/common/edible.js +1 -1
  13. package/common/emotions.instance.json +29 -65
  14. package/common/emotions.js +1 -1
  15. package/common/fastfood.instance.json +517 -1473
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +9 -9
  18. package/common/formulas.js +2 -2
  19. package/common/gdefaults.js +2 -0
  20. package/common/help.js +7 -2
  21. package/common/help.test.json +9 -5
  22. package/common/helpers.js +5 -0
  23. package/common/javascript.js +8 -6
  24. package/common/kirk.instance.json +1 -1
  25. package/common/kirk.js +1 -1
  26. package/common/length.instance.json +49 -229
  27. package/common/length.js +1 -1
  28. package/common/math.instance.json +21 -41
  29. package/common/math.js +1 -1
  30. package/common/meta.instance.json +1 -1
  31. package/common/meta.js +35 -10
  32. package/common/numbers.js +28 -24
  33. package/common/ordering.instance.json +37 -101
  34. package/common/ordering.js +1 -1
  35. package/common/people.instance.json +50 -78
  36. package/common/people.js +1 -1
  37. package/common/pipboy.instance.json +197 -201
  38. package/common/pipboy.js +1 -1
  39. package/common/pokemon.instance.json +41 -97
  40. package/common/pokemon.js +1 -1
  41. package/common/pressure.instance.json +13 -33
  42. package/common/pressure.js +1 -1
  43. package/common/properties.instance.json +21 -49
  44. package/common/properties.js +13 -8
  45. package/common/reports.instance.json +7 -63
  46. package/common/reports.js +9 -7
  47. package/common/scorekeeper.instance.json +1 -1
  48. package/common/scorekeeper.js +9 -7
  49. package/common/spock.instance.json +1 -1
  50. package/common/spock.js +1 -1
  51. package/common/tell.js +4 -2
  52. package/common/temperature.instance.json +17 -133
  53. package/common/temperature.js +1 -1
  54. package/common/time.js +36 -20
  55. package/common/time.test.json +66 -44
  56. package/common/tokenize.js +46 -0
  57. package/common/tokenize.test.json +2 -0
  58. package/common/ui.instance.json +1 -1
  59. package/common/weight.instance.json +33 -201
  60. package/common/weight.js +1 -1
  61. package/main.js +2 -0
  62. package/package.json +7 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "length is a dimension",
4
4
  "meter centimeter foot and inch are units of length",
5
5
  "meters = centimeters / 100",
@@ -2073,54 +2073,54 @@
2073
2073
  "listable": true,
2074
2074
  "value": [
2075
2075
  {
2076
+ "value": "meter",
2077
+ "unknown": true,
2078
+ "text": "meter",
2076
2079
  "marker": "unknown",
2080
+ "word": "meter",
2077
2081
  "range": {
2078
2082
  "start": 0,
2079
2083
  "end": 4
2080
2084
  },
2081
- "word": "meter",
2082
- "text": "meter",
2083
- "value": "meter",
2084
- "unknown": true,
2085
2085
  "dead": true,
2086
2086
  "level": 1
2087
2087
  },
2088
2088
  {
2089
+ "value": "centimeter",
2090
+ "unknown": true,
2091
+ "text": "centimeter",
2089
2092
  "marker": "unknown",
2093
+ "word": "centimeter",
2090
2094
  "range": {
2091
2095
  "start": 6,
2092
2096
  "end": 15
2093
2097
  },
2094
- "word": "centimeter",
2095
- "text": "centimeter",
2096
- "value": "centimeter",
2097
- "unknown": true,
2098
2098
  "dead": true,
2099
2099
  "level": 1
2100
2100
  },
2101
2101
  {
2102
+ "value": "foot",
2103
+ "unknown": true,
2104
+ "text": "foot",
2102
2105
  "marker": "unknown",
2106
+ "word": "foot",
2103
2107
  "range": {
2104
2108
  "start": 17,
2105
2109
  "end": 20
2106
2110
  },
2107
- "word": "foot",
2108
- "text": "foot",
2109
- "value": "foot",
2110
- "unknown": true,
2111
2111
  "dead": true,
2112
2112
  "level": 2
2113
2113
  },
2114
2114
  {
2115
+ "value": "inch",
2116
+ "unknown": true,
2117
+ "text": "inch",
2115
2118
  "marker": "unknown",
2119
+ "word": "inch",
2116
2120
  "range": {
2117
2121
  "start": 26,
2118
2122
  "end": 29
2119
2123
  },
2120
- "word": "inch",
2121
- "text": "inch",
2122
- "value": "inch",
2123
- "unknown": true,
2124
2124
  "dead": true,
2125
2125
  "level": 2
2126
2126
  }
@@ -2408,16 +2408,6 @@
2408
2408
  "propertyOf",
2409
2409
  1
2410
2410
  ]
2411
- ],
2412
- [
2413
- [
2414
- "length",
2415
- 0
2416
- ],
2417
- [
2418
- "unknown",
2419
- 0
2420
- ]
2421
2411
  ]
2422
2412
  ],
2423
2413
  "learned_contextual_priorities": [],
@@ -5668,15 +5658,15 @@
5668
5658
  "number"
5669
5659
  ],
5670
5660
  "x": {
5661
+ "value": "millimeters",
5662
+ "unknown": true,
5663
+ "text": "millimeters",
5671
5664
  "marker": "unknown",
5665
+ "word": "millimeters",
5672
5666
  "range": {
5673
5667
  "start": 14,
5674
5668
  "end": 24
5675
5669
  },
5676
- "word": "millimeters",
5677
- "text": "millimeters",
5678
- "value": "millimeters",
5679
- "unknown": true,
5680
5670
  "dead": true,
5681
5671
  "types": [
5682
5672
  "number",
@@ -5724,16 +5714,6 @@
5724
5714
  ""
5725
5715
  ],
5726
5716
  "associations": [
5727
- [
5728
- [
5729
- "/",
5730
- 0
5731
- ],
5732
- [
5733
- "unknown",
5734
- 0
5735
- ]
5736
- ],
5737
5717
  [
5738
5718
  [
5739
5719
  "centimeter",
@@ -6782,15 +6762,15 @@
6782
6762
  },
6783
6763
  "dead": true,
6784
6764
  "left": {
6765
+ "value": "millimeters",
6766
+ "unknown": true,
6767
+ "text": "millimeters",
6785
6768
  "marker": "unknown",
6769
+ "word": "millimeters",
6786
6770
  "range": {
6787
6771
  "start": 0,
6788
6772
  "end": 10
6789
6773
  },
6790
- "word": "millimeters",
6791
- "text": "millimeters",
6792
- "value": "millimeters",
6793
- "unknown": true,
6794
6774
  "dead": true,
6795
6775
  "types": [
6796
6776
  "expression",
@@ -6869,16 +6849,6 @@
6869
6849
  ""
6870
6850
  ],
6871
6851
  "associations": [
6872
- [
6873
- [
6874
- "*",
6875
- 0
6876
- ],
6877
- [
6878
- "unknown",
6879
- 0
6880
- ]
6881
- ],
6882
6852
  [
6883
6853
  [
6884
6854
  "centimeter",
@@ -7937,15 +7907,15 @@
7937
7907
  },
7938
7908
  "dead": true,
7939
7909
  "left": {
7910
+ "value": "millimeters",
7911
+ "unknown": true,
7912
+ "text": "millimeters",
7940
7913
  "marker": "unknown",
7914
+ "word": "millimeters",
7941
7915
  "range": {
7942
7916
  "start": 0,
7943
7917
  "end": 10
7944
7918
  },
7945
- "word": "millimeters",
7946
- "text": "millimeters",
7947
- "value": "millimeters",
7948
- "unknown": true,
7949
7919
  "dead": true,
7950
7920
  "types": [
7951
7921
  "expression",
@@ -8024,16 +7994,6 @@
8024
7994
  ""
8025
7995
  ],
8026
7996
  "associations": [
8027
- [
8028
- [
8029
- "*",
8030
- 0
8031
- ],
8032
- [
8033
- "unknown",
8034
- 0
8035
- ]
8036
- ],
8037
7997
  [
8038
7998
  [
8039
7999
  "equals",
@@ -9123,15 +9083,15 @@
9123
9083
  "number"
9124
9084
  ],
9125
9085
  "x": {
9086
+ "value": "millimeters",
9087
+ "unknown": true,
9088
+ "text": "millimeters",
9126
9089
  "marker": "unknown",
9090
+ "word": "millimeters",
9127
9091
  "range": {
9128
9092
  "start": 9,
9129
9093
  "end": 19
9130
9094
  },
9131
- "word": "millimeters",
9132
- "text": "millimeters",
9133
- "value": "millimeters",
9134
- "unknown": true,
9135
9095
  "dead": true,
9136
9096
  "types": [
9137
9097
  "number",
@@ -9179,16 +9139,6 @@
9179
9139
  ""
9180
9140
  ],
9181
9141
  "associations": [
9182
- [
9183
- [
9184
- "/",
9185
- 0
9186
- ],
9187
- [
9188
- "unknown",
9189
- 0
9190
- ]
9191
- ],
9192
9142
  [
9193
9143
  [
9194
9144
  "divideByOperator",
@@ -13589,15 +13539,15 @@
13589
13539
  },
13590
13540
  "dead": true,
13591
13541
  "left": {
13542
+ "value": "miles",
13543
+ "unknown": true,
13544
+ "text": "miles",
13592
13545
  "marker": "unknown",
13546
+ "word": "miles",
13593
13547
  "range": {
13594
13548
  "start": 0,
13595
13549
  "end": 4
13596
13550
  },
13597
- "word": "miles",
13598
- "text": "miles",
13599
- "value": "miles",
13600
- "unknown": true,
13601
13551
  "dead": true,
13602
13552
  "types": [
13603
13553
  "expression",
@@ -13675,16 +13625,6 @@
13675
13625
  ""
13676
13626
  ],
13677
13627
  "associations": [
13678
- [
13679
- [
13680
- "*",
13681
- 0
13682
- ],
13683
- [
13684
- "unknown",
13685
- 0
13686
- ]
13687
- ],
13688
13628
  [
13689
13629
  [
13690
13630
  "equals",
@@ -14760,15 +14700,15 @@
14760
14700
  "number"
14761
14701
  ],
14762
14702
  "x": {
14703
+ "value": "miles",
14704
+ "unknown": true,
14705
+ "text": "miles",
14763
14706
  "marker": "unknown",
14707
+ "word": "miles",
14764
14708
  "range": {
14765
14709
  "start": 7,
14766
14710
  "end": 11
14767
14711
  },
14768
- "word": "miles",
14769
- "text": "miles",
14770
- "value": "miles",
14771
- "unknown": true,
14772
14712
  "dead": true,
14773
14713
  "types": [
14774
14714
  "number",
@@ -14816,16 +14756,6 @@
14816
14756
  ""
14817
14757
  ],
14818
14758
  "associations": [
14819
- [
14820
- [
14821
- "/",
14822
- 0
14823
- ],
14824
- [
14825
- "unknown",
14826
- 0
14827
- ]
14828
- ],
14829
14759
  [
14830
14760
  [
14831
14761
  "divideByOperator",
@@ -15874,15 +15804,15 @@
15874
15804
  },
15875
15805
  "dead": true,
15876
15806
  "left": {
15807
+ "value": "kilometers",
15808
+ "unknown": true,
15809
+ "text": "kilometers",
15877
15810
  "marker": "unknown",
15811
+ "word": "kilometers",
15878
15812
  "range": {
15879
15813
  "start": 0,
15880
15814
  "end": 9
15881
15815
  },
15882
- "word": "kilometers",
15883
- "text": "kilometers",
15884
- "value": "kilometers",
15885
- "unknown": true,
15886
15816
  "dead": true,
15887
15817
  "types": [
15888
15818
  "expression",
@@ -15961,16 +15891,6 @@
15961
15891
  ""
15962
15892
  ],
15963
15893
  "associations": [
15964
- [
15965
- [
15966
- "/",
15967
- 0
15968
- ],
15969
- [
15970
- "unknown",
15971
- 0
15972
- ]
15973
- ],
15974
15894
  [
15975
15895
  [
15976
15896
  "divideByOperator",
@@ -17060,15 +16980,15 @@
17060
16980
  "timesExpression"
17061
16981
  ],
17062
16982
  "x": {
16983
+ "value": "kilometers",
16984
+ "unknown": true,
16985
+ "text": "kilometers",
17063
16986
  "marker": "unknown",
16987
+ "word": "kilometers",
17064
16988
  "range": {
17065
16989
  "start": 9,
17066
16990
  "end": 18
17067
16991
  },
17068
- "word": "kilometers",
17069
- "text": "kilometers",
17070
- "value": "kilometers",
17071
- "unknown": true,
17072
16992
  "dead": true,
17073
16993
  "types": [
17074
16994
  "number",
@@ -17116,16 +17036,6 @@
17116
17036
  ""
17117
17037
  ],
17118
17038
  "associations": [
17119
- [
17120
- [
17121
- "*",
17122
- 0
17123
- ],
17124
- [
17125
- "unknown",
17126
- 0
17127
- ]
17128
- ],
17129
17039
  [
17130
17040
  [
17131
17041
  "equals",
@@ -17213,86 +17123,6 @@
17213
17123
  "fragments": [],
17214
17124
  "semantics": [],
17215
17125
  "associations": [
17216
- [
17217
- [
17218
- "*",
17219
- 0
17220
- ],
17221
- [
17222
- "unknown",
17223
- 0
17224
- ]
17225
- ],
17226
- [
17227
- [
17228
- "*",
17229
- 0
17230
- ],
17231
- [
17232
- "unknown",
17233
- 0
17234
- ]
17235
- ],
17236
- [
17237
- [
17238
- "*",
17239
- 0
17240
- ],
17241
- [
17242
- "unknown",
17243
- 0
17244
- ]
17245
- ],
17246
- [
17247
- [
17248
- "*",
17249
- 0
17250
- ],
17251
- [
17252
- "unknown",
17253
- 0
17254
- ]
17255
- ],
17256
- [
17257
- [
17258
- "/",
17259
- 0
17260
- ],
17261
- [
17262
- "unknown",
17263
- 0
17264
- ]
17265
- ],
17266
- [
17267
- [
17268
- "/",
17269
- 0
17270
- ],
17271
- [
17272
- "unknown",
17273
- 0
17274
- ]
17275
- ],
17276
- [
17277
- [
17278
- "/",
17279
- 0
17280
- ],
17281
- [
17282
- "unknown",
17283
- 0
17284
- ]
17285
- ],
17286
- [
17287
- [
17288
- "/",
17289
- 0
17290
- ],
17291
- [
17292
- "unknown",
17293
- 0
17294
- ]
17295
- ],
17296
17126
  [
17297
17127
  [
17298
17128
  "a",
@@ -18474,16 +18304,6 @@
18474
18304
  "propertyOf",
18475
18305
  1
18476
18306
  ]
18477
- ],
18478
- [
18479
- [
18480
- "length",
18481
- 0
18482
- ],
18483
- [
18484
- "unknown",
18485
- 0
18486
- ]
18487
18307
  ]
18488
18308
  ],
18489
18309
  "learned_contextual_priorities": []
package/common/length.js CHANGED
@@ -5,7 +5,7 @@ const length_tests = require('./length.test.json')
5
5
  const length_instance = require('./length.instance.json')
6
6
 
7
7
  const template = {
8
- "queries": [
8
+ configs: [
9
9
  "length is a dimension",
10
10
  "meter centimeter foot and inch are units of length",
11
11
  "meters = centimeters / 100",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "mathematical modifies operator",
4
4
  "* + / and - are mathematical operators",
5
5
  {
@@ -541,29 +541,29 @@
541
541
  "dead": true,
542
542
  "modifiers": [
543
543
  {
544
+ "value": "mathematical",
545
+ "unknown": true,
546
+ "text": "mathematical",
544
547
  "marker": "unknown",
548
+ "word": "mathematical",
545
549
  "range": {
546
550
  "start": 0,
547
551
  "end": 11
548
552
  },
549
- "word": "mathematical",
550
- "text": "mathematical",
551
- "value": "mathematical",
552
- "unknown": true,
553
553
  "dead": true,
554
554
  "level": 1
555
555
  }
556
556
  ],
557
557
  "concept": {
558
+ "value": "operator",
559
+ "unknown": true,
560
+ "text": "operator",
558
561
  "marker": "unknown",
562
+ "word": "operator",
559
563
  "range": {
560
564
  "start": 22,
561
565
  "end": 29
562
566
  },
563
- "word": "operator",
564
- "text": "operator",
565
- "value": "operator",
566
- "unknown": true,
567
567
  "dead": true,
568
568
  "level": 1
569
569
  },
@@ -1359,52 +1359,52 @@
1359
1359
  "value": [
1360
1360
  {
1361
1361
  "marker": "unknown",
1362
+ "value": "*",
1363
+ "word": "*",
1364
+ "text": "*",
1362
1365
  "range": {
1363
1366
  "start": 0,
1364
1367
  "end": 0
1365
1368
  },
1366
- "word": "*",
1367
- "text": "*",
1368
- "value": "*",
1369
1369
  "unknown": true,
1370
1370
  "dead": true,
1371
1371
  "level": 1
1372
1372
  },
1373
1373
  {
1374
1374
  "marker": "unknown",
1375
+ "value": "+",
1376
+ "word": "+",
1377
+ "text": "+",
1375
1378
  "range": {
1376
1379
  "start": 2,
1377
1380
  "end": 2
1378
1381
  },
1379
- "word": "+",
1380
- "text": "+",
1381
- "value": "+",
1382
1382
  "unknown": true,
1383
1383
  "dead": true,
1384
1384
  "level": 1
1385
1385
  },
1386
1386
  {
1387
1387
  "marker": "unknown",
1388
+ "value": "/",
1389
+ "word": "/",
1390
+ "text": "/",
1388
1391
  "range": {
1389
1392
  "start": 4,
1390
1393
  "end": 4
1391
1394
  },
1392
- "word": "/",
1393
- "text": "/",
1394
- "value": "/",
1395
1395
  "unknown": true,
1396
1396
  "dead": true,
1397
1397
  "level": 2
1398
1398
  },
1399
1399
  {
1400
1400
  "marker": "unknown",
1401
+ "value": "-",
1402
+ "word": "-",
1403
+ "text": "-",
1401
1404
  "range": {
1402
1405
  "start": 10,
1403
1406
  "end": 10
1404
1407
  },
1405
- "word": "-",
1406
- "text": "-",
1407
- "value": "-",
1408
1408
  "unknown": true,
1409
1409
  "dead": true,
1410
1410
  "level": 2
@@ -1596,16 +1596,6 @@
1596
1596
  "unknown",
1597
1597
  1
1598
1598
  ]
1599
- ],
1600
- [
1601
- [
1602
- "mathematical",
1603
- 0
1604
- ],
1605
- [
1606
- "unknown",
1607
- 0
1608
- ]
1609
1599
  ]
1610
1600
  ],
1611
1601
  "learned_contextual_priorities": [],
@@ -1931,16 +1921,6 @@
1931
1921
  1
1932
1922
  ]
1933
1923
  ],
1934
- [
1935
- [
1936
- "mathematical",
1937
- 0
1938
- ],
1939
- [
1940
- "unknown",
1941
- 0
1942
- ]
1943
- ],
1944
1924
  [
1945
1925
  [
1946
1926
  "modifies",
package/common/math.js CHANGED
@@ -106,7 +106,7 @@ let configStruct = {
106
106
  };
107
107
 
108
108
  const template = {
109
- queries: [
109
+ configs: [
110
110
  "mathematical modifies operator",
111
111
  "* + / and - are mathematical operators",
112
112
  configStruct,
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [],
2
+ "configs": [],
3
3
  "resultss": [],
4
4
  "fragments": [],
5
5
  "semantics": [],