tpmkms_4wp 8.9.1-beta.14 → 8.9.1-beta.15
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.
- package/common/animals.instance.json +88 -0
- package/common/colors.instance.json +28 -0
- package/common/crew.instance.json +42 -366
- package/common/edible.instance.json +56 -0
- package/common/fastfood.instance.json +1050 -691
- package/common/gdefaults.js +3 -0
- package/common/length.instance.json +60 -0
- package/common/ordering.instance.json +52 -0
- package/common/pipboy.instance.json +108 -0
- package/common/pokemon.instance.json +44 -0
- package/common/reports.instance.json +1 -1
- package/common/temperature.instance.json +60 -0
- package/common/weight.instance.json +68 -0
- package/common/wp.instance.json +306 -4
- package/common/wp.js +8 -3
- package/common/wp.test.json +7504 -0
- package/package.json +2 -2
package/common/wp.instance.json
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
"((word_wp/*) [wordComparisonWithVerb_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
|
22
22
|
"((word_wp/*) [wordComparison_wp] (a/0)? (letters))",
|
23
23
|
"((styleModifier_wp/*) [modifiedByStyle_wp] (statefulElement_wp/* && context.determiner == undefined))",
|
24
|
-
"((statefulElement_wp/*) <statefulElementInContext_wp|of> (statefulElement_wp/*))",
|
24
|
+
"((statefulElement_wp/*) <statefulElementInContext_wp|of,in> (statefulElement_wp/*))",
|
25
25
|
"((paragraph_wp/*) [paragraphComparisonVerb_wp] (word_wp/*))"
|
26
26
|
],
|
27
27
|
"associations": {
|
@@ -243,6 +243,30 @@
|
|
243
243
|
}
|
244
244
|
],
|
245
245
|
"priorities": [
|
246
|
+
{
|
247
|
+
"context": [
|
248
|
+
[
|
249
|
+
"word_wp",
|
250
|
+
1
|
251
|
+
],
|
252
|
+
[
|
253
|
+
"wordComparisonWithVerb_wp",
|
254
|
+
0
|
255
|
+
],
|
256
|
+
[
|
257
|
+
"comparisonWith_wp",
|
258
|
+
1
|
259
|
+
],
|
260
|
+
[
|
261
|
+
"statefulElementInContext_wp",
|
262
|
+
0
|
263
|
+
]
|
264
|
+
],
|
265
|
+
"ordered": true,
|
266
|
+
"choose": [
|
267
|
+
1
|
268
|
+
]
|
269
|
+
},
|
246
270
|
{
|
247
271
|
"context": [
|
248
272
|
[
|
@@ -263,6 +287,41 @@
|
|
263
287
|
2
|
264
288
|
]
|
265
289
|
},
|
290
|
+
{
|
291
|
+
"context": [
|
292
|
+
[
|
293
|
+
"statefulElementInContext_wp",
|
294
|
+
0
|
295
|
+
],
|
296
|
+
[
|
297
|
+
"word_wp",
|
298
|
+
0
|
299
|
+
],
|
300
|
+
[
|
301
|
+
"wordComparisonWithVerb_wp",
|
302
|
+
0
|
303
|
+
]
|
304
|
+
],
|
305
|
+
"ordered": true,
|
306
|
+
"choose": [
|
307
|
+
2
|
308
|
+
]
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"context": [
|
312
|
+
[
|
313
|
+
"statefulElementInContext_wp",
|
314
|
+
0
|
315
|
+
],
|
316
|
+
[
|
317
|
+
"comparisonWith_wp",
|
318
|
+
0
|
319
|
+
]
|
320
|
+
],
|
321
|
+
"choose": [
|
322
|
+
1
|
323
|
+
]
|
324
|
+
},
|
266
325
|
{
|
267
326
|
"context": [
|
268
327
|
[
|
@@ -5269,6 +5328,36 @@
|
|
5269
5328
|
1
|
5270
5329
|
]
|
5271
5330
|
],
|
5331
|
+
[
|
5332
|
+
[
|
5333
|
+
"countable",
|
5334
|
+
0
|
5335
|
+
],
|
5336
|
+
[
|
5337
|
+
"distributable",
|
5338
|
+
0
|
5339
|
+
],
|
5340
|
+
[
|
5341
|
+
"is",
|
5342
|
+
0
|
5343
|
+
],
|
5344
|
+
[
|
5345
|
+
"list",
|
5346
|
+
0
|
5347
|
+
],
|
5348
|
+
[
|
5349
|
+
"orderable",
|
5350
|
+
0
|
5351
|
+
],
|
5352
|
+
[
|
5353
|
+
"unknown",
|
5354
|
+
0
|
5355
|
+
],
|
5356
|
+
[
|
5357
|
+
"unknown",
|
5358
|
+
1
|
5359
|
+
]
|
5360
|
+
],
|
5272
5361
|
[
|
5273
5362
|
[
|
5274
5363
|
"countable",
|
@@ -19581,6 +19670,20 @@
|
|
19581
19670
|
1
|
19582
19671
|
]
|
19583
19672
|
],
|
19673
|
+
[
|
19674
|
+
[
|
19675
|
+
"is",
|
19676
|
+
0
|
19677
|
+
],
|
19678
|
+
[
|
19679
|
+
"list",
|
19680
|
+
1
|
19681
|
+
],
|
19682
|
+
[
|
19683
|
+
"unknown",
|
19684
|
+
1
|
19685
|
+
]
|
19686
|
+
],
|
19584
19687
|
[
|
19585
19688
|
[
|
19586
19689
|
"is",
|
@@ -37963,6 +38066,40 @@
|
|
37963
38066
|
1
|
37964
38067
|
]
|
37965
38068
|
],
|
38069
|
+
[
|
38070
|
+
[
|
38071
|
+
"capitalized_wp",
|
38072
|
+
0
|
38073
|
+
],
|
38074
|
+
[
|
38075
|
+
"comma",
|
38076
|
+
0
|
38077
|
+
],
|
38078
|
+
[
|
38079
|
+
"is",
|
38080
|
+
0
|
38081
|
+
],
|
38082
|
+
[
|
38083
|
+
"italicized_wp",
|
38084
|
+
0
|
38085
|
+
],
|
38086
|
+
[
|
38087
|
+
"list",
|
38088
|
+
0
|
38089
|
+
],
|
38090
|
+
[
|
38091
|
+
"underlined_wp",
|
38092
|
+
0
|
38093
|
+
],
|
38094
|
+
[
|
38095
|
+
"unknown",
|
38096
|
+
0
|
38097
|
+
],
|
38098
|
+
[
|
38099
|
+
"unknown",
|
38100
|
+
1
|
38101
|
+
]
|
38102
|
+
],
|
37966
38103
|
[
|
37967
38104
|
[
|
37968
38105
|
"capitalized_wp",
|
@@ -38059,6 +38196,20 @@
|
|
38059
38196
|
1
|
38060
38197
|
]
|
38061
38198
|
],
|
38199
|
+
[
|
38200
|
+
[
|
38201
|
+
"is",
|
38202
|
+
0
|
38203
|
+
],
|
38204
|
+
[
|
38205
|
+
"list",
|
38206
|
+
1
|
38207
|
+
],
|
38208
|
+
[
|
38209
|
+
"unknown",
|
38210
|
+
1
|
38211
|
+
]
|
38212
|
+
],
|
38062
38213
|
[
|
38063
38214
|
[
|
38064
38215
|
"is",
|
@@ -41167,7 +41318,7 @@
|
|
41167
41318
|
"((word_wp/*) [wordComparisonWithVerb_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
|
41168
41319
|
"((word_wp/*) [wordComparison_wp] (a/0)? (letters))",
|
41169
41320
|
"((styleModifier_wp/*) [modifiedByStyle_wp] (statefulElement_wp/* && context.determiner == undefined))",
|
41170
|
-
"((statefulElement_wp/*) <statefulElementInContext_wp|of> (statefulElement_wp/*))",
|
41321
|
+
"((statefulElement_wp/*) <statefulElementInContext_wp|of,in> (statefulElement_wp/*))",
|
41171
41322
|
"((paragraph_wp/*) [paragraphComparisonVerb_wp] (word_wp/*))"
|
41172
41323
|
],
|
41173
41324
|
"associations": {
|
@@ -41378,13 +41529,37 @@
|
|
41378
41529
|
],
|
41379
41530
|
"semantics": [
|
41380
41531
|
{
|
41381
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:
|
41532
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:328"
|
41382
41533
|
},
|
41383
41534
|
{
|
41384
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:
|
41535
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:337"
|
41385
41536
|
}
|
41386
41537
|
],
|
41387
41538
|
"priorities": [
|
41539
|
+
{
|
41540
|
+
"context": [
|
41541
|
+
[
|
41542
|
+
"word_wp",
|
41543
|
+
1
|
41544
|
+
],
|
41545
|
+
[
|
41546
|
+
"wordComparisonWithVerb_wp",
|
41547
|
+
0
|
41548
|
+
],
|
41549
|
+
[
|
41550
|
+
"comparisonWith_wp",
|
41551
|
+
1
|
41552
|
+
],
|
41553
|
+
[
|
41554
|
+
"statefulElementInContext_wp",
|
41555
|
+
0
|
41556
|
+
]
|
41557
|
+
],
|
41558
|
+
"ordered": true,
|
41559
|
+
"choose": [
|
41560
|
+
1
|
41561
|
+
]
|
41562
|
+
},
|
41388
41563
|
{
|
41389
41564
|
"context": [
|
41390
41565
|
[
|
@@ -41405,6 +41580,41 @@
|
|
41405
41580
|
2
|
41406
41581
|
]
|
41407
41582
|
},
|
41583
|
+
{
|
41584
|
+
"context": [
|
41585
|
+
[
|
41586
|
+
"statefulElementInContext_wp",
|
41587
|
+
0
|
41588
|
+
],
|
41589
|
+
[
|
41590
|
+
"word_wp",
|
41591
|
+
0
|
41592
|
+
],
|
41593
|
+
[
|
41594
|
+
"wordComparisonWithVerb_wp",
|
41595
|
+
0
|
41596
|
+
]
|
41597
|
+
],
|
41598
|
+
"ordered": true,
|
41599
|
+
"choose": [
|
41600
|
+
2
|
41601
|
+
]
|
41602
|
+
},
|
41603
|
+
{
|
41604
|
+
"context": [
|
41605
|
+
[
|
41606
|
+
"statefulElementInContext_wp",
|
41607
|
+
0
|
41608
|
+
],
|
41609
|
+
[
|
41610
|
+
"comparisonWith_wp",
|
41611
|
+
0
|
41612
|
+
]
|
41613
|
+
],
|
41614
|
+
"choose": [
|
41615
|
+
1
|
41616
|
+
]
|
41617
|
+
},
|
41408
41618
|
{
|
41409
41619
|
"context": [
|
41410
41620
|
[
|
@@ -41684,6 +41894,40 @@
|
|
41684
41894
|
1
|
41685
41895
|
]
|
41686
41896
|
],
|
41897
|
+
[
|
41898
|
+
[
|
41899
|
+
"capitalized_wp",
|
41900
|
+
0
|
41901
|
+
],
|
41902
|
+
[
|
41903
|
+
"comma",
|
41904
|
+
0
|
41905
|
+
],
|
41906
|
+
[
|
41907
|
+
"is",
|
41908
|
+
0
|
41909
|
+
],
|
41910
|
+
[
|
41911
|
+
"italicized_wp",
|
41912
|
+
0
|
41913
|
+
],
|
41914
|
+
[
|
41915
|
+
"list",
|
41916
|
+
0
|
41917
|
+
],
|
41918
|
+
[
|
41919
|
+
"underlined_wp",
|
41920
|
+
0
|
41921
|
+
],
|
41922
|
+
[
|
41923
|
+
"unknown",
|
41924
|
+
0
|
41925
|
+
],
|
41926
|
+
[
|
41927
|
+
"unknown",
|
41928
|
+
1
|
41929
|
+
]
|
41930
|
+
],
|
41687
41931
|
[
|
41688
41932
|
[
|
41689
41933
|
"capitalized_wp",
|
@@ -42028,6 +42272,36 @@
|
|
42028
42272
|
1
|
42029
42273
|
]
|
42030
42274
|
],
|
42275
|
+
[
|
42276
|
+
[
|
42277
|
+
"countable",
|
42278
|
+
0
|
42279
|
+
],
|
42280
|
+
[
|
42281
|
+
"distributable",
|
42282
|
+
0
|
42283
|
+
],
|
42284
|
+
[
|
42285
|
+
"is",
|
42286
|
+
0
|
42287
|
+
],
|
42288
|
+
[
|
42289
|
+
"list",
|
42290
|
+
0
|
42291
|
+
],
|
42292
|
+
[
|
42293
|
+
"orderable",
|
42294
|
+
0
|
42295
|
+
],
|
42296
|
+
[
|
42297
|
+
"unknown",
|
42298
|
+
0
|
42299
|
+
],
|
42300
|
+
[
|
42301
|
+
"unknown",
|
42302
|
+
1
|
42303
|
+
]
|
42304
|
+
],
|
42031
42305
|
[
|
42032
42306
|
[
|
42033
42307
|
"countable",
|
@@ -42392,6 +42666,34 @@
|
|
42392
42666
|
1
|
42393
42667
|
]
|
42394
42668
|
],
|
42669
|
+
[
|
42670
|
+
[
|
42671
|
+
"is",
|
42672
|
+
0
|
42673
|
+
],
|
42674
|
+
[
|
42675
|
+
"list",
|
42676
|
+
1
|
42677
|
+
],
|
42678
|
+
[
|
42679
|
+
"unknown",
|
42680
|
+
1
|
42681
|
+
]
|
42682
|
+
],
|
42683
|
+
[
|
42684
|
+
[
|
42685
|
+
"is",
|
42686
|
+
0
|
42687
|
+
],
|
42688
|
+
[
|
42689
|
+
"list",
|
42690
|
+
1
|
42691
|
+
],
|
42692
|
+
[
|
42693
|
+
"unknown",
|
42694
|
+
1
|
42695
|
+
]
|
42696
|
+
],
|
42395
42697
|
[
|
42396
42698
|
[
|
42397
42699
|
"is",
|
package/common/wp.js
CHANGED
@@ -23,14 +23,15 @@ const instance = require('./wp.instance.json')
|
|
23
23
|
bold the third letter of the second paragraph
|
24
24
|
bold the first letter of every word that starts with t
|
25
25
|
underline the bolded words in the second paragraph
|
26
|
+
bold the words that start with t in the second paragraph
|
26
27
|
|
27
28
|
current
|
28
29
|
|
29
|
-
bold the words that start with t in the
|
30
|
+
bold the first letter of the words that start with t in the third paragraph
|
30
31
|
|
31
32
|
todo
|
32
33
|
|
33
|
-
bold the first letter of the words that start with t
|
34
|
+
in the third paragraph bold the first letter of the words that start with t
|
34
35
|
underline the bolded paragraphs
|
35
36
|
bold the paragraph that contains three bolded words
|
36
37
|
capitalize the first letter of the words that start with t
|
@@ -221,7 +222,7 @@ template = {
|
|
221
222
|
// this one is "the bolded/underlined/italized/... word"
|
222
223
|
"((styleModifier_wp/*) [modifiedByStyle_wp] (statefulElement_wp/* && context.determiner == undefined))",
|
223
224
|
// the first letter of each paragraph
|
224
|
-
"((statefulElement_wp/*) <statefulElementInContext_wp|of,in> (statefulElement_wp/*))",
|
225
|
+
"((statefulElement_wp/*)? <statefulElementInContext_wp|of,in> (statefulElement_wp/*))",
|
225
226
|
// the paragraph that contains words that start with t
|
226
227
|
"((paragraph_wp/*) [paragraphComparisonVerb_wp] (word_wp/*))",
|
227
228
|
],
|
@@ -251,6 +252,9 @@ template = {
|
|
251
252
|
{
|
252
253
|
id: 'statefulElementInContext_wp',
|
253
254
|
parents: ['preposition'],
|
255
|
+
optional: {
|
256
|
+
'-1': "{ ...operator, invisible: true }",
|
257
|
+
},
|
254
258
|
bridge: "{ ...before[0], context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]] }",
|
255
259
|
},
|
256
260
|
{
|
@@ -350,6 +354,7 @@ template = {
|
|
350
354
|
{ "context": [['word_wp', 1], ['wordComparisonWithVerb_wp', 0], ['comparisonWith_wp', 1], ['statefulElementInContext_wp', 0]], ordered: true, choose: [1] },
|
351
355
|
{ "context": [['paragraphComparisonVerb_wp', 0], ['word_wp', 0], ['wordComparisonWithVerb_wp', 0]], ordered: true, choose: [2] },
|
352
356
|
{ "context": [['statefulElementInContext_wp', 0], ['word_wp', 0], ['wordComparisonWithVerb_wp', 0]], ordered: true, choose: [2] },
|
357
|
+
{ "context": [['statefulElementInContext_wp', 0], ['word_wp', 1], ['wordComparisonWithVerb_wp', 0], ['comparisonWith_wp', 1]], ordered: true, choose: [2,3] },
|
353
358
|
{ "context": [['statefulElementInContext_wp', 0], ['comparisonWith_wp', 0]], choose: [1] },
|
354
359
|
{ "context": [['paragraphComparisonVerb_wp', 0], ['wordComparisonWithVerb_wp', 0]], choose: [1] },
|
355
360
|
{ "context": [['ordinal',1], ['list', 0], ['ordinal', 1], ['word_wp', 1]], ordered: true, choose: [1] },
|