tpmkms 7.12.8-beta.1 → 7.12.8-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
package/common/crew.js CHANGED
@@ -7,7 +7,7 @@ const crew_instance = require('./crew.instance.json')
7
7
  const pluralize = require('pluralize')
8
8
 
9
9
  const template = {
10
- queries: [
10
+ configs: [
11
11
  "kirk's name is jim",
12
12
  "kirk's rank is captain",
13
13
  "kirk's eyes are blue",
@@ -55,8 +55,6 @@ let configStruct = {
55
55
  floaters: ['isQuery'],
56
56
  debug: true,
57
57
  "version": '3',
58
- "words": {
59
- },
60
58
 
61
59
  generators: [
62
60
  {
@@ -54,7 +54,7 @@ let configStruct = {
54
54
  "([what:optional])",
55
55
  "(<the|> ([theAble|]))",
56
56
  "(<a|a,an> ([theAble|]))",
57
- "([unknown])",
57
+ // "([unknown])",
58
58
  "([not] ([notAble|]))",
59
59
 
60
60
  "([be] ([briefOrWordy|]))",
@@ -150,8 +150,8 @@ let configStruct = {
150
150
  { id: "yesno", level: 0, bridge: "{ ...next(operator) }" },
151
151
  { id: "canBeQuestion", level: 0, bridge: "{ ...next(operator) }" },
152
152
  { id: "canBeQuestion", level: 1, bridge: "{ ...next(operator) }" },
153
- { id: "unknown", level: 0, bridge: "{ ...next(operator), unknown: true, dead: true }" },
154
- { id: "unknown", level: 1, bridge: "{ ...next(operator) }" },
153
+ // { id: "unknown", level: 0, bridge: "{ ...next(operator), unknown: true, dead: true }" },
154
+ // { id: "unknown", level: 1, bridge: "{ ...next(operator) }" },
155
155
  { id: "queryable", level: 0, bridge: "{ ...next(operator) }" },
156
156
  { id: "questionMark", level: 0, bridge: "{ ...before[0], query: [before.marker] }" },
157
157
  // { id: "isEd", level: 0, bridge: "{ ...context, query: true }" },
@@ -275,17 +275,19 @@ let configStruct = {
275
275
  },
276
276
  ],
277
277
  words: {
278
- "?": [{"id": "questionMark", "initial": "{}" }],
279
- "the": [{"id": "the", "initial": "{ modifiers: [] }" }],
280
- "who": [{"id": "what", "initial": "{ modifiers: [], query: true }" }],
281
- "yes": [{"id": "yesno", "initial": "{ value: true }" }],
282
- "no": [{"id": "yesno", "initial": "{ value: false }" }],
283
- "brief": [{"id": "briefOrWordy", "initial": "{ value: 'brief' }" }],
284
- "wordy": [{"id": "briefOrWordy", "initial": "{ value: 'wordy' }" }],
285
- "does": [{"id": "does", "initial": "{ number: 'one' }" }],
286
- "do": [{"id": "does", "initial": "{ number: 'many' }" }],
287
- "is": [{"id": "is", "initial": "{ number: 'one' }" }, {"id": "isEd", "initial": "{ number: 'one' }" }],
288
- "are": [{"id": "is", "initial": "{ number: 'many' }" }, {"id": "isEd", "initial": "{ number: 'many' }" }],
278
+ "literals": {
279
+ "?": [{"id": "questionMark", "initial": "{}" }],
280
+ "the": [{"id": "the", "initial": "{ modifiers: [] }" }],
281
+ "who": [{"id": "what", "initial": "{ modifiers: [], query: true }" }],
282
+ "yes": [{"id": "yesno", "initial": "{ value: true }" }],
283
+ "no": [{"id": "yesno", "initial": "{ value: false }" }],
284
+ "brief": [{"id": "briefOrWordy", "initial": "{ value: 'brief' }" }],
285
+ "wordy": [{"id": "briefOrWordy", "initial": "{ value: 'wordy' }" }],
286
+ "does": [{"id": "does", "initial": "{ number: 'one' }" }],
287
+ "do": [{"id": "does", "initial": "{ number: 'many' }" }],
288
+ "is": [{"id": "is", "initial": "{ number: 'one' }" }, {"id": "isEd", "initial": "{ number: 'one' }" }],
289
+ "are": [{"id": "is", "initial": "{ number: 'many' }" }, {"id": "isEd", "initial": "{ number: 'many' }" }],
290
+ }
289
291
  },
290
292
 
291
293
  floaters: ['query'],
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "dimension and unit are concepts",
4
4
  {
5
5
  "name": "dimension",
@@ -890,28 +890,28 @@
890
890
  "listable": true,
891
891
  "value": [
892
892
  {
893
+ "value": "dimension",
894
+ "unknown": true,
895
+ "text": "dimension",
893
896
  "marker": "unknown",
897
+ "word": "dimension",
894
898
  "range": {
895
899
  "start": 0,
896
900
  "end": 8
897
901
  },
898
- "word": "dimension",
899
- "text": "dimension",
900
- "value": "dimension",
901
- "unknown": true,
902
902
  "dead": true,
903
903
  "level": 2
904
904
  },
905
905
  {
906
+ "value": "unit",
907
+ "unknown": true,
908
+ "text": "unit",
906
909
  "marker": "unknown",
910
+ "word": "unit",
907
911
  "range": {
908
912
  "start": 14,
909
913
  "end": 17
910
914
  },
911
- "word": "unit",
912
- "text": "unit",
913
- "value": "unit",
914
- "unknown": true,
915
915
  "dead": true,
916
916
  "level": 2
917
917
  }
@@ -928,15 +928,15 @@
928
928
  "level": 1
929
929
  },
930
930
  "two": {
931
+ "value": "concepts",
932
+ "unknown": true,
933
+ "text": "concepts",
931
934
  "marker": "unknown",
935
+ "word": "concepts",
932
936
  "range": {
933
937
  "start": 23,
934
938
  "end": 30
935
939
  },
936
- "word": "concepts",
937
- "text": "concepts",
938
- "value": "concepts",
939
- "unknown": true,
940
940
  "dead": true,
941
941
  "types": [
942
942
  "unknown"
@@ -168,7 +168,7 @@ let configStruct = {
168
168
  };
169
169
 
170
170
  const template = {
171
- queries: [
171
+ configs: [
172
172
  "dimension and unit are concepts",
173
173
  configStruct,
174
174
  ],