tpmkms_4wp 8.9.1-beta.1 → 8.9.1-beta.11

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 (76) hide show
  1. package/common/animals.instance.json +195 -16
  2. package/common/articles.js +18 -2
  3. package/common/articles.test.json +338 -0
  4. package/common/asking.js +2 -2
  5. package/common/avatar.js +1 -1
  6. package/common/characters.js +1 -1
  7. package/common/colors.instance.json +210 -45
  8. package/common/comparable.instance.json +45 -0
  9. package/common/comparable.js +1 -1
  10. package/common/concept.js +1 -1
  11. package/common/conjunction.js +1 -1
  12. package/common/countable.js +2 -8
  13. package/common/countable.test.json +0 -586
  14. package/common/crew.instance.json +390 -0
  15. package/common/currency.js +2 -2
  16. package/common/dialogues.js +6 -4
  17. package/common/dimension.instance.json +11 -4
  18. package/common/dimension.js +2 -2
  19. package/common/edible.instance.json +352 -58
  20. package/common/emotions.instance.json +15 -0
  21. package/common/errors.js +3 -1
  22. package/common/events.js +1 -1
  23. package/common/fastfood.instance.json +1753 -1074
  24. package/common/fastfood.js +3 -3
  25. package/common/formulas.instance.json +11 -1
  26. package/common/formulas.js +1 -1
  27. package/common/gdefaults.js +28 -17
  28. package/common/help.js +4 -4
  29. package/common/help.test.json +4 -4
  30. package/common/helpers/concept.js +3 -3
  31. package/common/helpers/conjunction.js +1 -1
  32. package/common/helpers/formulas.js +4 -4
  33. package/common/helpers/frankenhash.js +4 -4
  34. package/common/helpers/meta.js +4 -4
  35. package/common/helpers/ordering.js +2 -2
  36. package/common/helpers/properties.js +16 -16
  37. package/common/helpers.js +17 -1
  38. package/common/hierarchy.js +3 -3
  39. package/common/javascript.js +1 -1
  40. package/common/kirk.instance.json +15 -0
  41. package/common/length.instance.json +165 -20
  42. package/common/math.instance.json +11 -1
  43. package/common/math.js +1 -1
  44. package/common/meta.js +5 -5
  45. package/common/negation.js +1 -1
  46. package/common/numbers.js +1 -1
  47. package/common/ordering.instance.json +31 -71
  48. package/common/ordinals.js +5 -3
  49. package/common/people.instance.json +120 -0
  50. package/common/people.js +1 -1
  51. package/common/percentages.js +1 -1
  52. package/common/pipboy.instance.json +187 -46
  53. package/common/pipboy.js +1 -1
  54. package/common/pokemon.instance.json +195 -5
  55. package/common/pos.js +11 -1
  56. package/common/pressure.instance.json +44 -7
  57. package/common/properties.instance.json +15 -0
  58. package/common/properties.js +2 -2
  59. package/common/punctuation.js +1 -1
  60. package/common/reports.instance.json +24 -4
  61. package/common/reports.js +7 -7
  62. package/common/scorekeeper.js +5 -5
  63. package/common/sdefaults.js +2 -2
  64. package/common/sizeable.js +1 -1
  65. package/common/spock.instance.json +15 -0
  66. package/common/stm.js +6 -6
  67. package/common/tell.js +1 -1
  68. package/common/temperature.instance.json +44 -8
  69. package/common/tester.js +1 -1
  70. package/common/ui.instance.json +16 -1
  71. package/common/weight.instance.json +132 -16
  72. package/common/wp.instance.json +13996 -1532
  73. package/common/wp.js +150 -25
  74. package/common/wp.test.json +82657 -3824
  75. package/common/yesno.js +1 -1
  76. package/package.json +11 -6
@@ -40,7 +40,7 @@ class API {
40
40
 
41
41
  const api = new API()
42
42
 
43
- let config = {
43
+ const config = {
44
44
  name: 'currency',
45
45
  operators: [
46
46
  "(([number]) [currency])",
@@ -98,7 +98,7 @@ const initializer = ({config, objects, apis, addWord, addGenerator, baseConfig,
98
98
  addWord(word, def)
99
99
  }
100
100
  unitWords = api.getUnitWords();
101
- for (let words of unitWords) {
101
+ for (const words of unitWords) {
102
102
  addGenerator({
103
103
  match: ({context}) => context.marker == 'currency' && context.units == words.units && context.value == 1 && context.isAbstract,
104
104
  apply: ({context, g}) => words.one, uuid
@@ -37,7 +37,7 @@ const warningSameNotEvaluated = (log, one) => {
37
37
  }
38
38
 
39
39
  // TODO implement what / what did you say ...
40
- let config = {
40
+ const config = {
41
41
  name: 'dialogues',
42
42
  operators: [
43
43
  "(<thatVerb|that> (verb/0))",
@@ -114,7 +114,9 @@ let config = {
114
114
  {
115
115
  id: 'thatVerb',
116
116
  before: ['verb'],
117
- bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"condition\"], condition: bridge }' } }",
117
+ // bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: append(before[0].generate, concatm(\"thatClause.\", operator.generate)), thatClause: bridge, conditions: append(after[0].conditions, [bridge]) }' } }",
118
+ // bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { before: [\"verb\"] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: concatm(\"thatClause.\", bridge.generate), thatClause: bridge, conditions: append(bridge.subject.conditions, [bridge]) }' } }",
119
+ bridge: "{ ...after[0], verb: after[0], that: operator, generate: ['that', 'verb'], localPriorities: { actLike: [\"subordinatedVerb\", 0] }, bridge_override: { operator: after[0].marker, bridge: '{ ...bridge.subject, postModifiers: [\"conditions\"], generate: concatm(\"thatClause.\", bridge.generate), thatClause: bridge, conditions: append(bridge.subject.conditions, [bridge]) }' } }",
118
120
  },
119
121
 
120
122
  {
@@ -658,7 +660,7 @@ let config = {
658
660
  // km('dialogues').api.mentioned(concept)
659
661
  // TODO wtf is the next line?
660
662
  value = JSON.parse(JSON.stringify(value))
661
- let instance = await e(value)
663
+ const instance = await e(value)
662
664
  if (false && instance.evalue) {
663
665
  km('stm').api.mentioned({ context: value })
664
666
  }
@@ -793,7 +795,7 @@ const initializer = ({objects, config, isModule}) => {
793
795
  return api('dialogues').toScopedId(context)
794
796
  },
795
797
  addWords: (id, word, additional) => {
796
- for (let props of words(word, { ...additional })) {
798
+ for (const props of words(word, { ...additional })) {
797
799
  config.addWord(props.word, { id, initial: JSON.stringify(props) })
798
800
  }
799
801
  },
@@ -261,6 +261,11 @@
261
261
  "theAble",
262
262
  false
263
263
  ],
264
+ [
265
+ "distributable",
266
+ "queryable",
267
+ false
268
+ ],
264
269
  [
265
270
  "divideByExpression",
266
271
  "mathematicalExpression",
@@ -276,6 +281,11 @@
276
281
  "queryable",
277
282
  false
278
283
  ],
284
+ [
285
+ "each",
286
+ "articlePOS",
287
+ false
288
+ ],
279
289
  [
280
290
  "evaluate",
281
291
  "verb",
@@ -283,7 +293,7 @@
283
293
  ],
284
294
  [
285
295
  "every",
286
- "quantifier",
296
+ "articlePOS",
287
297
  false
288
298
  ],
289
299
  [
@@ -1122,7 +1132,6 @@
1122
1132
  },
1123
1133
  "types": [
1124
1134
  "list",
1125
- "queryable",
1126
1135
  "unknown"
1127
1136
  ],
1128
1137
  "listable": true,
@@ -1139,7 +1148,6 @@
1139
1148
  "end": 8
1140
1149
  },
1141
1150
  "types": [
1142
- "queryable",
1143
1151
  "unknown"
1144
1152
  ],
1145
1153
  "dead": true,
@@ -1156,7 +1164,6 @@
1156
1164
  "end": 17
1157
1165
  },
1158
1166
  "types": [
1159
- "queryable",
1160
1167
  "unknown"
1161
1168
  ],
1162
1169
  "dead": true,
@@ -40,7 +40,7 @@ class API {
40
40
  })
41
41
 
42
42
  // for example, celcius and fahrenheit
43
- for (let unit of units) {
43
+ for (const unit of units) {
44
44
  config.addOperator(`([${unit}])`)
45
45
  config.addBridge({
46
46
  id: unit,
@@ -52,7 +52,7 @@ class API {
52
52
 
53
53
  const api = new API()
54
54
 
55
- let config = {
55
+ const config = {
56
56
  name: 'dimension',
57
57
  operators: [
58
58
  "([dimension])",