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
package/common/edible.js CHANGED
@@ -20,7 +20,7 @@ const edible_instance = require('./edible.instance.json')
20
20
  // the value of x is 20 | fruit is a kind of food
21
21
 
22
22
  const template ={
23
- "queries": [
23
+ configs: [
24
24
  "food and drinks are edible",
25
25
  "chicken modifies strips",
26
26
  "chicken modifies nugget",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "sentientBeing1 feels emotion1 means the emotion of sentientBeing1 is emotion1"
4
4
  ],
5
5
  "resultss": [
@@ -33,6 +33,10 @@
33
33
  "concept",
34
34
  "theAble"
35
35
  ],
36
+ [
37
+ "doubleQuote",
38
+ "queryable"
39
+ ],
36
40
  [
37
41
  "emotion",
38
42
  "unknown"
@@ -651,15 +655,15 @@
651
655
  "text": "sentientbeing1 feels emotion1"
652
656
  },
653
657
  "sentientBeing": {
658
+ "value": "sentientbeing1",
659
+ "unknown": true,
660
+ "text": "sentientbeing1",
654
661
  "marker": "sentientBeing",
662
+ "word": "sentientbeing1",
655
663
  "range": {
656
664
  "start": 0,
657
665
  "end": 13
658
666
  },
659
- "word": "sentientbeing1",
660
- "text": "sentientbeing1",
661
- "value": "sentientbeing1",
662
- "unknown": true,
663
667
  "dead": true,
664
668
  "types": [
665
669
  "sentientBeing"
@@ -667,15 +671,15 @@
667
671
  "level": 1
668
672
  },
669
673
  "emotion": {
674
+ "value": "emotion1",
675
+ "unknown": true,
676
+ "text": "emotion1",
670
677
  "marker": "emotion",
678
+ "word": "emotion1",
671
679
  "range": {
672
680
  "start": 21,
673
681
  "end": 28
674
682
  },
675
- "word": "emotion1",
676
- "text": "emotion1",
677
- "value": "emotion1",
678
- "unknown": true,
679
683
  "dead": true,
680
684
  "types": [
681
685
  "emotion"
@@ -704,15 +708,15 @@
704
708
  },
705
709
  "one": {
706
710
  "number": "one",
711
+ "value": "emotion",
712
+ "unknown": true,
713
+ "text": "the emotion of sentientbeing1",
707
714
  "marker": "property",
715
+ "word": "emotion",
708
716
  "range": {
709
717
  "start": 36,
710
718
  "end": 76
711
719
  },
712
- "word": "emotion",
713
- "text": "the emotion of sentientbeing1",
714
- "value": "emotion",
715
- "unknown": true,
716
720
  "dead": true,
717
721
  "types": [
718
722
  "property",
@@ -727,15 +731,15 @@
727
731
  "determiner"
728
732
  ],
729
733
  "object": {
734
+ "value": "sentientbeing1",
735
+ "unknown": true,
736
+ "text": "sentientbeing1",
730
737
  "marker": "unknown",
738
+ "word": "sentientbeing1",
731
739
  "range": {
732
740
  "start": 51,
733
741
  "end": 64
734
742
  },
735
- "word": "sentientbeing1",
736
- "text": "sentientbeing1",
737
- "value": "sentientbeing1",
738
- "unknown": true,
739
743
  "dead": true,
740
744
  "types": [
741
745
  "unknown"
@@ -744,15 +748,15 @@
744
748
  },
745
749
  "objects": [
746
750
  {
751
+ "value": "emotion",
752
+ "unknown": true,
753
+ "text": "the emotion",
747
754
  "marker": "property",
755
+ "word": "emotion",
748
756
  "range": {
749
757
  "start": 36,
750
758
  "end": 46
751
759
  },
752
- "word": "emotion",
753
- "text": "the emotion",
754
- "value": "emotion",
755
- "unknown": true,
756
760
  "dead": true,
757
761
  "types": [
758
762
  "property",
@@ -769,15 +773,15 @@
769
773
  "level": 1
770
774
  },
771
775
  {
776
+ "value": "sentientbeing1",
777
+ "unknown": true,
778
+ "text": "sentientbeing1",
772
779
  "marker": "unknown",
780
+ "word": "sentientbeing1",
773
781
  "range": {
774
782
  "start": 51,
775
783
  "end": 64
776
784
  },
777
- "word": "sentientbeing1",
778
- "text": "sentientbeing1",
779
- "value": "sentientbeing1",
780
- "unknown": true,
781
785
  "dead": true,
782
786
  "types": [
783
787
  "unknown"
@@ -788,15 +792,15 @@
788
792
  "level": 1
789
793
  },
790
794
  "two": {
795
+ "value": "emotion1",
796
+ "unknown": true,
797
+ "text": "emotion1",
791
798
  "marker": "unknown",
799
+ "word": "emotion1",
792
800
  "range": {
793
801
  "start": 69,
794
802
  "end": 76
795
803
  },
796
- "word": "emotion1",
797
- "text": "emotion1",
798
- "value": "emotion1",
799
- "unknown": true,
800
804
  "dead": true,
801
805
  "types": [
802
806
  "unknown"
@@ -902,6 +906,10 @@
902
906
  "the",
903
907
  0
904
908
  ],
909
+ [
910
+ "unknown",
911
+ 0
912
+ ],
905
913
  [
906
914
  "unknown",
907
915
  1
@@ -924,6 +932,10 @@
924
932
  "propertyOf",
925
933
  0
926
934
  ],
935
+ [
936
+ "the",
937
+ 0
938
+ ],
927
939
  [
928
940
  "unknown",
929
941
  1
@@ -932,7 +944,7 @@
932
944
  [
933
945
  [
934
946
  "feel",
935
- 1
947
+ 0
936
948
  ],
937
949
  [
938
950
  "is",
@@ -952,6 +964,10 @@
952
964
  ]
953
965
  ],
954
966
  [
967
+ [
968
+ "feel",
969
+ 1
970
+ ],
955
971
  [
956
972
  "is",
957
973
  0
@@ -980,7 +996,7 @@
980
996
  ],
981
997
  [
982
998
  "propertyOf",
983
- 1
999
+ 0
984
1000
  ],
985
1001
  [
986
1002
  "unknown",
@@ -997,12 +1013,12 @@
997
1013
  0
998
1014
  ],
999
1015
  [
1000
- "the",
1001
- 0
1016
+ "propertyOf",
1017
+ 1
1002
1018
  ],
1003
1019
  [
1004
1020
  "unknown",
1005
- 0
1021
+ 1
1006
1022
  ]
1007
1023
  ],
1008
1024
  [
@@ -1117,6 +1133,10 @@
1117
1133
  "the",
1118
1134
  0
1119
1135
  ],
1136
+ [
1137
+ "unknown",
1138
+ 0
1139
+ ],
1120
1140
  [
1121
1141
  "unknown",
1122
1142
  1
@@ -1139,6 +1159,10 @@
1139
1159
  "propertyOf",
1140
1160
  0
1141
1161
  ],
1162
+ [
1163
+ "the",
1164
+ 0
1165
+ ],
1142
1166
  [
1143
1167
  "unknown",
1144
1168
  1
@@ -1147,7 +1171,7 @@
1147
1171
  [
1148
1172
  [
1149
1173
  "feel",
1150
- 1
1174
+ 0
1151
1175
  ],
1152
1176
  [
1153
1177
  "is",
@@ -1167,6 +1191,10 @@
1167
1191
  ]
1168
1192
  ],
1169
1193
  [
1194
+ [
1195
+ "feel",
1196
+ 1
1197
+ ],
1170
1198
  [
1171
1199
  "is",
1172
1200
  0
@@ -1195,7 +1223,7 @@
1195
1223
  ],
1196
1224
  [
1197
1225
  "propertyOf",
1198
- 1
1226
+ 0
1199
1227
  ],
1200
1228
  [
1201
1229
  "unknown",
@@ -1212,12 +1240,12 @@
1212
1240
  0
1213
1241
  ],
1214
1242
  [
1215
- "the",
1216
- 0
1243
+ "propertyOf",
1244
+ 1
1217
1245
  ],
1218
1246
  [
1219
1247
  "unknown",
1220
- 0
1248
+ 1
1221
1249
  ]
1222
1250
  ],
1223
1251
  [
@@ -14,7 +14,7 @@ boredom/bored
14
14
  */
15
15
 
16
16
  const template ={
17
- "queries": [
17
+ configs: [
18
18
  // "neutral anger happiness and boredom are concepts",
19
19
  // "neutral anger happiness and boredom are emotions",
20
20
  // TODO add an invert for mapping generator to "sb feels e"