tpmkms_4wp 8.9.0 → 8.9.1-beta.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 (44) hide show
  1. package/common/animals.instance.json +65 -36
  2. package/common/articles.js +4 -0
  3. package/common/colors.instance.json +77 -106
  4. package/common/comparable.instance.json +15 -0
  5. package/common/conjunction.js +27 -18
  6. package/common/countable.js +8 -2
  7. package/common/countable.test.json +586 -0
  8. package/common/crew.instance.json +142 -504
  9. package/common/dialogues.js +14 -11
  10. package/common/dimension.instance.json +10 -36
  11. package/common/edible.instance.json +324 -224
  12. package/common/emotions.instance.json +8 -60
  13. package/common/fastfood.instance.json +1464 -216
  14. package/common/formulas.instance.json +10 -0
  15. package/common/helpers/conjunction.js +75 -0
  16. package/common/helpers/dialogues.js +14 -8
  17. package/common/helpers/properties.js +2 -2
  18. package/common/helpers.js +29 -0
  19. package/common/hierarchy.js +5 -5
  20. package/common/hierarchy.test.json +1491 -0
  21. package/common/kirk.instance.json +5 -0
  22. package/common/length.instance.json +150 -0
  23. package/common/math.instance.json +10 -0
  24. package/common/meta.js +5 -3
  25. package/common/ordering.instance.json +78 -0
  26. package/common/people.instance.json +169 -4
  27. package/common/pipboy.instance.json +203 -177
  28. package/common/pipboy.js +0 -1
  29. package/common/pipboy.test.json +494 -251
  30. package/common/pokemon.instance.json +71 -6
  31. package/common/pos.js +9 -6
  32. package/common/pressure.instance.json +40 -0
  33. package/common/properties.instance.json +5 -44
  34. package/common/reports.instance.json +21 -1
  35. package/common/spock.instance.json +5 -0
  36. package/common/temperature.instance.json +40 -0
  37. package/common/ui.instance.json +135 -0
  38. package/common/ui.js +11 -5
  39. package/common/weight.instance.json +120 -0
  40. package/common/wp.instance.json +30067 -0
  41. package/common/wp.js +240 -0
  42. package/common/wp.test.json +41513 -0
  43. package/main.js +2 -0
  44. package/package.json +7 -2
@@ -233,6 +233,11 @@
233
233
  "verb",
234
234
  false
235
235
  ],
236
+ [
237
+ "every",
238
+ "quantifier",
239
+ false
240
+ ],
236
241
  [
237
242
  "expression",
238
243
  "expression",
@@ -503,6 +508,11 @@
503
508
  "verb",
504
509
  false
505
510
  ],
511
+ [
512
+ "negatable",
513
+ "queryable",
514
+ false
515
+ ],
506
516
  [
507
517
  "noun",
508
518
  "theAble",
@@ -1443,6 +1453,11 @@
1443
1453
  "verb",
1444
1454
  false
1445
1455
  ],
1456
+ [
1457
+ "every",
1458
+ "quantifier",
1459
+ false
1460
+ ],
1446
1461
  [
1447
1462
  "expression",
1448
1463
  "expression",
@@ -1713,6 +1728,11 @@
1713
1728
  "verb",
1714
1729
  false
1715
1730
  ],
1731
+ [
1732
+ "negatable",
1733
+ "queryable",
1734
+ false
1735
+ ],
1716
1736
  [
1717
1737
  "noun",
1718
1738
  "theAble",
@@ -3133,6 +3153,11 @@
3133
3153
  "verb",
3134
3154
  false
3135
3155
  ],
3156
+ [
3157
+ "every",
3158
+ "quantifier",
3159
+ false
3160
+ ],
3136
3161
  [
3137
3162
  "expression",
3138
3163
  "expression",
@@ -3483,6 +3508,11 @@
3483
3508
  "verb",
3484
3509
  false
3485
3510
  ],
3511
+ [
3512
+ "negatable",
3513
+ "queryable",
3514
+ false
3515
+ ],
3486
3516
  [
3487
3517
  "noun",
3488
3518
  "theAble",
@@ -4821,6 +4851,11 @@
4821
4851
  "verb",
4822
4852
  false
4823
4853
  ],
4854
+ [
4855
+ "every",
4856
+ "quantifier",
4857
+ false
4858
+ ],
4824
4859
  [
4825
4860
  "expression",
4826
4861
  "expression",
@@ -5171,6 +5206,11 @@
5171
5206
  "verb",
5172
5207
  false
5173
5208
  ],
5209
+ [
5210
+ "negatable",
5211
+ "queryable",
5212
+ false
5213
+ ],
5174
5214
  [
5175
5215
  "noun",
5176
5216
  "theAble",
@@ -19,11 +19,26 @@
19
19
  "adjective",
20
20
  false
21
21
  ],
22
+ [
23
+ "all",
24
+ "quantifier",
25
+ false
26
+ ],
22
27
  [
23
28
  "articlePOS",
24
29
  "articlePOS",
25
30
  false
26
31
  ],
32
+ [
33
+ "between",
34
+ "preposition",
35
+ false
36
+ ],
37
+ [
38
+ "canBeDoQuestion",
39
+ "canBeDoQuestion",
40
+ false
41
+ ],
27
42
  [
28
43
  "canBeQuestion",
29
44
  "canBeQuestion",
@@ -34,6 +49,21 @@
34
49
  "verb",
35
50
  false
36
51
  ],
52
+ [
53
+ "concept",
54
+ "queryable",
55
+ false
56
+ ],
57
+ [
58
+ "concept",
59
+ "theAble",
60
+ false
61
+ ],
62
+ [
63
+ "countable",
64
+ "hierarchyAble",
65
+ false
66
+ ],
37
67
  [
38
68
  "direction",
39
69
  "direction",
@@ -54,6 +84,31 @@
54
84
  "verb",
55
85
  false
56
86
  ],
87
+ [
88
+ "every",
89
+ "quantifier",
90
+ false
91
+ ],
92
+ [
93
+ "hasCountOfPieces",
94
+ "countable",
95
+ false
96
+ ],
97
+ [
98
+ "have",
99
+ "canBeDoQuestion",
100
+ false
101
+ ],
102
+ [
103
+ "have",
104
+ "canBeQuestion",
105
+ false
106
+ ],
107
+ [
108
+ "hierarchyAble",
109
+ "queryable",
110
+ false
111
+ ],
57
112
  [
58
113
  "ifAble",
59
114
  "ifAble",
@@ -109,6 +164,11 @@
109
164
  "theAble",
110
165
  false
111
166
  ],
167
+ [
168
+ "modifies",
169
+ "verb",
170
+ false
171
+ ],
112
172
  [
113
173
  "move",
114
174
  "verb",
@@ -119,16 +179,36 @@
119
179
  "preposition",
120
180
  false
121
181
  ],
182
+ [
183
+ "negatable",
184
+ "queryable",
185
+ false
186
+ ],
122
187
  [
123
188
  "noun",
124
189
  "theAble",
125
190
  false
126
191
  ],
192
+ [
193
+ "number",
194
+ "quantifier",
195
+ false
196
+ ],
127
197
  [
128
198
  "number",
129
199
  "queryable",
130
200
  false
131
201
  ],
202
+ [
203
+ "object",
204
+ "queryable",
205
+ false
206
+ ],
207
+ [
208
+ "object",
209
+ "theAble",
210
+ false
211
+ ],
132
212
  [
133
213
  "orAble",
134
214
  "ifAble",
@@ -149,11 +229,31 @@
149
229
  "pronoun",
150
230
  false
151
231
  ],
232
+ [
233
+ "property",
234
+ "queryable",
235
+ false
236
+ ],
237
+ [
238
+ "property",
239
+ "theAble",
240
+ false
241
+ ],
242
+ [
243
+ "propertyOf",
244
+ "preposition",
245
+ false
246
+ ],
152
247
  [
153
248
  "punctuation",
154
249
  "punctuation",
155
250
  false
156
251
  ],
252
+ [
253
+ "quantifier",
254
+ "quantifier",
255
+ false
256
+ ],
157
257
  [
158
258
  "queryable",
159
259
  "queryable",
@@ -164,6 +264,11 @@
164
264
  "punctuation",
165
265
  false
166
266
  ],
267
+ [
268
+ "readonly",
269
+ "queryable",
270
+ false
271
+ ],
167
272
  [
168
273
  "reason",
169
274
  "queryable",
@@ -244,6 +349,21 @@
244
349
  "toAble",
245
350
  false
246
351
  ],
352
+ [
353
+ "type",
354
+ "property",
355
+ false
356
+ ],
357
+ [
358
+ "type",
359
+ "whatAble",
360
+ false
361
+ ],
362
+ [
363
+ "unknown",
364
+ "hierarchyAble",
365
+ false
366
+ ],
247
367
  [
248
368
  "unknown",
249
369
  "queryable",
@@ -269,6 +389,11 @@
269
389
  "verb",
270
390
  false
271
391
  ],
392
+ [
393
+ "what",
394
+ "object",
395
+ false
396
+ ],
272
397
  [
273
398
  "what",
274
399
  "queryable",
@@ -278,6 +403,16 @@
278
403
  "whatAble",
279
404
  "queryable",
280
405
  false
406
+ ],
407
+ [
408
+ "whose",
409
+ "object",
410
+ false
411
+ ],
412
+ [
413
+ "xfx",
414
+ "queryable",
415
+ false
281
416
  ]
282
417
  ],
283
418
  "metadata": {
package/common/ui.js CHANGED
@@ -2,6 +2,7 @@ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammable
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const dialogues = require('./dialogues')
4
4
  const ordinals = require('./ordinals')
5
+ const countable = require('./countable')
5
6
  const ui_tests = require('./ui.test.json')
6
7
  const ui_instance = require('./ui.instance.json')
7
8
 
@@ -10,8 +11,8 @@ class API {
10
11
  this._objects = objects
11
12
  }
12
13
 
13
- move(direction, steps = 1) {
14
- this._objects.move = { direction, steps }
14
+ move(direction, steps = 1, units = undefined) {
15
+ this._objects.move = { direction, steps, units }
15
16
  }
16
17
 
17
18
  select(item) {
@@ -52,7 +53,7 @@ const config = {
52
53
  "([right])",
53
54
  "([stop] ([action]))",
54
55
  "([listening])",
55
- "(([direction]) [moveAmount|] ([number]))"
56
+ "(([direction]) [moveAmount|] (number/* || context.quantity != null))"
56
57
  ],
57
58
  semantics: [
58
59
  {
@@ -96,6 +97,7 @@ const config = {
96
97
  where: where(),
97
98
  id: "moveAmount",
98
99
  isA: ['preposition'],
100
+ after: ['counting'],
99
101
  convolution: true,
100
102
  level: 0,
101
103
  bridge: "{ ...before[0], postModifiers: ['steps'], steps: after[0] }",
@@ -131,7 +133,11 @@ const config = {
131
133
  optional: { 1: "{ marker: 'moveable', pullFromContext: true, default: true, skipDefault: true }" },
132
134
  bridge: "{ ...next(operator), operator: operator, moveable: after[0], direction: after[1], generate: ['operator', 'moveable', 'direction' ] }",
133
135
  semantic: ({api, context}) => {
134
- api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
136
+ if (context.direction?.steps?.quantity) {
137
+ api.move(context.direction.value, context.direction.steps.quantity.value, context.direction.steps.marker)
138
+ } else {
139
+ api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
140
+ }
135
141
  }
136
142
  },
137
143
  { id: "moveable", },
@@ -183,7 +189,7 @@ const template = {
183
189
 
184
190
  knowledgeModule({
185
191
  config,
186
- includes: [dialogues, ordinals],
192
+ includes: [dialogues, ordinals, countable],
187
193
  api: () => new API(),
188
194
 
189
195
  module,
@@ -241,6 +241,11 @@
241
241
  "verb",
242
242
  false
243
243
  ],
244
+ [
245
+ "every",
246
+ "quantifier",
247
+ false
248
+ ],
244
249
  [
245
250
  "expression",
246
251
  "expression",
@@ -511,6 +516,11 @@
511
516
  "verb",
512
517
  false
513
518
  ],
519
+ [
520
+ "negatable",
521
+ "queryable",
522
+ false
523
+ ],
514
524
  [
515
525
  "noun",
516
526
  "theAble",
@@ -1365,6 +1375,11 @@
1365
1375
  "verb",
1366
1376
  false
1367
1377
  ],
1378
+ [
1379
+ "every",
1380
+ "quantifier",
1381
+ false
1382
+ ],
1368
1383
  [
1369
1384
  "expression",
1370
1385
  "expression",
@@ -1635,6 +1650,11 @@
1635
1650
  "verb",
1636
1651
  false
1637
1652
  ],
1653
+ [
1654
+ "negatable",
1655
+ "queryable",
1656
+ false
1657
+ ],
1638
1658
  [
1639
1659
  "noun",
1640
1660
  "theAble",
@@ -2710,6 +2730,11 @@
2710
2730
  "verb",
2711
2731
  false
2712
2732
  ],
2733
+ [
2734
+ "every",
2735
+ "quantifier",
2736
+ false
2737
+ ],
2713
2738
  [
2714
2739
  "expression",
2715
2740
  "expression",
@@ -2980,6 +3005,11 @@
2980
3005
  "verb",
2981
3006
  false
2982
3007
  ],
3008
+ [
3009
+ "negatable",
3010
+ "queryable",
3011
+ false
3012
+ ],
2983
3013
  [
2984
3014
  "noun",
2985
3015
  "theAble",
@@ -4964,6 +4994,11 @@
4964
4994
  "verb",
4965
4995
  false
4966
4996
  ],
4997
+ [
4998
+ "every",
4999
+ "quantifier",
5000
+ false
5001
+ ],
4967
5002
  [
4968
5003
  "expression",
4969
5004
  "expression",
@@ -5314,6 +5349,11 @@
5314
5349
  "verb",
5315
5350
  false
5316
5351
  ],
5352
+ [
5353
+ "negatable",
5354
+ "queryable",
5355
+ false
5356
+ ],
5317
5357
  [
5318
5358
  "noun",
5319
5359
  "theAble",
@@ -6587,6 +6627,11 @@
6587
6627
  "verb",
6588
6628
  false
6589
6629
  ],
6630
+ [
6631
+ "every",
6632
+ "quantifier",
6633
+ false
6634
+ ],
6590
6635
  [
6591
6636
  "expression",
6592
6637
  "expression",
@@ -6937,6 +6982,11 @@
6937
6982
  "verb",
6938
6983
  false
6939
6984
  ],
6985
+ [
6986
+ "negatable",
6987
+ "queryable",
6988
+ false
6989
+ ],
6940
6990
  [
6941
6991
  "noun",
6942
6992
  "theAble",
@@ -8210,6 +8260,11 @@
8210
8260
  "verb",
8211
8261
  false
8212
8262
  ],
8263
+ [
8264
+ "every",
8265
+ "quantifier",
8266
+ false
8267
+ ],
8213
8268
  [
8214
8269
  "expression",
8215
8270
  "expression",
@@ -8560,6 +8615,11 @@
8560
8615
  "verb",
8561
8616
  false
8562
8617
  ],
8618
+ [
8619
+ "negatable",
8620
+ "queryable",
8621
+ false
8622
+ ],
8563
8623
  [
8564
8624
  "noun",
8565
8625
  "theAble",
@@ -9801,6 +9861,11 @@
9801
9861
  "verb",
9802
9862
  false
9803
9863
  ],
9864
+ [
9865
+ "every",
9866
+ "quantifier",
9867
+ false
9868
+ ],
9804
9869
  [
9805
9870
  "expression",
9806
9871
  "expression",
@@ -10151,6 +10216,11 @@
10151
10216
  "verb",
10152
10217
  false
10153
10218
  ],
10219
+ [
10220
+ "negatable",
10221
+ "queryable",
10222
+ false
10223
+ ],
10154
10224
  [
10155
10225
  "noun",
10156
10226
  "theAble",
@@ -11392,6 +11462,11 @@
11392
11462
  "verb",
11393
11463
  false
11394
11464
  ],
11465
+ [
11466
+ "every",
11467
+ "quantifier",
11468
+ false
11469
+ ],
11395
11470
  [
11396
11471
  "expression",
11397
11472
  "expression",
@@ -11742,6 +11817,11 @@
11742
11817
  "verb",
11743
11818
  false
11744
11819
  ],
11820
+ [
11821
+ "negatable",
11822
+ "queryable",
11823
+ false
11824
+ ],
11745
11825
  [
11746
11826
  "noun",
11747
11827
  "theAble",
@@ -12983,6 +13063,11 @@
12983
13063
  "verb",
12984
13064
  false
12985
13065
  ],
13066
+ [
13067
+ "every",
13068
+ "quantifier",
13069
+ false
13070
+ ],
12986
13071
  [
12987
13072
  "expression",
12988
13073
  "expression",
@@ -13333,6 +13418,11 @@
13333
13418
  "verb",
13334
13419
  false
13335
13420
  ],
13421
+ [
13422
+ "negatable",
13423
+ "queryable",
13424
+ false
13425
+ ],
13336
13426
  [
13337
13427
  "noun",
13338
13428
  "theAble",
@@ -14574,6 +14664,11 @@
14574
14664
  "verb",
14575
14665
  false
14576
14666
  ],
14667
+ [
14668
+ "every",
14669
+ "quantifier",
14670
+ false
14671
+ ],
14577
14672
  [
14578
14673
  "expression",
14579
14674
  "expression",
@@ -14924,6 +15019,11 @@
14924
15019
  "verb",
14925
15020
  false
14926
15021
  ],
15022
+ [
15023
+ "negatable",
15024
+ "queryable",
15025
+ false
15026
+ ],
14927
15027
  [
14928
15028
  "noun",
14929
15029
  "theAble",
@@ -16165,6 +16265,11 @@
16165
16265
  "verb",
16166
16266
  false
16167
16267
  ],
16268
+ [
16269
+ "every",
16270
+ "quantifier",
16271
+ false
16272
+ ],
16168
16273
  [
16169
16274
  "expression",
16170
16275
  "expression",
@@ -16515,6 +16620,11 @@
16515
16620
  "verb",
16516
16621
  false
16517
16622
  ],
16623
+ [
16624
+ "negatable",
16625
+ "queryable",
16626
+ false
16627
+ ],
16518
16628
  [
16519
16629
  "noun",
16520
16630
  "theAble",
@@ -17769,6 +17879,11 @@
17769
17879
  "verb",
17770
17880
  false
17771
17881
  ],
17882
+ [
17883
+ "every",
17884
+ "quantifier",
17885
+ false
17886
+ ],
17772
17887
  [
17773
17888
  "expression",
17774
17889
  "expression",
@@ -18119,6 +18234,11 @@
18119
18234
  "verb",
18120
18235
  false
18121
18236
  ],
18237
+ [
18238
+ "negatable",
18239
+ "queryable",
18240
+ false
18241
+ ],
18122
18242
  [
18123
18243
  "noun",
18124
18244
  "theAble",