tpmkms_4wp 8.0.0-beta.0 → 8.0.0-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 (60) hide show
  1. package/common/animals.instance.json +2634 -1477
  2. package/common/characters.js +0 -1
  3. package/common/colors.instance.json +25327 -0
  4. package/common/colors.js +71 -0
  5. package/common/colors.test.json +4860 -0
  6. package/common/concept.js +2 -2
  7. package/common/crew.instance.json +15918 -9384
  8. package/common/crew.js +4 -2
  9. package/common/crew.test.json +714 -452
  10. package/common/dialogues.js +36 -25
  11. package/common/dialogues.test.json +1053 -33
  12. package/common/dimension.instance.json +261 -290
  13. package/common/dimension.test.json +476 -687
  14. package/common/edible.instance.json +19462 -10130
  15. package/common/emotions.instance.json +125 -68
  16. package/common/fastfood.instance.json +219732 -110803
  17. package/common/fastfood.js +1 -1
  18. package/common/fastfood.test.json +7941 -3647
  19. package/common/formulas.instance.json +219 -249
  20. package/common/formulas.js +2 -2
  21. package/common/formulas.test.json +1027 -955
  22. package/common/help.test.json +20 -28
  23. package/common/helpers/concept.js +31 -10
  24. package/common/helpers/dialogues.js +17 -1
  25. package/common/helpers/formulas.js +0 -14
  26. package/common/helpers/meta.js +0 -1
  27. package/common/helpers/properties.js +6 -13
  28. package/common/kirk.instance.json +567 -289
  29. package/common/length.instance.json +5232 -4726
  30. package/common/math.instance.json +143 -1181
  31. package/common/math.js +4 -4
  32. package/common/meta.js +0 -2
  33. package/common/negation.instance.json +2 -0
  34. package/common/negation.js +38 -0
  35. package/common/negation.test.json +308 -0
  36. package/common/ordering.instance.json +298 -160
  37. package/common/people.instance.json +1930 -1068
  38. package/common/pipboy.instance.json +7868 -6548
  39. package/common/pokemon.instance.json +4074 -2152
  40. package/common/pressure.instance.json +1299 -1237
  41. package/common/properties.instance.json +109 -60
  42. package/common/properties.js +9 -7
  43. package/common/properties.test.json +17605 -4030
  44. package/common/punctuation.js +8 -0
  45. package/common/punctuation.test.json +233 -5
  46. package/common/reports.instance.json +566 -560
  47. package/common/reports.js +0 -2
  48. package/common/sizeable.js +7 -2
  49. package/common/spock.instance.json +567 -289
  50. package/common/stm.js +16 -5
  51. package/common/temperature.instance.json +1337 -1263
  52. package/common/testing.js +0 -1
  53. package/common/tokenize.js +2 -1
  54. package/common/tokenize.test.json +86 -1
  55. package/common/ui.instance.json +241 -258
  56. package/common/ui.js +0 -1
  57. package/common/weight.instance.json +4996 -4206
  58. package/common/weight.test.json +242 -238
  59. package/main.js +50 -45
  60. package/package.json +13 -6
@@ -6,219 +6,268 @@
6
6
  "hierarchy": [
7
7
  [
8
8
  "a",
9
- "articlePOS"
9
+ "articlePOS",
10
+ false
10
11
  ],
11
12
  [
12
13
  "articlePOS",
13
- "articlePOS"
14
+ "articlePOS",
15
+ false
14
16
  ],
15
17
  [
16
18
  "between",
17
- "preposition"
19
+ "preposition",
20
+ false
18
21
  ],
19
22
  [
20
23
  "canBeDoQuestion",
21
- "canBeDoQuestion"
24
+ "canBeDoQuestion",
25
+ false
22
26
  ],
23
27
  [
24
28
  "canBeQuestion",
25
- "canBeQuestion"
29
+ "canBeQuestion",
30
+ false
26
31
  ],
27
32
  [
28
33
  "concept",
29
- "queryable"
34
+ "queryable",
35
+ false
30
36
  ],
31
37
  [
32
38
  "concept",
33
- "theAble"
39
+ "theAble",
40
+ false
41
+ ],
42
+ [
43
+ "doubleQuote",
44
+ "queryable",
45
+ false
34
46
  ],
35
47
  [
36
48
  "have",
37
- "canBeDoQuestion"
49
+ "canBeDoQuestion",
50
+ false
38
51
  ],
39
52
  [
40
53
  "have",
41
- "canBeQuestion"
54
+ "canBeQuestion",
55
+ false
42
56
  ],
43
57
  [
44
58
  "hierarchyAble",
45
- "queryable"
59
+ "queryable",
60
+ false
46
61
  ],
47
62
  [
48
63
  "ifAble",
49
- "ifAble"
64
+ "ifAble",
65
+ false
50
66
  ],
51
67
  [
52
68
  "is",
53
- "canBeQuestion"
69
+ "canBeQuestion",
70
+ false
54
71
  ],
55
72
  [
56
73
  "is",
57
- "verby"
74
+ "verby",
75
+ false
58
76
  ],
59
77
  [
60
78
  "it",
61
- "pronoun"
79
+ "pronoun",
80
+ false
62
81
  ],
63
82
  [
64
83
  "it",
65
- "queryable"
84
+ "queryable",
85
+ false
66
86
  ],
67
87
  [
68
88
  "it",
69
- "thisitthat"
89
+ "thisitthat",
90
+ false
70
91
  ],
71
92
  [
72
93
  "it",
73
- "toAble"
94
+ "toAble",
95
+ false
74
96
  ],
75
97
  [
76
98
  "modifies",
77
- "verby"
78
- ],
79
- [
80
- "notAble",
81
- "notAble"
99
+ "verby",
100
+ false
82
101
  ],
83
102
  [
84
103
  "noun",
85
- "theAble"
104
+ "theAble",
105
+ false
86
106
  ],
87
107
  [
88
108
  "object",
89
- "queryable"
109
+ "queryable",
110
+ false
90
111
  ],
91
112
  [
92
113
  "object",
93
- "theAble"
114
+ "theAble",
115
+ false
94
116
  ],
95
117
  [
96
118
  "orAble",
97
- "ifAble"
119
+ "ifAble",
120
+ false
98
121
  ],
99
122
  [
100
123
  "preposition",
101
- "preposition"
124
+ "preposition",
125
+ false
102
126
  ],
103
127
  [
104
128
  "pronoun",
105
- "pronoun"
129
+ "pronoun",
130
+ false
106
131
  ],
107
132
  [
108
133
  "property",
109
- "queryable"
134
+ "queryable",
135
+ false
110
136
  ],
111
137
  [
112
138
  "property",
113
- "theAble"
139
+ "theAble",
140
+ false
114
141
  ],
115
142
  [
116
143
  "property",
117
- "unknown"
144
+ "unknown",
145
+ false
118
146
  ],
119
147
  [
120
148
  "punctuation",
121
- "punctuation"
149
+ "punctuation",
150
+ false
122
151
  ],
123
152
  [
124
153
  "queryable",
125
- "queryable"
154
+ "queryable",
155
+ false
126
156
  ],
127
157
  [
128
158
  "questionMark",
129
- "punctuation"
159
+ "punctuation",
160
+ false
130
161
  ],
131
162
  [
132
163
  "readonly",
133
- "queryable"
164
+ "queryable",
165
+ false
134
166
  ],
135
167
  [
136
168
  "reason",
137
- "queryable"
169
+ "queryable",
170
+ false
138
171
  ],
139
172
  [
140
173
  "reason",
141
- "theAble"
174
+ "theAble",
175
+ false
142
176
  ],
143
177
  [
144
178
  "that",
145
- "thisitthat"
179
+ "thisitthat",
180
+ false
146
181
  ],
147
182
  [
148
183
  "the",
149
- "articlePOS"
184
+ "articlePOS",
185
+ false
150
186
  ],
151
187
  [
152
188
  "theAble",
153
- "theAble"
189
+ "theAble",
190
+ false
154
191
  ],
155
192
  [
156
193
  "this",
157
- "pronoun"
194
+ "pronoun",
195
+ false
158
196
  ],
159
197
  [
160
198
  "this",
161
- "queryable"
199
+ "queryable",
200
+ false
162
201
  ],
163
202
  [
164
203
  "this",
165
- "thisitthat"
204
+ "thisitthat",
205
+ false
166
206
  ],
167
207
  [
168
208
  "thisitthat",
169
- "queryable"
209
+ "queryable",
210
+ false
170
211
  ],
171
212
  [
172
213
  "to",
173
- "preposition"
214
+ "preposition",
215
+ false
174
216
  ],
175
217
  [
176
218
  "toAble",
177
- "toAble"
178
- ],
179
- [
180
- "unknown",
181
- "hierarchyAble"
219
+ "toAble",
220
+ false
182
221
  ],
183
222
  [
184
223
  "unknown",
185
- "notAble"
224
+ "hierarchyAble",
225
+ false
186
226
  ],
187
227
  [
188
228
  "unknown",
189
- "object"
229
+ "object",
230
+ false
190
231
  ],
191
232
  [
192
233
  "unknown",
193
- "queryable"
234
+ "queryable",
235
+ false
194
236
  ],
195
237
  [
196
238
  "unknown",
197
- "theAble"
239
+ "theAble",
240
+ false
198
241
  ],
199
242
  [
200
243
  "verby",
201
- "verby"
244
+ "verby",
245
+ false
202
246
  ],
203
247
  [
204
248
  "what",
205
- "object"
249
+ "object",
250
+ false
206
251
  ],
207
252
  [
208
253
  "what",
209
- "queryable"
254
+ "queryable",
255
+ false
210
256
  ],
211
257
  [
212
258
  "whatAble",
213
- "queryable"
259
+ "queryable",
260
+ false
214
261
  ],
215
262
  [
216
263
  "whose",
217
- "object"
264
+ "object",
265
+ false
218
266
  ],
219
267
  [
220
268
  "xfx",
221
- "queryable"
269
+ "queryable",
270
+ false
222
271
  ]
223
272
  ],
224
273
  "metadata": {
@@ -153,7 +153,12 @@ let configStruct = {
153
153
  { id: "doesnt", level: 0, bridge: "{ ...context, number: operator.number, object.number: operator.number, negation: true }*" },
154
154
  { id: "have", level: 0, bridge: "{ ...next(operator), object: { number: operator.number, ...before }, property: after[0], do: { left: 'object', right: 'property' } }" },
155
155
  { id: "have", level: 1, bridge: "{ ...next(operator) }" },
156
- { id: "property", level: 0, bridge: "{ ...next(operator) }" },
156
+ {
157
+ id: "property",
158
+ words: ['properties'],
159
+ level: 0,
160
+ bridge: "{ ...next(operator) }"
161
+ },
157
162
  { id: "object", level: 0, bridge: "{ ...next(operator) }" },
158
163
 
159
164
  // old
@@ -266,7 +271,6 @@ let configStruct = {
266
271
  // */
267
272
  // where: where(),
268
273
  // match: ({context}) => {
269
- // // debugger;
270
274
  // if (!context.paraphrase) {
271
275
  // return
272
276
  // }
@@ -565,15 +569,12 @@ let configStruct = {
565
569
  /*
566
570
  const propertyId = context.marker
567
571
  if (context.marker != context.value) {
568
- debugger
569
- debugger // target
570
572
  }
571
573
  */
572
574
  // const propertyId = context.marker
573
575
  /*
574
576
  // greg HERE
575
577
  */
576
- // debugger;
577
578
  propertyContext[`disable${uuid}`] = true
578
579
  const propertyId = km("dialogues").api.evaluateToConcept(propertyContext, context, log, s).evalue;
579
580
  try{
@@ -661,7 +662,6 @@ let configStruct = {
661
662
  // TODO maybe this I aware so it can say "I don't know about blah..." and below
662
663
  // if (currentContext.unknown || !currentContext.value) {
663
664
  if (!api.conceptExists(currentContext.value)) {
664
- // debugger;
665
665
  // api.conceptExists(currentContext)
666
666
  const objectPhrase = g({...currentContext, paraphrase: true})
667
667
  context.verbatim = `What "${objectPhrase}" means is unknown`
@@ -708,12 +708,14 @@ knowledgeModule( {
708
708
  contents: properties_tests,
709
709
  checks: {
710
710
  context: defaultContextCheck,
711
- xobjects: [
711
+ /*
712
+ objects: [
712
713
  'children',
713
714
  'concept',
714
715
  'parents',
715
716
  'properties'
716
717
  ]
718
+ */
717
719
  },
718
720
  include: {
719
721
  words: true,