tpmkms 8.1.0 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -766,7 +766,7 @@
766
766
  ],
767
767
  [
768
768
  "theAble",
769
- "theAble",
769
+ "queryable",
770
770
  false
771
771
  ],
772
772
  [
@@ -44,6 +44,12 @@ let config = {
44
44
  }
45
45
  },
46
46
 
47
+ {
48
+ where: where(),
49
+ match: ({context}) => context.evalue,
50
+ apply: async ({context, g}) => await g(context.evalue)
51
+ },
52
+
47
53
  {
48
54
  where: where(),
49
55
  //({context}) => context.paraphrase && context.modifiers,
@@ -152,12 +158,6 @@ let config = {
152
158
  apply: ({context}) => context.verbatim
153
159
  },
154
160
 
155
- {
156
- where: where(),
157
- match: ({context}) => context.evalue,
158
- apply: async ({context, g}) => await g(context.evalue)
159
- },
160
-
161
161
  {
162
162
  where: where(),
163
163
  match: ({context}) => context.value && Array.isArray(context.value),
@@ -70,7 +70,7 @@ class API {
70
70
  config.addOperator({ pattern: `([${objectId}|])`, allowDups: true })
71
71
  }
72
72
 
73
- if (object.unknown) {
73
+ if (object.unknown || object.marker !== objectId) {
74
74
  config.addWord(objectSingular, { id: objectId, initial: `{ value: '${objectId}', number: 'one' }`})
75
75
  config.addWord(objectPlural, { id: objectId, initial: `{ value: '${objectId}', number: 'many' }`})
76
76
  }
@@ -79,9 +79,13 @@ class API {
79
79
  // config.addWord(modifier, { id: modifierId, initial: `{ value: '${modifierId}' }`})
80
80
  // TODO call evaluator to pick up overrides
81
81
  if (modifier.unknown) {
82
- const modifierWord = modifier.text
83
- config.addWord(pluralize.singular(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'one' }`})
84
- config.addWord(pluralize.plural(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'many' }`})
82
+ const modifierWord = modifier.word
83
+ if (pluralize.isSingular(modifierWord)) {
84
+ config.addWord(pluralize.singular(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'one' }`})
85
+ }
86
+ if (pluralize.isPlural(modifierWord)) {
87
+ config.addWord(pluralize.plural(modifierWord), { id: modifierId, initial: `{ value: '${modifierId}', number: 'many' }`})
88
+ }
85
89
  }
86
90
  })
87
91
  // modifierds.forEach((modifierId) => config.addWord(modifierId, { id: modifierId, initial: `{ value: '${modifierId}' }`}))
@@ -104,6 +104,7 @@ class API {
104
104
  localHierarchy,
105
105
  bridge: `{
106
106
  ...before,
107
+ marker: '${after[0].tag}',
107
108
  constraints: [
108
109
  {
109
110
  property: '${after[0].tag}',
@@ -329,14 +330,25 @@ class API {
329
330
  } else {
330
331
  config.addOperator({ pattern: `(${beforeOperators} [${operator}|] ${afterOperators})`, allowDups: true })
331
332
  }
332
-
333
- for (let argument of before.concat(after)) {
334
- if (create.includes(argument.id)) {
335
- // config.addHierarchy('unknown', argument.id)
336
- // config.addHierarchy('what', argument.id)
337
- // greg23 <<<<<<<<<<<< doing this
338
- config.addHierarchy(argument.id, 'unknown')
339
- config.addHierarchy(argument.id, 'what')
333
+
334
+ if (false) {
335
+ for (let argument of before.concat(after)) {
336
+ if (create.includes(argument.id)) {
337
+ // config.addHierarchy('unknown', argument.id)
338
+ // config.addHierarchy('what', argument.id)
339
+ // greg23 <<<<<<<<<<<< doing this
340
+ config.addHierarchy(argument.id, 'unknown')
341
+ config.addHierarchy(argument.id, 'what')
342
+ }
343
+ }
344
+ } else {
345
+ for (let argument of before.concat(after)) {
346
+ if (create.includes(argument.id)) {
347
+ // config.addHierarchy(argument.id, 'unknown')
348
+ // config.addHierarchy(argument.id, 'what')
349
+ localHierarchy.push([argument.id, 'unknown'])
350
+ localHierarchy.push([argument.id, 'what'])
351
+ }
340
352
  }
341
353
  }
342
354
 
@@ -52,6 +52,7 @@ let config = {
52
52
  ['have', 'canBeDoQuestion'],
53
53
  ],
54
54
  priorities: [
55
+ { "context": [['isEd', 0], ['is', 0], ], "choose": [1] },
55
56
  { "context": [['a', 0], ['questionMark', 0], ['is', 0], ], "choose": [0] },
56
57
  // [['is', 0], ['hierarchyAble', 0]],
57
58
  // [['a', 0], ['is', 0], ['hierarchyAble', 0]],
@@ -1237,7 +1237,7 @@
1237
1237
  ],
1238
1238
  [
1239
1239
  "theAble",
1240
- "theAble",
1240
+ "queryable",
1241
1241
  false
1242
1242
  ],
1243
1243
  [
@@ -1352,12 +1352,7 @@
1352
1352
  ],
1353
1353
  [
1354
1354
  "weapon",
1355
- "unknown",
1356
- false
1357
- ],
1358
- [
1359
1355
  "weapon",
1360
- "what",
1361
1356
  false
1362
1357
  ],
1363
1358
  [