tpmkms_4wp 8.9.1-beta.9 → 9.0.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 (117) hide show
  1. package/common/animals.instance.json +6516 -754
  2. package/common/articles.js +6 -9
  3. package/common/articles.test.json +304 -4
  4. package/common/asking.js +1 -1
  5. package/common/asking.test.json +1599 -140
  6. package/common/avatar.js +8 -0
  7. package/common/avatar.test.json +6008 -2749
  8. package/common/characters.test.json +1371 -95
  9. package/common/colors.instance.json +22685 -1441
  10. package/common/colors.test.json +704 -136
  11. package/common/comparable.instance.json +1302 -169
  12. package/common/comparable.js +12 -12
  13. package/common/comparable.test.json +3239 -558
  14. package/common/concept.js +10 -2
  15. package/common/concept.test.json +2853 -694
  16. package/common/conjunction.js +12 -0
  17. package/common/conjunction.test.json +229 -1
  18. package/common/countable.js +1 -1
  19. package/common/countable.test.json +1306 -48
  20. package/common/crew.instance.json +18984 -1943
  21. package/common/crew.js +19 -0
  22. package/common/crew.test.json +10218 -2145
  23. package/common/currency.js +0 -1
  24. package/common/currency.test.json +948 -64
  25. package/common/dialogues.js +100 -32
  26. package/common/dialogues.test.json +6611 -1905
  27. package/common/dimension.instance.json +751 -82
  28. package/common/dimension.js +16 -2
  29. package/common/dimension.test.json +23680 -11550
  30. package/common/edible.instance.json +21654 -2721
  31. package/common/edible.js +13 -0
  32. package/common/edible.test.json +1580 -304
  33. package/common/emotions.instance.json +2275 -259
  34. package/common/emotions.js +10 -2
  35. package/common/emotions.test.json +1134 -107
  36. package/common/errors.js +0 -2
  37. package/common/errors.test.json +88 -0
  38. package/common/evaluate.test.json +100 -1
  39. package/common/events.test.json +2197 -242
  40. package/common/fastfood.instance.json +82297 -10535
  41. package/common/fastfood.js +96 -9
  42. package/common/fastfood.test.json +65486 -21430
  43. package/common/formulas.instance.json +316 -59
  44. package/common/formulas.test.json +13202 -6757
  45. package/common/gdefaults.js +9 -2
  46. package/common/help.test.json +288 -0
  47. package/common/helpers/concept.js +3 -2
  48. package/common/helpers/properties.js +2 -32
  49. package/common/hierarchy.js +9 -0
  50. package/common/hierarchy.test.json +53813 -17340
  51. package/common/javascript.test.json +214 -11
  52. package/common/kirk.instance.json +309 -9
  53. package/common/kirk.test.json +1123 -254
  54. package/common/length.instance.json +9722 -774
  55. package/common/length.test.json +12055 -8184
  56. package/common/listener.test.json +39 -1
  57. package/common/math.instance.json +285 -58
  58. package/common/math.test.json +38557 -17754
  59. package/common/meta.instance.json +1 -0
  60. package/common/meta.js +8 -8
  61. package/common/meta.test.json +2770 -275
  62. package/common/nameable.js +1 -1
  63. package/common/nameable.test.json +5150 -1475
  64. package/common/negation.test.json +146 -8
  65. package/common/numbers.test.json +234 -0
  66. package/common/ordering.instance.json +3870 -493
  67. package/common/ordering.test.json +2680 -1283
  68. package/common/ordinals.js +11 -1
  69. package/common/ordinals.test.json +627 -3
  70. package/common/people.instance.json +3844 -575
  71. package/common/people.js +0 -14
  72. package/common/people.test.json +27157 -13664
  73. package/common/percentages.js +0 -1
  74. package/common/percentages.test.json +313 -0
  75. package/common/pipboy.instance.json +13577 -1511
  76. package/common/pipboy.js +30 -48
  77. package/common/pipboy.test.json +19335 -6019
  78. package/common/pokemon.instance.json +6014 -731
  79. package/common/pokemon.test.json +1826 -389
  80. package/common/pos.js +15 -5
  81. package/common/pressure.instance.json +2615 -308
  82. package/common/pressure.test.json +2997 -1629
  83. package/common/properties.instance.json +894 -86
  84. package/common/properties.js +17 -26
  85. package/common/properties.test.json +46801 -14612
  86. package/common/punctuation.test.json +327 -0
  87. package/common/reports.instance.json +979 -120
  88. package/common/reports.js +9 -2
  89. package/common/reports.test.json +16653 -2453
  90. package/common/scorekeeper.instance.json +1 -0
  91. package/common/scorekeeper.js +17 -7
  92. package/common/scorekeeper.test.json +42546 -15408
  93. package/common/sizeable.js +1 -1
  94. package/common/sizeable.test.json +1170 -215
  95. package/common/spock.instance.json +309 -9
  96. package/common/spock.test.json +1123 -254
  97. package/common/stgame.js +0 -1
  98. package/common/stgame.test.json +1371 -91
  99. package/common/stm.test.json +842 -9
  100. package/common/tell.test.json +224 -1
  101. package/common/temperature.instance.json +5967 -308
  102. package/common/temperature.test.json +2610 -1272
  103. package/common/testing.test.json +84 -1
  104. package/common/time.test.json +5345 -272
  105. package/common/tokenize.js +3 -2
  106. package/common/tokenize.test.json +39 -0
  107. package/common/ui.instance.json +130 -27
  108. package/common/ui.js +0 -16
  109. package/common/ui.test.json +4620 -140
  110. package/common/weight.instance.json +9915 -777
  111. package/common/weight.js +10 -0
  112. package/common/weight.test.json +18658 -12176
  113. package/common/wp.instance.json +14141 -1542
  114. package/common/wp.js +105 -38
  115. package/common/wp.test.json +61801 -1662
  116. package/common/yesno.test.json +168 -4
  117. package/package.json +2 -2
@@ -23,19 +23,17 @@ const config = {
23
23
  "(<a|a,an> ([theAble|]))",
24
24
  ],
25
25
  bridges: [
26
- // { id: "what", level: 0, optional: "{ ...next(operator), query: ['what'], determined: true }", bridge: "{ ...after, query: ['what'], modifiers: ['what'], what: operator }" },
27
- // { id: "whatAble", level: 0, bridge: "{ ...next(operator) }" },
28
26
  {
29
27
  id: 'everything',
30
28
  },
31
29
  {
32
30
  id: 'each',
33
- isA: ['articlePOS'],
31
+ isA: ['article'],
34
32
  bridge: '{ ...after[0], focusableForPhrase: true, pullFromContext: true, concept: true, wantsValue: true, distributer: operator, modifiers: append(["distributer"], after[0].modifiers)}'
35
33
  },
36
34
  {
37
35
  id: 'every',
38
- isA: ['articlePOS'],
36
+ isA: ['article'],
39
37
  bridge: '{ ...after[0], focusableForPhrase: true, pullFromContext: true, concept: true, wantsValue: true, distributer: operator, modifiers: append(["distributer"], after[0].modifiers)}'
40
38
  },
41
39
  {
@@ -44,11 +42,13 @@ const config = {
44
42
  },
45
43
  {
46
44
  id: 'the',
45
+ isA: ['article'],
47
46
  level: 0,
48
47
  bridge: '{ ...after[0], focusableForPhrase: true, pullFromContext: true, concept: true, wantsValue: true, determiner: "the", modifiers: append(["determiner"], after[0].modifiers)}'
49
48
  },
50
49
  {
51
50
  id: "a",
51
+ isA: ['article'],
52
52
  level: 0,
53
53
  // bridge: "{ ...after[0], pullFromContext: false, instance: true, concept: true, number: 'one', wantsValue: true, determiner: operator, modifiers: append(['determiner'], after[0].modifiers) }"
54
54
  bridge: "{ ...after[0], pullFromContext: false, instance: true, concept: true, number: 'one', wantsValue: true, determiner: operator, modifiers: append(['determiner'], after[0].modifiers) }"
@@ -57,15 +57,12 @@ const config = {
57
57
  {
58
58
  id: "theAble",
59
59
  children: ['noun'],
60
- bridge: "{ ...next(operator) }"
61
60
  },
62
61
 
63
62
  {
64
63
  id: "thisitthat",
65
- level: 0,
66
64
  isA: ['queryable'],
67
65
  before: ['verb'],
68
- bridge: "{ ...next(operator) }"
69
66
  },
70
67
  {
71
68
  id: "it",
@@ -95,8 +92,8 @@ const config = {
95
92
  ['it', 'pronoun'],
96
93
  ['this', 'pronoun'],
97
94
  // ['questionMark', 'isEd'],
98
- ['a', 'articlePOS'],
99
- ['the', 'articlePOS'],
95
+ // ['a', 'article'],
96
+ // ['the', 'article'],
100
97
  ['it', 'queryable'],
101
98
  // ['it', 'toAble'],
102
99
  ['this', 'queryable'],
@@ -17,6 +17,7 @@
17
17
  "contexts": [
18
18
  {
19
19
  "concept": true,
20
+ "context_index": 1,
20
21
  "dead": true,
21
22
  "default": true,
22
23
  "determiner": "the",
@@ -41,7 +42,6 @@
41
42
  "word": "theable"
42
43
  }
43
44
  ],
44
- "developerTest": false,
45
45
  "generatedParenthesized": [
46
46
  ""
47
47
  ],
@@ -84,6 +84,7 @@
84
84
  "articles": "articles1",
85
85
  "gdefaults": "gdefaults2",
86
86
  "pos": "pos2",
87
+ "punctuation": "punctuation2",
87
88
  "tokenize": "tokenize2"
88
89
  },
89
90
  "namespaced": {
@@ -93,6 +94,8 @@
93
94
  },
94
95
  "pos2": {
95
96
  },
97
+ "punctuation2": {
98
+ },
96
99
  "tokenize2": {
97
100
  }
98
101
  },
@@ -100,6 +103,7 @@
100
103
  {
101
104
  "context": {
102
105
  "concept": true,
106
+ "context_index": 1,
103
107
  "dead": true,
104
108
  "default": true,
105
109
  "determiner": "the",
@@ -141,6 +145,78 @@
141
145
  "query": "the theable",
142
146
  "responses": [
143
147
  ""
148
+ ],
149
+ "summaries": [
150
+ {
151
+ "length": 1,
152
+ "summaries": [
153
+ {
154
+ "counter": 1,
155
+ "operators": [
156
+ {
157
+ "marker": [
158
+ "the",
159
+ 0
160
+ ],
161
+ "range": {
162
+ "end": 2,
163
+ "start": 0
164
+ }
165
+ },
166
+ {
167
+ "marker": [
168
+ "theAble",
169
+ 0
170
+ ],
171
+ "range": {
172
+ "end": 10,
173
+ "start": 4
174
+ }
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "counter": 2,
180
+ "operators": [
181
+ {
182
+ "marker": [
183
+ "the",
184
+ 0
185
+ ],
186
+ "range": {
187
+ "end": 2,
188
+ "start": 0
189
+ }
190
+ },
191
+ {
192
+ "marker": [
193
+ "theAble",
194
+ 1
195
+ ],
196
+ "range": {
197
+ "end": 10,
198
+ "start": 4
199
+ }
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "counter": 3,
205
+ "operators": [
206
+ {
207
+ "marker": [
208
+ "theAble",
209
+ 1
210
+ ],
211
+ "range": {
212
+ "end": 10,
213
+ "start": 0
214
+ }
215
+ }
216
+ ]
217
+ }
218
+ ]
219
+ }
144
220
  ]
145
221
  },
146
222
  {
@@ -161,6 +237,7 @@
161
237
  "contexts": [
162
238
  {
163
239
  "concept": true,
240
+ "context_index": 1,
164
241
  "dead": true,
165
242
  "default": true,
166
243
  "determiner": {
@@ -174,6 +251,7 @@
174
251
  "text": "a",
175
252
  "word": "a"
176
253
  },
254
+ "instance": true,
177
255
  "level": 1,
178
256
  "marker": "theAble",
179
257
  "modifiers": [
@@ -195,7 +273,6 @@
195
273
  "word": "theable"
196
274
  }
197
275
  ],
198
- "developerTest": false,
199
276
  "generatedParenthesized": [
200
277
  ""
201
278
  ],
@@ -238,6 +315,7 @@
238
315
  "articles": "articles1",
239
316
  "gdefaults": "gdefaults2",
240
317
  "pos": "pos2",
318
+ "punctuation": "punctuation2",
241
319
  "tokenize": "tokenize2"
242
320
  },
243
321
  "namespaced": {
@@ -247,6 +325,8 @@
247
325
  },
248
326
  "pos2": {
249
327
  },
328
+ "punctuation2": {
329
+ },
250
330
  "tokenize2": {
251
331
  }
252
332
  },
@@ -254,6 +334,7 @@
254
334
  {
255
335
  "context": {
256
336
  "concept": true,
337
+ "context_index": 1,
257
338
  "dead": true,
258
339
  "default": true,
259
340
  "determiner": {
@@ -267,6 +348,7 @@
267
348
  "text": "a",
268
349
  "word": "a"
269
350
  },
351
+ "instance": true,
270
352
  "level": 1,
271
353
  "marker": "theAble",
272
354
  "modifiers": [
@@ -305,6 +387,78 @@
305
387
  "query": "a theable",
306
388
  "responses": [
307
389
  ""
390
+ ],
391
+ "summaries": [
392
+ {
393
+ "length": 1,
394
+ "summaries": [
395
+ {
396
+ "counter": 1,
397
+ "operators": [
398
+ {
399
+ "marker": [
400
+ "a",
401
+ 0
402
+ ],
403
+ "range": {
404
+ "end": 0,
405
+ "start": 0
406
+ }
407
+ },
408
+ {
409
+ "marker": [
410
+ "theAble",
411
+ 0
412
+ ],
413
+ "range": {
414
+ "end": 8,
415
+ "start": 2
416
+ }
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "counter": 2,
422
+ "operators": [
423
+ {
424
+ "marker": [
425
+ "a",
426
+ 0
427
+ ],
428
+ "range": {
429
+ "end": 0,
430
+ "start": 0
431
+ }
432
+ },
433
+ {
434
+ "marker": [
435
+ "theAble",
436
+ 1
437
+ ],
438
+ "range": {
439
+ "end": 8,
440
+ "start": 2
441
+ }
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "counter": 3,
447
+ "operators": [
448
+ {
449
+ "marker": [
450
+ "theAble",
451
+ 1
452
+ ],
453
+ "range": {
454
+ "end": 8,
455
+ "start": 0
456
+ }
457
+ }
458
+ ]
459
+ }
460
+ ]
461
+ }
308
462
  ]
309
463
  },
310
464
  {
@@ -325,6 +479,7 @@
325
479
  "contexts": [
326
480
  {
327
481
  "concept": true,
482
+ "context_index": 1,
328
483
  "dead": true,
329
484
  "default": true,
330
485
  "distributer": {
@@ -360,7 +515,6 @@
360
515
  "word": "distributable"
361
516
  }
362
517
  ],
363
- "developerTest": false,
364
518
  "generatedParenthesized": [
365
519
  ""
366
520
  ],
@@ -422,6 +576,7 @@
422
576
  {
423
577
  "context": {
424
578
  "concept": true,
579
+ "context_index": 1,
425
580
  "dead": true,
426
581
  "default": true,
427
582
  "distributer": {
@@ -474,6 +629,78 @@
474
629
  "query": "every distributable",
475
630
  "responses": [
476
631
  ""
632
+ ],
633
+ "summaries": [
634
+ {
635
+ "length": 1,
636
+ "summaries": [
637
+ {
638
+ "counter": 1,
639
+ "operators": [
640
+ {
641
+ "marker": [
642
+ "every",
643
+ 0
644
+ ],
645
+ "range": {
646
+ "end": 4,
647
+ "start": 0
648
+ }
649
+ },
650
+ {
651
+ "marker": [
652
+ "distributable",
653
+ 0
654
+ ],
655
+ "range": {
656
+ "end": 18,
657
+ "start": 6
658
+ }
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "counter": 2,
664
+ "operators": [
665
+ {
666
+ "marker": [
667
+ "every",
668
+ 0
669
+ ],
670
+ "range": {
671
+ "end": 4,
672
+ "start": 0
673
+ }
674
+ },
675
+ {
676
+ "marker": [
677
+ "distributable",
678
+ 1
679
+ ],
680
+ "range": {
681
+ "end": 18,
682
+ "start": 6
683
+ }
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "counter": 3,
689
+ "operators": [
690
+ {
691
+ "marker": [
692
+ "distributable",
693
+ 1
694
+ ],
695
+ "range": {
696
+ "end": 18,
697
+ "start": 0
698
+ }
699
+ }
700
+ ]
701
+ }
702
+ ]
703
+ }
477
704
  ]
478
705
  },
479
706
  {
@@ -494,6 +721,7 @@
494
721
  "contexts": [
495
722
  {
496
723
  "concept": true,
724
+ "context_index": 1,
497
725
  "dead": true,
498
726
  "default": true,
499
727
  "distributer": {
@@ -529,7 +757,6 @@
529
757
  "word": "distributable"
530
758
  }
531
759
  ],
532
- "developerTest": false,
533
760
  "generatedParenthesized": [
534
761
  ""
535
762
  ],
@@ -591,6 +818,7 @@
591
818
  {
592
819
  "context": {
593
820
  "concept": true,
821
+ "context_index": 1,
594
822
  "dead": true,
595
823
  "default": true,
596
824
  "distributer": {
@@ -643,6 +871,78 @@
643
871
  "query": "each distributable",
644
872
  "responses": [
645
873
  ""
874
+ ],
875
+ "summaries": [
876
+ {
877
+ "length": 1,
878
+ "summaries": [
879
+ {
880
+ "counter": 1,
881
+ "operators": [
882
+ {
883
+ "marker": [
884
+ "each",
885
+ 0
886
+ ],
887
+ "range": {
888
+ "end": 3,
889
+ "start": 0
890
+ }
891
+ },
892
+ {
893
+ "marker": [
894
+ "distributable",
895
+ 0
896
+ ],
897
+ "range": {
898
+ "end": 17,
899
+ "start": 5
900
+ }
901
+ }
902
+ ]
903
+ },
904
+ {
905
+ "counter": 2,
906
+ "operators": [
907
+ {
908
+ "marker": [
909
+ "each",
910
+ 0
911
+ ],
912
+ "range": {
913
+ "end": 3,
914
+ "start": 0
915
+ }
916
+ },
917
+ {
918
+ "marker": [
919
+ "distributable",
920
+ 1
921
+ ],
922
+ "range": {
923
+ "end": 17,
924
+ "start": 5
925
+ }
926
+ }
927
+ ]
928
+ },
929
+ {
930
+ "counter": 3,
931
+ "operators": [
932
+ {
933
+ "marker": [
934
+ "distributable",
935
+ 1
936
+ ],
937
+ "range": {
938
+ "end": 17,
939
+ "start": 0
940
+ }
941
+ }
942
+ ]
943
+ }
944
+ ]
945
+ }
646
946
  ]
647
947
  }
648
948
  ]
package/common/asking.js CHANGED
@@ -40,7 +40,7 @@ const config = {
40
40
  id: "whichOnesTestSetup",
41
41
  development: true,
42
42
  generatorp: async ({context, gs}) => `${context.marker} ${await gs(context.choices)}`,
43
- bridge: "{ ...next(operator), choices: after }",
43
+ bridge: "{ ...next(operator), choices: after[0] }",
44
44
  semantic: ({askWhich, context}) => {
45
45
  const choices = context.choices
46
46
  const chosen = ({ choice, objects }) => {