tpmkms_4wp 9.3.0 → 9.4.0

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 (113) hide show
  1. package/common/animals.instance.json +0 -65
  2. package/common/animals.js +2 -3
  3. package/common/animals.test.json +1607 -1
  4. package/common/articles.js +2 -4
  5. package/common/asking.js +21 -5
  6. package/common/avatar.js +4 -12
  7. package/common/characters.js +2 -2
  8. package/common/colors.instance.json +0 -70
  9. package/common/colors.js +2 -2
  10. package/common/comparable.instance.json +0 -15
  11. package/common/comparable.js +2 -2
  12. package/common/concept.js +1 -2
  13. package/common/concept.test.json +279 -193
  14. package/common/conjunction.js +3 -5
  15. package/common/countable.js +2 -14
  16. package/common/crew.instance.json +0 -130
  17. package/common/crew.js +2 -2
  18. package/common/currency.js +2 -3
  19. package/common/dateTimeSelectors.instance.json +175 -0
  20. package/common/dateTimeSelectors.js +168 -0
  21. package/common/dateTimeSelectors.test.json +85622 -0
  22. package/common/dates.instance.json +504 -486
  23. package/common/dates.js +128 -16
  24. package/common/dates.test.json +16867 -373
  25. package/common/dialogues.js +13 -49
  26. package/common/dimension.instance.json +0 -5
  27. package/common/dimension.js +4 -4
  28. package/common/edible.instance.json +0 -216
  29. package/common/edible.js +2 -2
  30. package/common/emotions.instance.json +0 -5
  31. package/common/emotions.js +2 -2
  32. package/common/errors.js +3 -0
  33. package/common/evaluate.js +2 -2
  34. package/common/events.js +1 -2
  35. package/common/fastfood.instance.json +28 -975
  36. package/common/fastfood.js +2 -4
  37. package/common/fastfood.test.json +16291 -6597
  38. package/common/formulas.instance.json +0 -5
  39. package/common/formulas.js +3 -1
  40. package/common/gdefaults.js +7 -4
  41. package/common/help.js +2 -2
  42. package/common/helpers/dateTimeSelectors.js +198 -0
  43. package/common/helpers/dialogues.js +11 -8
  44. package/common/helpers/properties.js +2 -2
  45. package/common/helpers.js +23 -47
  46. package/common/hierarchy.js +12 -13
  47. package/common/javascript.js +2 -3
  48. package/common/kirk.instance.json +30 -119
  49. package/common/kirk.js +2 -3
  50. package/common/length.instance.json +0 -75
  51. package/common/length.js +2 -3
  52. package/common/listener.js +3 -1
  53. package/common/math.instance.json +0 -5
  54. package/common/math.js +2 -3
  55. package/common/menus.instance.json +0 -35
  56. package/common/menus.js +3 -1
  57. package/common/meta.js +4 -5
  58. package/common/nameable.js +3 -1
  59. package/common/negation.js +2 -2
  60. package/common/numbers.js +7 -4
  61. package/common/numbers.test.json +89 -23
  62. package/common/ordering.instance.json +0 -10
  63. package/common/ordering.js +2 -3
  64. package/common/ordinals.js +2 -3
  65. package/common/people.instance.json +0 -40
  66. package/common/people.js +2 -3
  67. package/common/percentages.js +3 -4
  68. package/common/percentages.test.json +57 -11
  69. package/common/pipboy.instance.json +0 -85
  70. package/common/pipboy.js +1 -1
  71. package/common/pipboy.test.json +4377 -3386
  72. package/common/pokemon.instance.json +0 -65
  73. package/common/pokemon.js +1 -2
  74. package/common/pos.js +2 -2
  75. package/common/pressure.instance.json +0 -20
  76. package/common/pressure.js +2 -2
  77. package/common/properties.instance.json +0 -5
  78. package/common/properties.js +11 -13
  79. package/common/punctuation.js +2 -2
  80. package/common/reminders.instance.json +237 -0
  81. package/common/reminders.js +394 -0
  82. package/common/reminders.test.json +81932 -0
  83. package/common/reports.instance.json +2 -12
  84. package/common/reports.js +1 -1
  85. package/common/scorekeeper.js +2 -2
  86. package/common/scorekeeper.test.json +3565 -7550
  87. package/common/sdefaults.js +1 -1
  88. package/common/self.instance.json +2 -0
  89. package/common/self.js +49 -0
  90. package/common/self.test.json +2 -0
  91. package/common/sizeable.js +2 -2
  92. package/common/spock.instance.json +30 -119
  93. package/common/spock.js +1 -1
  94. package/common/stgame.js +1 -1
  95. package/common/stm.js +1 -1
  96. package/common/tell.js +2 -2
  97. package/common/temperature.instance.json +84 -20
  98. package/common/temperature.js +2 -2
  99. package/common/tester.js +0 -1
  100. package/common/testing.js +0 -1
  101. package/common/time.js +57 -30
  102. package/common/time.test.json +4159 -205
  103. package/common/tokenize.js +1 -1
  104. package/common/ui.instance.json +0 -5
  105. package/common/ui.js +4 -2
  106. package/common/weight.instance.json +0 -60
  107. package/common/weight.js +2 -2
  108. package/common/wp.instance.json +386 -72
  109. package/common/wp.js +1 -5
  110. package/common/wp.test.json +8057 -3867
  111. package/common/yesno.js +2 -2
  112. package/main.js +6 -0
  113. package/package.json +16 -4
@@ -6,6 +6,7 @@
6
6
  },
7
7
  "contexts": [
8
8
  {
9
+ "context_id": 2,
9
10
  "context_index": 1,
10
11
  "dead": true,
11
12
  "instance": true,
@@ -42,6 +43,8 @@
42
43
  ]
43
44
  },
44
45
  "objects": {
46
+ "associations": [
47
+ ],
45
48
  "nameToUUID": {
46
49
  "gdefaults": "gdefaults2",
47
50
  "numbers": "numbers1",
@@ -50,17 +53,22 @@
50
53
  },
51
54
  "namespaced": {
52
55
  "gdefaults2": {
56
+ "km": "gdefaults2"
53
57
  },
54
58
  "numbers1": {
59
+ "km": "numbers1"
55
60
  },
56
61
  "sdefaults2": {
62
+ "km": "sdefaults2"
57
63
  },
58
64
  "tokenize2": {
65
+ "km": "tokenize2"
59
66
  }
60
67
  },
61
68
  "processed": [
62
69
  {
63
70
  "context": {
71
+ "context_id": 2,
64
72
  "context_index": 1,
65
73
  "dead": true,
66
74
  "instance": true,
@@ -75,9 +83,12 @@
75
83
  "value": 20,
76
84
  "word": "20"
77
85
  },
78
- "generatedParenthesized": "",
79
- "paraphrases": "20",
80
- "paraphrasesParenthesized": "(20)",
86
+ "generatedParenthesized": [
87
+ ],
88
+ "paraphrases": [
89
+ ],
90
+ "paraphrasesParenthesized": [
91
+ ],
81
92
  "responses": [
82
93
  ""
83
94
  ]
@@ -139,6 +150,7 @@
139
150
  },
140
151
  "contexts": [
141
152
  {
153
+ "context_id": 2,
142
154
  "context_index": 1,
143
155
  "dead": true,
144
156
  "instance": true,
@@ -175,6 +187,8 @@
175
187
  ]
176
188
  },
177
189
  "objects": {
190
+ "associations": [
191
+ ],
178
192
  "nameToUUID": {
179
193
  "gdefaults": "gdefaults2",
180
194
  "numbers": "numbers1",
@@ -183,17 +197,22 @@
183
197
  },
184
198
  "namespaced": {
185
199
  "gdefaults2": {
200
+ "km": "gdefaults2"
186
201
  },
187
202
  "numbers1": {
203
+ "km": "numbers1"
188
204
  },
189
205
  "sdefaults2": {
206
+ "km": "sdefaults2"
190
207
  },
191
208
  "tokenize2": {
209
+ "km": "tokenize2"
192
210
  }
193
211
  },
194
212
  "processed": [
195
213
  {
196
214
  "context": {
215
+ "context_id": 2,
197
216
  "context_index": 1,
198
217
  "dead": true,
199
218
  "instance": true,
@@ -208,9 +227,12 @@
208
227
  "value": 44,
209
228
  "word": "44"
210
229
  },
211
- "generatedParenthesized": "",
212
- "paraphrases": "44",
213
- "paraphrasesParenthesized": "(44)",
230
+ "generatedParenthesized": [
231
+ ],
232
+ "paraphrases": [
233
+ ],
234
+ "paraphrasesParenthesized": [
235
+ ],
214
236
  "responses": [
215
237
  ""
216
238
  ]
@@ -272,6 +294,7 @@
272
294
  },
273
295
  "contexts": [
274
296
  {
297
+ "context_id": 2,
275
298
  "context_index": 1,
276
299
  "dead": true,
277
300
  "instance": true,
@@ -308,6 +331,8 @@
308
331
  ]
309
332
  },
310
333
  "objects": {
334
+ "associations": [
335
+ ],
311
336
  "nameToUUID": {
312
337
  "gdefaults": "gdefaults2",
313
338
  "numbers": "numbers1",
@@ -316,17 +341,22 @@
316
341
  },
317
342
  "namespaced": {
318
343
  "gdefaults2": {
344
+ "km": "gdefaults2"
319
345
  },
320
346
  "numbers1": {
347
+ "km": "numbers1"
321
348
  },
322
349
  "sdefaults2": {
350
+ "km": "sdefaults2"
323
351
  },
324
352
  "tokenize2": {
353
+ "km": "tokenize2"
325
354
  }
326
355
  },
327
356
  "processed": [
328
357
  {
329
358
  "context": {
359
+ "context_id": 2,
330
360
  "context_index": 1,
331
361
  "dead": true,
332
362
  "instance": true,
@@ -341,9 +371,12 @@
341
371
  "value": 10,
342
372
  "word": "10"
343
373
  },
344
- "generatedParenthesized": "",
345
- "paraphrases": "10",
346
- "paraphrasesParenthesized": "(10)",
374
+ "generatedParenthesized": [
375
+ ],
376
+ "paraphrases": [
377
+ ],
378
+ "paraphrasesParenthesized": [
379
+ ],
347
380
  "responses": [
348
381
  ""
349
382
  ]
@@ -405,6 +438,7 @@
405
438
  },
406
439
  "contexts": [
407
440
  {
441
+ "context_id": 2,
408
442
  "context_index": 1,
409
443
  "dead": true,
410
444
  "instance": true,
@@ -441,6 +475,8 @@
441
475
  ]
442
476
  },
443
477
  "objects": {
478
+ "associations": [
479
+ ],
444
480
  "nameToUUID": {
445
481
  "gdefaults": "gdefaults2",
446
482
  "numbers": "numbers1",
@@ -449,17 +485,22 @@
449
485
  },
450
486
  "namespaced": {
451
487
  "gdefaults2": {
488
+ "km": "gdefaults2"
452
489
  },
453
490
  "numbers1": {
491
+ "km": "numbers1"
454
492
  },
455
493
  "sdefaults2": {
494
+ "km": "sdefaults2"
456
495
  },
457
496
  "tokenize2": {
497
+ "km": "tokenize2"
458
498
  }
459
499
  },
460
500
  "processed": [
461
501
  {
462
502
  "context": {
503
+ "context_id": 2,
463
504
  "context_index": 1,
464
505
  "dead": true,
465
506
  "instance": true,
@@ -474,9 +515,12 @@
474
515
  "value": 10.23,
475
516
  "word": "10.23"
476
517
  },
477
- "generatedParenthesized": "",
478
- "paraphrases": "10.23",
479
- "paraphrasesParenthesized": "(10.23)",
518
+ "generatedParenthesized": [
519
+ ],
520
+ "paraphrases": [
521
+ ],
522
+ "paraphrasesParenthesized": [
523
+ ],
480
524
  "responses": [
481
525
  ""
482
526
  ]
@@ -538,6 +582,7 @@
538
582
  },
539
583
  "contexts": [
540
584
  {
585
+ "context_id": 2,
541
586
  "context_index": 1,
542
587
  "dead": true,
543
588
  "instance": true,
@@ -574,6 +619,8 @@
574
619
  ]
575
620
  },
576
621
  "objects": {
622
+ "associations": [
623
+ ],
577
624
  "nameToUUID": {
578
625
  "gdefaults": "gdefaults2",
579
626
  "numbers": "numbers1",
@@ -582,17 +629,22 @@
582
629
  },
583
630
  "namespaced": {
584
631
  "gdefaults2": {
632
+ "km": "gdefaults2"
585
633
  },
586
634
  "numbers1": {
635
+ "km": "numbers1"
587
636
  },
588
637
  "sdefaults2": {
638
+ "km": "sdefaults2"
589
639
  },
590
640
  "tokenize2": {
641
+ "km": "tokenize2"
591
642
  }
592
643
  },
593
644
  "processed": [
594
645
  {
595
646
  "context": {
647
+ "context_id": 2,
596
648
  "context_index": 1,
597
649
  "dead": true,
598
650
  "instance": true,
@@ -607,9 +659,12 @@
607
659
  "value": 0.23,
608
660
  "word": ".23"
609
661
  },
610
- "generatedParenthesized": "",
611
- "paraphrases": "0.23",
612
- "paraphrasesParenthesized": "(0.23)",
662
+ "generatedParenthesized": [
663
+ ],
664
+ "paraphrases": [
665
+ ],
666
+ "paraphrasesParenthesized": [
667
+ ],
613
668
  "responses": [
614
669
  ""
615
670
  ]
@@ -617,10 +672,10 @@
617
672
  ]
618
673
  },
619
674
  "paraphrases": [
620
- "0.23"
675
+ ".23"
621
676
  ],
622
677
  "paraphrasesParenthesized": [
623
- "(0.23)"
678
+ "(.23)"
624
679
  ],
625
680
  "query": ".23 ",
626
681
  "responses": [
@@ -671,9 +726,10 @@
671
726
  },
672
727
  "contexts": [
673
728
  {
729
+ "context_id": 2,
674
730
  "context_index": 1,
675
731
  "dead": true,
676
- "level": 1,
732
+ "level": 0,
677
733
  "marker": "unknown",
678
734
  "range": {
679
735
  "end": 1,
@@ -707,6 +763,8 @@
707
763
  ]
708
764
  },
709
765
  "objects": {
766
+ "associations": [
767
+ ],
710
768
  "nameToUUID": {
711
769
  "gdefaults": "gdefaults2",
712
770
  "numbers": "numbers1",
@@ -715,20 +773,25 @@
715
773
  },
716
774
  "namespaced": {
717
775
  "gdefaults2": {
776
+ "km": "gdefaults2"
718
777
  },
719
778
  "numbers1": {
779
+ "km": "numbers1"
720
780
  },
721
781
  "sdefaults2": {
782
+ "km": "sdefaults2"
722
783
  },
723
784
  "tokenize2": {
785
+ "km": "tokenize2"
724
786
  }
725
787
  },
726
788
  "processed": [
727
789
  {
728
790
  "context": {
791
+ "context_id": 2,
729
792
  "context_index": 1,
730
793
  "dead": true,
731
- "level": 1,
794
+ "level": 0,
732
795
  "marker": "unknown",
733
796
  "range": {
734
797
  "end": 1,
@@ -740,9 +803,12 @@
740
803
  "value": "c1",
741
804
  "word": "c1"
742
805
  },
743
- "generatedParenthesized": "",
744
- "paraphrases": "c1",
745
- "paraphrasesParenthesized": "(c1)",
806
+ "generatedParenthesized": [
807
+ ],
808
+ "paraphrases": [
809
+ ],
810
+ "paraphrasesParenthesized": [
811
+ ],
746
812
  "responses": [
747
813
  ""
748
814
  ]
@@ -784,7 +850,7 @@
784
850
  {
785
851
  "marker": [
786
852
  "unknown",
787
- 1
853
+ 0
788
854
  ],
789
855
  "range": {
790
856
  "end": 1,
@@ -81,11 +81,6 @@
81
81
  "article",
82
82
  false
83
83
  ],
84
- [
85
- "evaluate",
86
- "verb",
87
- false
88
- ],
89
84
  [
90
85
  "every",
91
86
  "article",
@@ -1330,11 +1325,6 @@
1330
1325
  "article",
1331
1326
  false
1332
1327
  ],
1333
- [
1334
- "evaluate",
1335
- "verb",
1336
- false
1337
- ],
1338
1328
  [
1339
1329
  "every",
1340
1330
  "article",
@@ -121,9 +121,8 @@ knowledgeModule( {
121
121
  heck: ['children', 'concept', 'parents', 'properties'],
122
122
  contents: ordering_tests,
123
123
  checks: {
124
- context: defaultContextCheck(),
125
- },
126
-
124
+ context: [defaultContextCheck()],
125
+ }
127
126
  },
128
127
  template: {
129
128
  template,
@@ -60,8 +60,7 @@ knowledgeModule( {
60
60
  name: './ordinals.test.json',
61
61
  contents: ordinals_tests,
62
62
  checks: {
63
- context: defaultContextCheck(),
64
- },
65
-
63
+ context: [defaultContextCheck()],
64
+ }
66
65
  },
67
66
  })
@@ -70,11 +70,6 @@
70
70
  "article",
71
71
  false
72
72
  ],
73
- [
74
- "evaluate",
75
- "verb",
76
- false
77
- ],
78
73
  [
79
74
  "every",
80
75
  "article",
@@ -720,11 +715,6 @@
720
715
  "article",
721
716
  false
722
717
  ],
723
- [
724
- "evaluate",
725
- "verb",
726
- false
727
- ],
728
718
  [
729
719
  "every",
730
720
  "article",
@@ -1519,11 +1509,6 @@
1519
1509
  "article",
1520
1510
  false
1521
1511
  ],
1522
- [
1523
- "evaluate",
1524
- "verb",
1525
- false
1526
- ],
1527
1512
  [
1528
1513
  "every",
1529
1514
  "article",
@@ -2469,11 +2454,6 @@
2469
2454
  "article",
2470
2455
  false
2471
2456
  ],
2472
- [
2473
- "evaluate",
2474
- "verb",
2475
- false
2476
- ],
2477
2457
  [
2478
2458
  "every",
2479
2459
  "article",
@@ -3383,11 +3363,6 @@
3383
3363
  "article",
3384
3364
  false
3385
3365
  ],
3386
- [
3387
- "evaluate",
3388
- "verb",
3389
- false
3390
- ],
3391
3366
  [
3392
3367
  "every",
3393
3368
  "article",
@@ -4490,11 +4465,6 @@
4490
4465
  "article",
4491
4466
  false
4492
4467
  ],
4493
- [
4494
- "evaluate",
4495
- "verb",
4496
- false
4497
- ],
4498
4468
  [
4499
4469
  "every",
4500
4470
  "article",
@@ -6205,11 +6175,6 @@
6205
6175
  "article",
6206
6176
  false
6207
6177
  ],
6208
- [
6209
- "evaluate",
6210
- "verb",
6211
- false
6212
- ],
6213
6178
  [
6214
6179
  "every",
6215
6180
  "article",
@@ -7549,11 +7514,6 @@
7549
7514
  "article",
7550
7515
  false
7551
7516
  ],
7552
- [
7553
- "evaluate",
7554
- "verb",
7555
- false
7556
- ],
7557
7517
  [
7558
7518
  "every",
7559
7519
  "article",
package/common/people.js CHANGED
@@ -71,9 +71,8 @@ knowledgeModule( {
71
71
  name: './people.test.json',
72
72
  contents: people_tests,
73
73
  checks: {
74
- context: defaultContextCheck(),
75
- },
76
-
74
+ context: [defaultContextCheck()],
75
+ }
77
76
  },
78
77
  template: {
79
78
  template,
@@ -24,7 +24,7 @@ const config = {
24
24
  const scale = context.percentage.scale
25
25
  const number = await e(context.value)
26
26
  const percentage = number.value * scale.value / 100
27
- const result = { ...number, value: percentage, word: null, text: null }
27
+ const result = { ...number, value: percentage, evalue: percentage, word: null, text: null }
28
28
  context.evalue = result
29
29
  context.isReponse = true
30
30
  context.paraphrase = false
@@ -46,8 +46,7 @@ knowledgeModule( {
46
46
  name: './percentages.test.json',
47
47
  contents: percentages_tests,
48
48
  checks: {
49
- context: [...defaultContextCheck(), { property: 'scale', filter: ['marker', 'word', 'value'] }],
50
- },
51
-
49
+ context: [defaultContextCheck({ extra: ['scale'] })],
50
+ }
52
51
  },
53
52
  })