ekms 7.12.8 → 8.0.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/common/animals.instance.json +89 -293
  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 +122 -17
  9. package/common/dimension.instance.json +747 -73
  10. package/common/dimension.js +15 -7
  11. package/common/edible.instance.json +243 -435
  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 +1080 -2072
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +992 -0
  18. package/common/formulas.js +19 -6
  19. package/common/formulas.test.json +1187 -3651
  20. package/common/gdefaults.js +2 -0
  21. package/common/help.js +7 -2
  22. package/common/help.test.json +9 -5
  23. package/common/helpers.js +5 -0
  24. package/common/javascript.js +8 -6
  25. package/common/kirk.instance.json +1 -1
  26. package/common/kirk.js +1 -1
  27. package/common/length.instance.json +316 -740
  28. package/common/length.js +1 -1
  29. package/common/math.instance.json +1959 -1
  30. package/common/math.js +17 -5
  31. package/common/meta.instance.json +1 -1
  32. package/common/meta.js +35 -10
  33. package/common/numbers.js +28 -24
  34. package/common/ordering.instance.json +37 -153
  35. package/common/ordering.js +1 -1
  36. package/common/people.instance.json +50 -78
  37. package/common/people.js +1 -1
  38. package/common/pipboy.instance.json +23431 -1082
  39. package/common/pipboy.js +31 -4
  40. package/common/pipboy.test.json +13 -9
  41. package/common/pokemon.instance.json +41 -141
  42. package/common/pokemon.js +1 -1
  43. package/common/pressure.instance.json +93 -33
  44. package/common/pressure.js +1 -1
  45. package/common/properties.instance.json +21 -49
  46. package/common/properties.js +13 -8
  47. package/common/reports.instance.json +23 -63
  48. package/common/reports.js +9 -7
  49. package/common/scorekeeper.instance.json +1 -1
  50. package/common/scorekeeper.js +9 -7
  51. package/common/spock.instance.json +1 -1
  52. package/common/spock.js +1 -1
  53. package/common/tell.js +4 -2
  54. package/common/temperature.instance.json +97 -193
  55. package/common/temperature.js +1 -1
  56. package/common/time.js +36 -20
  57. package/common/time.test.json +66 -44
  58. package/common/tokenize.js +46 -0
  59. package/common/ui.instance.json +9 -1
  60. package/common/weight.instance.json +273 -217
  61. package/common/weight.js +1 -1
  62. package/main.js +4 -8
  63. package/package.json +6 -18
  64. package/common/dimensionTemplate.instance.json +0 -582
  65. package/common/dimensionTemplate.js +0 -35
  66. package/common/formulasTemplate.instance.json +0 -483
  67. package/common/formulasTemplate.js +0 -30
  68. package/common/formulasTemplate.test.json +0 -2
  69. package/common/mathTemplate.instance.json +0 -1635
  70. package/common/mathTemplate.js +0 -32
  71. package/common/mathTemplate.test.json +0 -1422
  72. package/common/pipboyTemplate.instance.json +0 -17420
  73. package/common/pipboyTemplate.js +0 -48
  74. package/common/pipboyTemplate.test.json +0 -2
  75. /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "birds and mammals are animals",
4
4
  "mammals have ears",
5
5
  "mammals have hair",
@@ -393,28 +393,28 @@
393
393
  "isList": true,
394
394
  "value": [
395
395
  {
396
+ "value": "birds",
397
+ "unknown": true,
398
+ "text": "birds",
396
399
  "marker": "type",
400
+ "word": "birds",
397
401
  "range": {
398
402
  "start": 0,
399
403
  "end": 4
400
404
  },
401
- "word": "birds",
402
- "text": "birds",
403
- "value": "birds",
404
- "unknown": true,
405
405
  "dead": true,
406
406
  "level": 1
407
407
  },
408
408
  {
409
+ "value": "mammals",
410
+ "unknown": true,
411
+ "text": "mammals",
409
412
  "marker": "type",
413
+ "word": "mammals",
410
414
  "range": {
411
415
  "start": 10,
412
416
  "end": 16
413
417
  },
414
- "word": "mammals",
415
- "text": "mammals",
416
- "value": "mammals",
417
- "unknown": true,
418
418
  "dead": true,
419
419
  "level": 1
420
420
  }
@@ -422,15 +422,15 @@
422
422
  "level": 1
423
423
  },
424
424
  "two": {
425
+ "value": "animals",
426
+ "unknown": true,
427
+ "text": "animals",
425
428
  "marker": "unknown",
429
+ "word": "animals",
426
430
  "range": {
427
431
  "start": 22,
428
432
  "end": 28
429
433
  },
430
- "word": "animals",
431
- "text": "animals",
432
- "value": "animals",
433
- "unknown": true,
434
434
  "dead": true,
435
435
  "types": [
436
436
  "unknown"
@@ -949,15 +949,15 @@
949
949
  "level": 1
950
950
  },
951
951
  "property": {
952
+ "value": "ears",
953
+ "unknown": true,
954
+ "text": "ears",
952
955
  "marker": "property",
956
+ "word": "ears",
953
957
  "range": {
954
958
  "start": 13,
955
959
  "end": 16
956
960
  },
957
- "word": "ears",
958
- "text": "ears",
959
- "value": "ears",
960
- "unknown": true,
961
961
  "dead": true,
962
962
  "types": [
963
963
  "property"
@@ -1022,16 +1022,6 @@
1022
1022
  1
1023
1023
  ]
1024
1024
  ],
1025
- [
1026
- [
1027
- "have",
1028
- 0
1029
- ],
1030
- [
1031
- "unknown",
1032
- 0
1033
- ]
1034
- ],
1035
1025
  [
1036
1026
  [
1037
1027
  "have",
@@ -1473,15 +1463,15 @@
1473
1463
  "level": 1
1474
1464
  },
1475
1465
  "property": {
1466
+ "value": "hair",
1467
+ "unknown": true,
1468
+ "text": "hair",
1476
1469
  "marker": "property",
1470
+ "word": "hair",
1477
1471
  "range": {
1478
1472
  "start": 13,
1479
1473
  "end": 16
1480
1474
  },
1481
- "word": "hair",
1482
- "text": "hair",
1483
- "value": "hair",
1484
- "unknown": true,
1485
1475
  "dead": true,
1486
1476
  "types": [
1487
1477
  "property"
@@ -1546,16 +1536,6 @@
1546
1536
  1
1547
1537
  ]
1548
1538
  ],
1549
- [
1550
- [
1551
- "have",
1552
- 0
1553
- ],
1554
- [
1555
- "unknown",
1556
- 0
1557
- ]
1558
- ],
1559
1539
  [
1560
1540
  [
1561
1541
  "have",
@@ -2027,15 +2007,15 @@
2027
2007
  "level": 1
2028
2008
  },
2029
2009
  "property": {
2010
+ "value": "wings",
2011
+ "unknown": true,
2012
+ "text": "wings",
2030
2013
  "marker": "property",
2014
+ "word": "wings",
2031
2015
  "range": {
2032
2016
  "start": 18,
2033
2017
  "end": 22
2034
2018
  },
2035
- "word": "wings",
2036
- "text": "wings",
2037
- "value": "wings",
2038
- "unknown": true,
2039
2019
  "dead": true,
2040
2020
  "types": [
2041
2021
  "property"
@@ -2122,16 +2102,6 @@
2122
2102
  1
2123
2103
  ]
2124
2104
  ],
2125
- [
2126
- [
2127
- "have",
2128
- 0
2129
- ],
2130
- [
2131
- "unknown",
2132
- 0
2133
- ]
2134
- ],
2135
2105
  [
2136
2106
  [
2137
2107
  "have",
@@ -2573,15 +2543,15 @@
2573
2543
  "level": 1
2574
2544
  },
2575
2545
  "property": {
2546
+ "value": "skin",
2547
+ "unknown": true,
2548
+ "text": "skin",
2576
2549
  "marker": "property",
2550
+ "word": "skin",
2577
2551
  "range": {
2578
2552
  "start": 13,
2579
2553
  "end": 16
2580
2554
  },
2581
- "word": "skin",
2582
- "text": "skin",
2583
- "value": "skin",
2584
- "unknown": true,
2585
2555
  "dead": true,
2586
2556
  "types": [
2587
2557
  "property"
@@ -2646,16 +2616,6 @@
2646
2616
  1
2647
2617
  ]
2648
2618
  ],
2649
- [
2650
- [
2651
- "have",
2652
- 0
2653
- ],
2654
- [
2655
- "unknown",
2656
- 0
2657
- ]
2658
- ],
2659
2619
  [
2660
2620
  [
2661
2621
  "have",
@@ -3097,15 +3057,15 @@
3097
3057
  "level": 1
3098
3058
  },
3099
3059
  "property": {
3060
+ "value": "eyes",
3061
+ "unknown": true,
3062
+ "text": "eyes",
3100
3063
  "marker": "property",
3064
+ "word": "eyes",
3101
3065
  "range": {
3102
3066
  "start": 13,
3103
3067
  "end": 16
3104
3068
  },
3105
- "word": "eyes",
3106
- "text": "eyes",
3107
- "value": "eyes",
3108
- "unknown": true,
3109
3069
  "dead": true,
3110
3070
  "types": [
3111
3071
  "property"
@@ -3170,16 +3130,6 @@
3170
3130
  1
3171
3131
  ]
3172
3132
  ],
3173
- [
3174
- [
3175
- "have",
3176
- 0
3177
- ],
3178
- [
3179
- "unknown",
3180
- 0
3181
- ]
3182
- ],
3183
3133
  [
3184
3134
  [
3185
3135
  "have",
@@ -3621,15 +3571,15 @@
3621
3571
  "level": 1
3622
3572
  },
3623
3573
  "property": {
3574
+ "value": "wings",
3575
+ "unknown": true,
3576
+ "text": "wings",
3624
3577
  "marker": "property",
3578
+ "word": "wings",
3625
3579
  "range": {
3626
3580
  "start": 11,
3627
3581
  "end": 15
3628
3582
  },
3629
- "word": "wings",
3630
- "text": "wings",
3631
- "value": "wings",
3632
- "unknown": true,
3633
3583
  "dead": true,
3634
3584
  "types": [
3635
3585
  "property"
@@ -3694,16 +3644,6 @@
3694
3644
  1
3695
3645
  ]
3696
3646
  ],
3697
- [
3698
- [
3699
- "have",
3700
- 0
3701
- ],
3702
- [
3703
- "unknown",
3704
- 0
3705
- ]
3706
- ],
3707
3647
  [
3708
3648
  [
3709
3649
  "have",
@@ -4145,15 +4085,15 @@
4145
4085
  "level": 1
4146
4086
  },
4147
4087
  "property": {
4088
+ "value": "beaks",
4089
+ "unknown": true,
4090
+ "text": "beaks",
4148
4091
  "marker": "property",
4092
+ "word": "beaks",
4149
4093
  "range": {
4150
4094
  "start": 11,
4151
4095
  "end": 15
4152
4096
  },
4153
- "word": "beaks",
4154
- "text": "beaks",
4155
- "value": "beaks",
4156
- "unknown": true,
4157
4097
  "dead": true,
4158
4098
  "types": [
4159
4099
  "property"
@@ -4218,16 +4158,6 @@
4218
4158
  1
4219
4159
  ]
4220
4160
  ],
4221
- [
4222
- [
4223
- "have",
4224
- 0
4225
- ],
4226
- [
4227
- "unknown",
4228
- 0
4229
- ]
4230
- ],
4231
4161
  [
4232
4162
  [
4233
4163
  "have",
@@ -4848,54 +4778,54 @@
4848
4778
  "listable": true,
4849
4779
  "value": [
4850
4780
  {
4781
+ "value": "humans",
4782
+ "unknown": true,
4783
+ "text": "humans",
4851
4784
  "marker": "unknown",
4785
+ "word": "humans",
4852
4786
  "range": {
4853
4787
  "start": 0,
4854
4788
  "end": 5
4855
4789
  },
4856
- "word": "humans",
4857
- "text": "humans",
4858
- "value": "humans",
4859
- "unknown": true,
4860
4790
  "dead": true,
4861
4791
  "level": 1
4862
4792
  },
4863
4793
  {
4794
+ "value": "bats",
4795
+ "unknown": true,
4796
+ "text": "bats",
4864
4797
  "marker": "unknown",
4798
+ "word": "bats",
4865
4799
  "range": {
4866
4800
  "start": 7,
4867
4801
  "end": 10
4868
4802
  },
4869
- "word": "bats",
4870
- "text": "bats",
4871
- "value": "bats",
4872
- "unknown": true,
4873
4803
  "dead": true,
4874
4804
  "level": 1
4875
4805
  },
4876
4806
  {
4807
+ "value": "felines",
4808
+ "unknown": true,
4809
+ "text": "felines",
4877
4810
  "marker": "unknown",
4811
+ "word": "felines",
4878
4812
  "range": {
4879
4813
  "start": 12,
4880
4814
  "end": 18
4881
4815
  },
4882
- "word": "felines",
4883
- "text": "felines",
4884
- "value": "felines",
4885
- "unknown": true,
4886
4816
  "dead": true,
4887
4817
  "level": 2
4888
4818
  },
4889
4819
  {
4820
+ "value": "canines",
4821
+ "unknown": true,
4822
+ "text": "canines",
4890
4823
  "marker": "unknown",
4824
+ "word": "canines",
4891
4825
  "range": {
4892
4826
  "start": 24,
4893
4827
  "end": 30
4894
4828
  },
4895
- "word": "canines",
4896
- "text": "canines",
4897
- "value": "canines",
4898
- "unknown": true,
4899
4829
  "dead": true,
4900
4830
  "level": 2
4901
4831
  }
@@ -5786,54 +5716,54 @@
5786
5716
  "listable": true,
5787
5717
  "value": [
5788
5718
  {
5719
+ "value": "owls",
5720
+ "unknown": true,
5721
+ "text": "owls",
5789
5722
  "marker": "unknown",
5723
+ "word": "owls",
5790
5724
  "range": {
5791
5725
  "start": 0,
5792
5726
  "end": 3
5793
5727
  },
5794
- "word": "owls",
5795
- "text": "owls",
5796
- "value": "owls",
5797
- "unknown": true,
5798
5728
  "dead": true,
5799
5729
  "level": 1
5800
5730
  },
5801
5731
  {
5732
+ "value": "eagles",
5733
+ "unknown": true,
5734
+ "text": "eagles",
5802
5735
  "marker": "unknown",
5736
+ "word": "eagles",
5803
5737
  "range": {
5804
5738
  "start": 5,
5805
5739
  "end": 10
5806
5740
  },
5807
- "word": "eagles",
5808
- "text": "eagles",
5809
- "value": "eagles",
5810
- "unknown": true,
5811
5741
  "dead": true,
5812
5742
  "level": 1
5813
5743
  },
5814
5744
  {
5745
+ "value": "pidgeons",
5746
+ "unknown": true,
5747
+ "text": "pidgeons",
5815
5748
  "marker": "unknown",
5749
+ "word": "pidgeons",
5816
5750
  "range": {
5817
5751
  "start": 12,
5818
5752
  "end": 19
5819
5753
  },
5820
- "word": "pidgeons",
5821
- "text": "pidgeons",
5822
- "value": "pidgeons",
5823
- "unknown": true,
5824
5754
  "dead": true,
5825
5755
  "level": 2
5826
5756
  },
5827
5757
  {
5758
+ "value": "parrots",
5759
+ "unknown": true,
5760
+ "text": "parrots",
5828
5761
  "marker": "unknown",
5762
+ "word": "parrots",
5829
5763
  "range": {
5830
5764
  "start": 25,
5831
5765
  "end": 31
5832
5766
  },
5833
- "word": "parrots",
5834
- "text": "parrots",
5835
- "value": "parrots",
5836
- "unknown": true,
5837
5767
  "dead": true,
5838
5768
  "level": 2
5839
5769
  }
@@ -5926,28 +5856,6 @@
5926
5856
  1
5927
5857
  ]
5928
5858
  ],
5929
- [
5930
- [
5931
- "bird",
5932
- 0
5933
- ],
5934
- [
5935
- "is",
5936
- 0
5937
- ],
5938
- [
5939
- "list",
5940
- 0
5941
- ],
5942
- [
5943
- "unknown",
5944
- 0
5945
- ],
5946
- [
5947
- "unknown",
5948
- 1
5949
- ]
5950
- ],
5951
5859
  [
5952
5860
  [
5953
5861
  "bird",
@@ -6679,15 +6587,15 @@
6679
6587
  },
6680
6588
  "one": {
6681
6589
  "number": "many",
6590
+ "value": "cats",
6591
+ "unknown": true,
6592
+ "text": "cats",
6682
6593
  "marker": "unknown",
6594
+ "word": "cats",
6683
6595
  "range": {
6684
6596
  "start": 0,
6685
6597
  "end": 15
6686
6598
  },
6687
- "word": "cats",
6688
- "text": "cats",
6689
- "value": "cats",
6690
- "unknown": true,
6691
6599
  "dead": true,
6692
6600
  "types": [
6693
6601
  "unknown"
@@ -7551,28 +7459,28 @@
7551
7459
  "listable": true,
7552
7460
  "value": [
7553
7461
  {
7462
+ "value": "dogs",
7463
+ "unknown": true,
7464
+ "text": "dogs",
7554
7465
  "marker": "unknown",
7466
+ "word": "dogs",
7555
7467
  "range": {
7556
7468
  "start": 0,
7557
7469
  "end": 3
7558
7470
  },
7559
- "word": "dogs",
7560
- "text": "dogs",
7561
- "value": "dogs",
7562
- "unknown": true,
7563
7471
  "dead": true,
7564
7472
  "level": 2
7565
7473
  },
7566
7474
  {
7475
+ "value": "wolves",
7476
+ "unknown": true,
7477
+ "text": "wolves",
7567
7478
  "marker": "unknown",
7479
+ "word": "wolves",
7568
7480
  "range": {
7569
7481
  "start": 9,
7570
7482
  "end": 14
7571
7483
  },
7572
- "word": "wolves",
7573
- "text": "wolves",
7574
- "value": "wolves",
7575
- "unknown": true,
7576
7484
  "dead": true,
7577
7485
  "level": 2
7578
7486
  }
@@ -8490,15 +8398,15 @@
8490
8398
  "level": 1
8491
8399
  },
8492
8400
  "property": {
8401
+ "value": "wings",
8402
+ "unknown": true,
8403
+ "text": "wings",
8493
8404
  "marker": "property",
8405
+ "word": "wings",
8494
8406
  "range": {
8495
8407
  "start": 10,
8496
8408
  "end": 14
8497
8409
  },
8498
- "word": "wings",
8499
- "text": "wings",
8500
- "value": "wings",
8501
- "unknown": true,
8502
8410
  "dead": true,
8503
8411
  "types": [
8504
8412
  "property"
@@ -8563,16 +8471,6 @@
8563
8471
  1
8564
8472
  ]
8565
8473
  ],
8566
- [
8567
- [
8568
- "have",
8569
- 0
8570
- ],
8571
- [
8572
- "unknown",
8573
- 0
8574
- ]
8575
- ],
8576
8474
  [
8577
8475
  [
8578
8476
  "have",
@@ -8774,28 +8672,6 @@
8774
8672
  1
8775
8673
  ]
8776
8674
  ],
8777
- [
8778
- [
8779
- "bird",
8780
- 0
8781
- ],
8782
- [
8783
- "is",
8784
- 0
8785
- ],
8786
- [
8787
- "list",
8788
- 0
8789
- ],
8790
- [
8791
- "unknown",
8792
- 0
8793
- ],
8794
- [
8795
- "unknown",
8796
- 1
8797
- ]
8798
- ],
8799
8675
  [
8800
8676
  [
8801
8677
  "bird",
@@ -9052,86 +8928,6 @@
9052
8928
  1
9053
8929
  ]
9054
8930
  ],
9055
- [
9056
- [
9057
- "have",
9058
- 0
9059
- ],
9060
- [
9061
- "unknown",
9062
- 0
9063
- ]
9064
- ],
9065
- [
9066
- [
9067
- "have",
9068
- 0
9069
- ],
9070
- [
9071
- "unknown",
9072
- 0
9073
- ]
9074
- ],
9075
- [
9076
- [
9077
- "have",
9078
- 0
9079
- ],
9080
- [
9081
- "unknown",
9082
- 0
9083
- ]
9084
- ],
9085
- [
9086
- [
9087
- "have",
9088
- 0
9089
- ],
9090
- [
9091
- "unknown",
9092
- 0
9093
- ]
9094
- ],
9095
- [
9096
- [
9097
- "have",
9098
- 0
9099
- ],
9100
- [
9101
- "unknown",
9102
- 0
9103
- ]
9104
- ],
9105
- [
9106
- [
9107
- "have",
9108
- 0
9109
- ],
9110
- [
9111
- "unknown",
9112
- 0
9113
- ]
9114
- ],
9115
- [
9116
- [
9117
- "have",
9118
- 0
9119
- ],
9120
- [
9121
- "unknown",
9122
- 0
9123
- ]
9124
- ],
9125
- [
9126
- [
9127
- "have",
9128
- 0
9129
- ],
9130
- [
9131
- "unknown",
9132
- 0
9133
- ]
9134
- ],
9135
8931
  [
9136
8932
  [
9137
8933
  "have",
package/common/animals.js CHANGED
@@ -5,7 +5,7 @@ const animals_tests = require('./animals.test.json')
5
5
  const animals_instance = require('./animals.instance.json')
6
6
 
7
7
  const template = {
8
- queries: [
8
+ configs: [
9
9
  "birds and mammals are animals",
10
10
  "mammals have ears",
11
11
  "mammals have hair",