tpmkms_4wp 7.12.8-beta.0 → 7.12.8-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) 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 +747 -73
  10. package/common/dimension.js +15 -7
  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 +992 -0
  18. package/common/formulas.js +19 -6
  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 +199 -683
  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 +23431 -1082
  38. package/common/pipboy.js +31 -4
  39. package/common/pokemon.instance.json +41 -97
  40. package/common/pokemon.js +1 -1
  41. package/common/pressure.instance.json +61 -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 +65 -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/ui.instance.json +1 -1
  58. package/common/weight.instance.json +177 -201
  59. package/common/weight.js +1 -1
  60. package/main.js +2 -6
  61. package/package.json +6 -14
  62. package/common/dimensionTemplate.instance.json +0 -582
  63. package/common/dimensionTemplate.js +0 -35
  64. package/common/formulasTemplate.instance.json +0 -483
  65. package/common/formulasTemplate.js +0 -30
  66. package/common/formulasTemplate.test.json +0 -2
  67. package/common/pipboyTemplate.instance.json +0 -17420
  68. package/common/pipboyTemplate.js +0 -48
  69. package/common/pipboyTemplate.test.json +0 -2
  70. /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,9 +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 pipboyTemplate = require('./common/pipboyTemplate')
17
+ const tokenize = require('./common/tokenize')
20
18
  const dialogues = require('./common/dialogues')
21
19
  const gdefaults = require('./common/gdefaults')
22
20
  const meta = require('./common/meta')
@@ -62,9 +60,7 @@ ordering,
62
60
  properties,
63
61
  sizeable,
64
62
  yesno,
65
- dimensionTemplate,
66
- formulasTemplate,
67
- pipboyTemplate,
63
+ tokenize,
68
64
  dialogues,
69
65
  gdefaults,
70
66
  meta,
package/package.json CHANGED
@@ -42,9 +42,7 @@
42
42
  "name": "Hidden",
43
43
  "description": "Don't show in the UI",
44
44
  "includes": [
45
- "dimensionTemplate",
46
- "formulasTemplate",
47
- "pipboyTemplate"
45
+ "tokenize"
48
46
  ]
49
47
  },
50
48
  {
@@ -149,9 +147,6 @@
149
147
  "common/dimension.instance.json",
150
148
  "common/dimension.js",
151
149
  "common/dimension.test.json",
152
- "common/dimensionTemplate.instance.json",
153
- "common/dimensionTemplate.js",
154
- "common/dimensionTemplate.test.json",
155
150
  "common/edible.instance.json",
156
151
  "common/edible.js",
157
152
  "common/edible.test.json",
@@ -163,11 +158,9 @@
163
158
  "common/fastfood.instance.json",
164
159
  "common/fastfood.js",
165
160
  "common/fastfood.test.json",
161
+ "common/formulas.instance.json",
166
162
  "common/formulas.js",
167
163
  "common/formulas.test.json",
168
- "common/formulasTemplate.instance.json",
169
- "common/formulasTemplate.js",
170
- "common/formulasTemplate.test.json",
171
164
  "common/gdefaults.js",
172
165
  "common/gdefaults.test.json",
173
166
  "common/help.js",
@@ -208,9 +201,6 @@
208
201
  "common/pipboy.instance.json",
209
202
  "common/pipboy.js",
210
203
  "common/pipboy.test.json",
211
- "common/pipboyTemplate.instance.json",
212
- "common/pipboyTemplate.js",
213
- "common/pipboyTemplate.test.json",
214
204
  "common/pokemon.instance.json",
215
205
  "common/pokemon.js",
216
206
  "common/pokemon.test.json",
@@ -254,6 +244,8 @@
254
244
  "common/testing.test.json",
255
245
  "common/time.js",
256
246
  "common/time.test.json",
247
+ "common/tokenize.js",
248
+ "common/tokenize.test.json",
257
249
  "common/ui.instance.json",
258
250
  "common/ui.js",
259
251
  "common/ui.test.json",
@@ -277,8 +269,8 @@
277
269
  "table": "^6.7.1",
278
270
  "base-64": "^1.0.0",
279
271
  "argparse": "^2.0.1",
280
- "theprogrammablemind_4wp": "7.12.8-beta.0"
272
+ "theprogrammablemind_4wp": "7.12.8-beta.10"
281
273
  },
282
- "version": "7.12.8-beta.0",
274
+ "version": "7.12.8-beta.10",
283
275
  "license": "UNLICENSED"
284
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
- })