tpmkms_4wp 7.12.8 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/common/animals.instance.json +89 -293
  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 +122 -17
  9. package/common/dimension.instance.json +747 -73
  10. package/common/dimension.js +15 -7
  11. package/common/edible.instance.json +243 -435
  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 +1080 -2072
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +992 -0
  18. package/common/formulas.js +19 -6
  19. package/common/formulas.test.json +1187 -3651
  20. package/common/gdefaults.js +2 -0
  21. package/common/help.js +7 -2
  22. package/common/help.test.json +9 -5
  23. package/common/helpers.js +5 -0
  24. package/common/javascript.js +8 -6
  25. package/common/kirk.instance.json +1 -1
  26. package/common/kirk.js +1 -1
  27. package/common/length.instance.json +316 -740
  28. package/common/length.js +1 -1
  29. package/common/math.instance.json +1959 -1
  30. package/common/math.js +17 -5
  31. package/common/meta.instance.json +1 -1
  32. package/common/meta.js +35 -10
  33. package/common/numbers.js +28 -24
  34. package/common/ordering.instance.json +37 -153
  35. package/common/ordering.js +1 -1
  36. package/common/people.instance.json +50 -78
  37. package/common/people.js +1 -1
  38. package/common/pipboy.instance.json +23431 -1082
  39. package/common/pipboy.js +31 -4
  40. package/common/pipboy.test.json +13 -9
  41. package/common/pokemon.instance.json +41 -141
  42. package/common/pokemon.js +1 -1
  43. package/common/pressure.instance.json +93 -33
  44. package/common/pressure.js +1 -1
  45. package/common/properties.instance.json +21 -49
  46. package/common/properties.js +13 -8
  47. package/common/reports.instance.json +23 -63
  48. package/common/reports.js +9 -7
  49. package/common/scorekeeper.instance.json +1 -1
  50. package/common/scorekeeper.js +9 -7
  51. package/common/spock.instance.json +1 -1
  52. package/common/spock.js +1 -1
  53. package/common/tell.js +4 -2
  54. package/common/temperature.instance.json +97 -193
  55. package/common/temperature.js +1 -1
  56. package/common/time.js +36 -20
  57. package/common/time.test.json +66 -44
  58. package/common/tokenize.js +46 -0
  59. package/common/ui.instance.json +9 -1
  60. package/common/weight.instance.json +273 -217
  61. package/common/weight.js +1 -1
  62. package/main.js +2 -8
  63. package/package.json +6 -18
  64. package/common/dimensionTemplate.instance.json +0 -582
  65. package/common/dimensionTemplate.js +0 -35
  66. package/common/formulasTemplate.instance.json +0 -483
  67. package/common/formulasTemplate.js +0 -30
  68. package/common/formulasTemplate.test.json +0 -2
  69. package/common/mathTemplate.instance.json +0 -1635
  70. package/common/mathTemplate.js +0 -32
  71. package/common/mathTemplate.test.json +0 -1422
  72. package/common/pipboyTemplate.instance.json +0 -17420
  73. package/common/pipboyTemplate.js +0 -48
  74. package/common/pipboyTemplate.test.json +0 -2
  75. /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
package/common/weight.js CHANGED
@@ -16,7 +16,7 @@ const weight_instance = require('./weight.instance.json')
16
16
  troy ounce is an ounce
17
17
  */
18
18
  const template = {
19
- "queries": [
19
+ configs: [
20
20
  "troy modifies ounces",
21
21
  "weight is a dimension",
22
22
  // "kilograms grams pounds ounces and tons are units of weight",
package/main.js CHANGED
@@ -14,10 +14,7 @@ const ordering = require('./common/ordering')
14
14
  const properties = require('./common/properties')
15
15
  const sizeable = require('./common/sizeable')
16
16
  const yesno = require('./common/yesno')
17
- const dimensionTemplate = require('./common/dimensionTemplate')
18
- const formulasTemplate = require('./common/formulasTemplate')
19
- const mathTemplate = require('./common/mathTemplate')
20
- const pipboyTemplate = require('./common/pipboyTemplate')
17
+ const tokenize = require('./common/tokenize')
21
18
  const dialogues = require('./common/dialogues')
22
19
  const gdefaults = require('./common/gdefaults')
23
20
  const meta = require('./common/meta')
@@ -63,10 +60,7 @@ ordering,
63
60
  properties,
64
61
  sizeable,
65
62
  yesno,
66
- dimensionTemplate,
67
- formulasTemplate,
68
- mathTemplate,
69
- pipboyTemplate,
63
+ tokenize,
70
64
  dialogues,
71
65
  gdefaults,
72
66
  meta,
package/package.json CHANGED
@@ -42,10 +42,7 @@
42
42
  "name": "Hidden",
43
43
  "description": "Don't show in the UI",
44
44
  "includes": [
45
- "dimensionTemplate",
46
- "formulasTemplate",
47
- "mathTemplate",
48
- "pipboyTemplate"
45
+ "tokenize"
49
46
  ]
50
47
  },
51
48
  {
@@ -150,9 +147,6 @@
150
147
  "common/dimension.instance.json",
151
148
  "common/dimension.js",
152
149
  "common/dimension.test.json",
153
- "common/dimensionTemplate.instance.json",
154
- "common/dimensionTemplate.js",
155
- "common/dimensionTemplate.test.json",
156
150
  "common/edible.instance.json",
157
151
  "common/edible.js",
158
152
  "common/edible.test.json",
@@ -164,11 +158,9 @@
164
158
  "common/fastfood.instance.json",
165
159
  "common/fastfood.js",
166
160
  "common/fastfood.test.json",
161
+ "common/formulas.instance.json",
167
162
  "common/formulas.js",
168
163
  "common/formulas.test.json",
169
- "common/formulasTemplate.instance.json",
170
- "common/formulasTemplate.js",
171
- "common/formulasTemplate.test.json",
172
164
  "common/gdefaults.js",
173
165
  "common/gdefaults.test.json",
174
166
  "common/help.js",
@@ -195,9 +187,6 @@
195
187
  "common/math.instance.json",
196
188
  "common/math.js",
197
189
  "common/math.test.json",
198
- "common/mathTemplate.instance.json",
199
- "common/mathTemplate.js",
200
- "common/mathTemplate.test.json",
201
190
  "common/meta.instance.json",
202
191
  "common/meta.js",
203
192
  "common/meta.test.json",
@@ -212,9 +201,6 @@
212
201
  "common/pipboy.instance.json",
213
202
  "common/pipboy.js",
214
203
  "common/pipboy.test.json",
215
- "common/pipboyTemplate.instance.json",
216
- "common/pipboyTemplate.js",
217
- "common/pipboyTemplate.test.json",
218
204
  "common/pokemon.instance.json",
219
205
  "common/pokemon.js",
220
206
  "common/pokemon.test.json",
@@ -258,6 +244,8 @@
258
244
  "common/testing.test.json",
259
245
  "common/time.js",
260
246
  "common/time.test.json",
247
+ "common/tokenize.js",
248
+ "common/tokenize.test.json",
261
249
  "common/ui.instance.json",
262
250
  "common/ui.js",
263
251
  "common/ui.test.json",
@@ -281,8 +269,8 @@
281
269
  "table": "^6.7.1",
282
270
  "base-64": "^1.0.0",
283
271
  "argparse": "^2.0.1",
284
- "theprogrammablemind_4wp": "7.12.8"
272
+ "theprogrammablemind_4wp": "8.0.0"
285
273
  },
286
- "version": "7.12.8",
274
+ "version": "8.0.0",
287
275
  "license": "UNLICENSED"
288
276
  }
@@ -1,582 +0,0 @@
1
- {
2
- "queries": [
3
- "dimension and unit are concepts"
4
- ],
5
- "resultss": [
6
- {
7
- "hierarchy": [
8
- [
9
- "a",
10
- "articlePOS"
11
- ],
12
- [
13
- "articlePOS",
14
- "articlePOS"
15
- ],
16
- [
17
- "between",
18
- "preposition"
19
- ],
20
- [
21
- "canBeDoQuestion",
22
- "canBeDoQuestion"
23
- ],
24
- [
25
- "canBeQuestion",
26
- "canBeQuestion"
27
- ],
28
- [
29
- "concept",
30
- "queryable"
31
- ],
32
- [
33
- "concept",
34
- "theAble"
35
- ],
36
- [
37
- "have",
38
- "canBeDoQuestion"
39
- ],
40
- [
41
- "have",
42
- "canBeQuestion"
43
- ],
44
- [
45
- "hierarchyAble",
46
- "queryable"
47
- ],
48
- [
49
- "ifAble",
50
- "ifAble"
51
- ],
52
- [
53
- "is",
54
- "canBeQuestion"
55
- ],
56
- [
57
- "is",
58
- "verby"
59
- ],
60
- [
61
- "it",
62
- "pronoun"
63
- ],
64
- [
65
- "it",
66
- "queryable"
67
- ],
68
- [
69
- "it",
70
- "thisitthat"
71
- ],
72
- [
73
- "it",
74
- "toAble"
75
- ],
76
- [
77
- "modifies",
78
- "verby"
79
- ],
80
- [
81
- "notAble",
82
- "notAble"
83
- ],
84
- [
85
- "noun",
86
- "theAble"
87
- ],
88
- [
89
- "object",
90
- "queryable"
91
- ],
92
- [
93
- "object",
94
- "theAble"
95
- ],
96
- [
97
- "orAble",
98
- "ifAble"
99
- ],
100
- [
101
- "preposition",
102
- "preposition"
103
- ],
104
- [
105
- "pronoun",
106
- "pronoun"
107
- ],
108
- [
109
- "property",
110
- "queryable"
111
- ],
112
- [
113
- "property",
114
- "theAble"
115
- ],
116
- [
117
- "property",
118
- "unknown"
119
- ],
120
- [
121
- "punctuation",
122
- "punctuation"
123
- ],
124
- [
125
- "queryable",
126
- "queryable"
127
- ],
128
- [
129
- "questionMark",
130
- "punctuation"
131
- ],
132
- [
133
- "readonly",
134
- "queryable"
135
- ],
136
- [
137
- "reason",
138
- "queryable"
139
- ],
140
- [
141
- "reason",
142
- "theAble"
143
- ],
144
- [
145
- "that",
146
- "thisitthat"
147
- ],
148
- [
149
- "the",
150
- "articlePOS"
151
- ],
152
- [
153
- "theAble",
154
- "theAble"
155
- ],
156
- [
157
- "this",
158
- "pronoun"
159
- ],
160
- [
161
- "this",
162
- "queryable"
163
- ],
164
- [
165
- "this",
166
- "thisitthat"
167
- ],
168
- [
169
- "thisitthat",
170
- "queryable"
171
- ],
172
- [
173
- "to",
174
- "preposition"
175
- ],
176
- [
177
- "toAble",
178
- "toAble"
179
- ],
180
- [
181
- "type",
182
- "property"
183
- ],
184
- [
185
- "type",
186
- "whatAble"
187
- ],
188
- [
189
- "unknown",
190
- "hierarchyAble"
191
- ],
192
- [
193
- "unknown",
194
- "notAble"
195
- ],
196
- [
197
- "unknown",
198
- "object"
199
- ],
200
- [
201
- "unknown",
202
- "queryable"
203
- ],
204
- [
205
- "unknown",
206
- "theAble"
207
- ],
208
- [
209
- "verby",
210
- "verby"
211
- ],
212
- [
213
- "what",
214
- "object"
215
- ],
216
- [
217
- "what",
218
- "queryable"
219
- ],
220
- [
221
- "whatAble",
222
- "queryable"
223
- ],
224
- [
225
- "whose",
226
- "object"
227
- ],
228
- [
229
- "xfx",
230
- "queryable"
231
- ]
232
- ],
233
- "metadata": {
234
- "opChoices": [
235
- {
236
- "op": [
237
- "unknown",
238
- 0
239
- ],
240
- "ops": [
241
- [
242
- "unknown",
243
- 0
244
- ],
245
- [
246
- "unknown",
247
- 0
248
- ],
249
- [
250
- "is",
251
- 0
252
- ],
253
- [
254
- "unknown",
255
- 0
256
- ],
257
- [
258
- "list",
259
- 0
260
- ]
261
- ],
262
- "counter": 1
263
- },
264
- {
265
- "op": [
266
- "unknown",
267
- 0
268
- ],
269
- "ops": [
270
- [
271
- "unknown",
272
- 0
273
- ],
274
- [
275
- "is",
276
- 0
277
- ],
278
- [
279
- "unknown",
280
- 0
281
- ],
282
- [
283
- "list",
284
- 0
285
- ]
286
- ],
287
- "counter": 2
288
- },
289
- {
290
- "op": [
291
- "unknown",
292
- 0
293
- ],
294
- "ops": [
295
- [
296
- "is",
297
- 0
298
- ],
299
- [
300
- "unknown",
301
- 0
302
- ],
303
- [
304
- "list",
305
- 0
306
- ]
307
- ],
308
- "counter": 3
309
- },
310
- {
311
- "op": [
312
- "list",
313
- 0
314
- ],
315
- "ops": [
316
- [
317
- "is",
318
- 0
319
- ],
320
- [
321
- "list",
322
- 0
323
- ]
324
- ],
325
- "counter": 4
326
- },
327
- {
328
- "op": [
329
- "is",
330
- 0
331
- ],
332
- "ops": [
333
- [
334
- "is",
335
- 0
336
- ]
337
- ],
338
- "counter": 5
339
- },
340
- {
341
- "op": [
342
- "is",
343
- 1
344
- ],
345
- "ops": [
346
- [
347
- "is",
348
- 1
349
- ]
350
- ],
351
- "counter": 6
352
- }
353
- ]
354
- },
355
- "trace": "undefined",
356
- "contexts": [
357
- {
358
- "number": "many",
359
- "text": "dimension and unit are concepts",
360
- "marker": "is",
361
- "word": "are",
362
- "range": {
363
- "start": 0,
364
- "end": 30
365
- },
366
- "one": {
367
- "number": "many",
368
- "marker": "list",
369
- "default": true,
370
- "word": "and",
371
- "text": "dimension and unit",
372
- "range": {
373
- "start": 0,
374
- "end": 30
375
- },
376
- "types": [
377
- "list",
378
- "type"
379
- ],
380
- "listable": true,
381
- "isList": true,
382
- "value": [
383
- {
384
- "marker": "type",
385
- "range": {
386
- "start": 0,
387
- "end": 8
388
- },
389
- "word": "dimension",
390
- "text": "dimension",
391
- "value": "dimension",
392
- "unknown": true,
393
- "dead": true,
394
- "level": 1
395
- },
396
- {
397
- "marker": "type",
398
- "range": {
399
- "start": 14,
400
- "end": 17
401
- },
402
- "word": "unit",
403
- "text": "unit",
404
- "value": "unit",
405
- "unknown": true,
406
- "dead": true,
407
- "level": 1
408
- }
409
- ],
410
- "level": 1
411
- },
412
- "two": {
413
- "marker": "unknown",
414
- "range": {
415
- "start": 23,
416
- "end": 30
417
- },
418
- "word": "concepts",
419
- "text": "concepts",
420
- "value": "concepts",
421
- "unknown": true,
422
- "dead": true,
423
- "types": [
424
- "unknown"
425
- ],
426
- "level": 1,
427
- "concept": true
428
- },
429
- "dead": true,
430
- "level": 2,
431
- "topLevel": true,
432
- "touchedBy": [
433
- "dimensionTemplate#call2"
434
- ]
435
- }
436
- ],
437
- "generated": [
438
- ""
439
- ],
440
- "paraphrases": [
441
- "dimension and unit are concepts"
442
- ],
443
- "paraphrasesParenthesized": [],
444
- "generatedParenthesized": [],
445
- "responses": [
446
- ""
447
- ],
448
- "associations": [
449
- [
450
- [
451
- "is",
452
- 0
453
- ],
454
- [
455
- "list",
456
- 0
457
- ],
458
- [
459
- "unknown",
460
- 0
461
- ]
462
- ],
463
- [
464
- [
465
- "is",
466
- 0
467
- ],
468
- [
469
- "list",
470
- 0
471
- ],
472
- [
473
- "unknown",
474
- 0
475
- ],
476
- [
477
- "unknown",
478
- 1
479
- ]
480
- ],
481
- [
482
- [
483
- "is",
484
- 0
485
- ],
486
- [
487
- "list",
488
- 0
489
- ],
490
- [
491
- "unknown",
492
- 1
493
- ]
494
- ],
495
- [
496
- [
497
- "is",
498
- 0
499
- ],
500
- [
501
- "list",
502
- 1
503
- ],
504
- [
505
- "unknown",
506
- 1
507
- ]
508
- ]
509
- ],
510
- "learned_contextual_priorities": [],
511
- "query": "dimension and unit are concepts",
512
- "key": {
513
- "query": "dimension and unit are concepts"
514
- }
515
- }
516
- ],
517
- "fragments": [],
518
- "semantics": [],
519
- "associations": [
520
- [
521
- [
522
- "is",
523
- 0
524
- ],
525
- [
526
- "list",
527
- 0
528
- ],
529
- [
530
- "unknown",
531
- 0
532
- ]
533
- ],
534
- [
535
- [
536
- "is",
537
- 0
538
- ],
539
- [
540
- "list",
541
- 0
542
- ],
543
- [
544
- "unknown",
545
- 0
546
- ],
547
- [
548
- "unknown",
549
- 1
550
- ]
551
- ],
552
- [
553
- [
554
- "is",
555
- 0
556
- ],
557
- [
558
- "list",
559
- 0
560
- ],
561
- [
562
- "unknown",
563
- 1
564
- ]
565
- ],
566
- [
567
- [
568
- "is",
569
- 0
570
- ],
571
- [
572
- "list",
573
- 1
574
- ],
575
- [
576
- "unknown",
577
- 1
578
- ]
579
- ]
580
- ],
581
- "learned_contextual_priorities": []
582
- }
@@ -1,35 +0,0 @@
1
- const { Config, knowledgeModule, where } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
3
- const hierarchy = require('./hierarchy')
4
- const dimensionTemplate_tests = require('./dimensionTemplate.test.json')
5
- const dimensionTemplate_instance = require('./dimensionTemplate.instance.json')
6
-
7
- const template = {
8
- queries: [
9
- "dimension and unit are concepts",
10
- ],
11
- }
12
-
13
- const createConfig = () => {
14
- const config = new Config({ name: 'dimensionTemplate' }, module)
15
- config.add(hierarchy())
16
- return config
17
- }
18
-
19
- knowledgeModule( {
20
- module,
21
- description: 'template for dimension',
22
- createConfig,
23
- test: {
24
- name: './dimensionTemplate.test.json',
25
- contents: dimensionTemplate_tests
26
- },
27
- template: {
28
- template,
29
- instance: dimensionTemplate_instance,
30
- checks: {
31
- context: defaultContextCheck,
32
- },
33
-
34
- }
35
- })