tpmkms_4wp 9.0.3-beta.1 → 9.0.3-beta.2

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.
@@ -31,7 +31,7 @@
31
31
  "context": [
32
32
  [
33
33
  "word_wp",
34
- 1
34
+ 0
35
35
  ],
36
36
  [
37
37
  "thatVerb",
@@ -47,240 +47,912 @@
47
47
  ]
48
48
  ],
49
49
  "choose": 0
50
- }
51
- ]
52
- },
53
- "bridges": [
54
- {
55
- "id": "change_wp",
56
- "bridge": "{ ...next(operator), from: after[0][0], generate: [operator, 'from', after[1]] }"
57
- },
58
- {
59
- "id": "paragraphComparisonVerb_wp",
60
- "parents": [
61
- "verb"
62
- ],
63
- "words": [
64
- {
65
- "word": "contain",
66
- "comparison": "include"
67
- },
68
- {
69
- "word": "contains",
70
- "comparison": "include"
71
- },
72
- {
73
- "word": "include",
74
- "comparison": "include"
75
- },
76
- {
77
- "word": "includes",
78
- "comparison": "include"
79
- }
80
- ],
81
- "bridge": "{ ...next(operator), element: before[0], subject: before[0], words: after[0], verb: operator, generate: ['element', 'verb', 'words'] }"
82
- },
83
- {
84
- "id": "statefulElementInContext_wp",
85
- "parents": [
86
- "preposition"
87
- ],
88
- "optional": {
89
- "-1": "{ ...operator, invisible: true }"
90
50
  },
91
- "bridge": "{ ...next(before[0]), context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]], modifiers: [] }",
92
- "semantic": "(args) => {\n const { context, contexts } = args\n for (let i = context.context_index + 1; i < contexts.length; ++i) {\n if (contexts[i].marker == 'applyStyle_wp') {\n const element = contexts[i].element\n if (!element.context) {\n element.context = []\n }\n element.context = element.context.concat(context.context)\n }\n }\n console.log(JSON.stringify(Object.keys(args)))\n }"
93
- },
94
- {
95
- "id": "applyStyle_wp",
96
- "parents": [
97
- "verb"
98
- ],
99
- "convolution": true,
100
- "bridge": "{ ...next(operator), element: after[0], state: before[0], operator: operator, generate: ['state', 'element'] }",
101
- "localHierarchy": [
102
- [
103
- "thisitthat",
104
- "statefulElement_wp"
51
+ {
52
+ "context": [
53
+ [
54
+ "word_wp",
55
+ 1
56
+ ],
57
+ [
58
+ "thatVerb",
59
+ 0
60
+ ],
61
+ [
62
+ "wordComparison_wp",
63
+ 0
64
+ ],
65
+ [
66
+ "unknown",
67
+ 0
68
+ ]
105
69
  ],
106
- [
107
- "everything",
108
- "statefulElement_wp"
109
- ]
110
- ],
111
- "semantic": "(args) => {\n changeState({...args, element: args.context.element, state: args.context.state})\n }"
112
- },
113
- {
114
- "id": "modifiedByStyle_wp",
115
- "parents": [
116
- "adjective"
117
- ],
118
- "convolution": true,
119
- "bridge": "{ ...after[0], style: before[0], target: after[0], generate: ['style', 'target'], conditions: append(after[0].conditions, [before[0]]) }"
120
- },
121
- {
122
- "id": "wordComparisonWithVerb_wp",
123
- "parents": [
124
- "verb"
125
- ],
126
- "words": [
127
- {
128
- "word": "start",
129
- "comparison": "prefix"
130
- },
131
- {
132
- "word": "starts",
133
- "comparison": "prefix"
134
- },
135
- {
136
- "word": "end",
137
- "comparison": "suffix"
138
- },
139
- {
140
- "word": "ends",
141
- "comparison": "suffix"
142
- }
143
- ],
144
- "bridge": "{ ...next(operator), element: before[0], subject: before[0], letters: after[0], verb: operator, generate: ['element', 'verb', 'letters'] }"
145
- },
146
- {
147
- "id": "wordComparison_wp",
148
- "parents": [
149
- "verb"
150
- ],
151
- "words": [
152
- {
153
- "word": "contain",
154
- "comparison": "include"
155
- },
156
- {
157
- "word": "contains",
158
- "comparison": "include"
159
- },
160
- {
161
- "word": "include",
162
- "comparison": "include"
163
- },
164
- {
165
- "word": "includes",
166
- "comparison": "include"
167
- }
168
- ],
169
- "optional": {
170
- "1": "{ marker: 'a' }"
70
+ "choose": 0
171
71
  },
172
- "bridge": "{ ...next(operator), element: before[0], subject: before[0], letters: after[1], verb: operator, generate: ['element', 'verb', 'letters'] }"
173
- },
174
- {
175
- "id": "comparisonWith_wp",
176
- "parents": [
177
- "preposition"
178
- ],
179
- "optional": {
180
- "1": "{ marker: 'a' }"
72
+ {
73
+ "context": [
74
+ [
75
+ "letter_wp",
76
+ 1
77
+ ],
78
+ [
79
+ "statefulElementInContext_wp",
80
+ 0
81
+ ],
82
+ [
83
+ "every",
84
+ 0
85
+ ],
86
+ [
87
+ "word_wp",
88
+ 0
89
+ ],
90
+ [
91
+ "thatVerb",
92
+ 0
93
+ ],
94
+ [
95
+ "wordComparisonWithVerb_wp",
96
+ 0
97
+ ],
98
+ [
99
+ "comparisonWith_wp",
100
+ 0
101
+ ],
102
+ [
103
+ "unknown",
104
+ 0
105
+ ]
106
+ ],
107
+ "choose": 0
181
108
  },
182
- "bridge": "{ ...next(operator), operator: operator, letters: after[1], generate: ['operator', 'letters'] }"
183
- },
184
- {
185
- "id": "changeState_wp",
186
- "parents": [
187
- "verb"
188
- ],
189
- "bridge": "{ ...next(operator), element: after[0], state: after[1], operator: operator, generate: ['operator', 'element', 'state'] }",
190
- "localHierarchy": [
191
- [
192
- "thisitthat",
193
- "statefulElement_wp"
109
+ {
110
+ "context": [
111
+ [
112
+ "letter_wp",
113
+ 1
114
+ ],
115
+ [
116
+ "statefulElementInContext_wp",
117
+ 0
118
+ ],
119
+ [
120
+ "every",
121
+ 0
122
+ ],
123
+ [
124
+ "word_wp",
125
+ 1
126
+ ],
127
+ [
128
+ "thatVerb",
129
+ 0
130
+ ],
131
+ [
132
+ "wordComparisonWithVerb_wp",
133
+ 0
134
+ ],
135
+ [
136
+ "comparisonWith_wp",
137
+ 0
138
+ ],
139
+ [
140
+ "unknown",
141
+ 0
142
+ ]
194
143
  ],
195
- [
196
- "everything",
197
- "statefulElement_wp"
198
- ]
199
- ],
200
- "semantic": "(args) => {\n changeState({...args, element: args.context.element, state: args.context.state})\n }"
201
- },
202
- {
203
- "id": "stateValue_wp",
204
- "children": [
205
- "color_colors",
206
- "style_wp"
207
- ]
208
- }
209
- ],
210
- "semantics": [
211
- {
212
- "match": "({context, isA}) => isA(context, 'style_wp') && !context.same && !context.isResponse && !context.evaluate",
213
- "apply": "({context, api, isA, toArray}) => {\n const update = { scope: 'selection' }\n setUpdate(isA, update, toArray(context))\n api.changeState(update)\n }"
214
- },
215
- {
216
- "match": "({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse && !context.evaluate",
217
- "apply": "({context, api, isA, toArray}) => {\n const unit = root(context.marker)\n let scope\n if (context.quantity) {\n scope = context.quantity.quantity\n }\n // TODO set default scope for \"every word bold underlined etc\"\n }"
218
- }
219
- ],
220
- "priorities": [
221
- {
222
- "context": [
223
- [
224
- "ordinal",
225
- 1
144
+ "choose": 0
145
+ },
146
+ {
147
+ "context": [
148
+ [
149
+ "word_wp",
150
+ 0
151
+ ],
152
+ [
153
+ "thatVerb",
154
+ 0
155
+ ],
156
+ [
157
+ "wordComparisonWithVerb_wp",
158
+ 0
159
+ ],
160
+ [
161
+ "comparisonWith_wp",
162
+ 0
163
+ ],
164
+ [
165
+ "unknown",
166
+ 0
167
+ ],
168
+ [
169
+ "statefulElementInContext_wp",
170
+ 0
171
+ ],
172
+ [
173
+ "article",
174
+ 0
175
+ ],
176
+ [
177
+ "ordinal",
178
+ 0
179
+ ],
180
+ [
181
+ "paragraph_wp",
182
+ 0
183
+ ]
226
184
  ],
227
- [
228
- "list",
229
- 0
185
+ "choose": 0
186
+ },
187
+ {
188
+ "context": [
189
+ [
190
+ "word_wp",
191
+ 1
192
+ ],
193
+ [
194
+ "thatVerb",
195
+ 0
196
+ ],
197
+ [
198
+ "wordComparisonWithVerb_wp",
199
+ 0
200
+ ],
201
+ [
202
+ "comparisonWith_wp",
203
+ 0
204
+ ],
205
+ [
206
+ "unknown",
207
+ 0
208
+ ],
209
+ [
210
+ "statefulElementInContext_wp",
211
+ 0
212
+ ],
213
+ [
214
+ "article",
215
+ 0
216
+ ],
217
+ [
218
+ "ordinal",
219
+ 0
220
+ ],
221
+ [
222
+ "paragraph_wp",
223
+ 0
224
+ ]
230
225
  ],
231
- [
232
- "ordinal",
233
- 1
226
+ "choose": 0
227
+ },
228
+ {
229
+ "context": [
230
+ [
231
+ "word_wp",
232
+ 0
233
+ ],
234
+ [
235
+ "thatVerb",
236
+ 0
237
+ ],
238
+ [
239
+ "wordComparisonWithVerb_wp",
240
+ 0
241
+ ],
242
+ [
243
+ "comparisonWith_wp",
244
+ 0
245
+ ],
246
+ [
247
+ "unknown",
248
+ 0
249
+ ]
234
250
  ],
235
- [
236
- "statefulElement_wp",
237
- 0
238
- ]
239
- ],
240
- "ordered": true,
241
- "choose": [
242
- 1
243
- ]
244
- },
245
- {
246
- "context": [
247
- [
248
- "word_wp",
249
- 1
251
+ "choose": 0
252
+ },
253
+ {
254
+ "context": [
255
+ [
256
+ "word_wp",
257
+ 1
258
+ ],
259
+ [
260
+ "thatVerb",
261
+ 0
262
+ ],
263
+ [
264
+ "wordComparisonWithVerb_wp",
265
+ 0
266
+ ],
267
+ [
268
+ "comparisonWith_wp",
269
+ 0
270
+ ],
271
+ [
272
+ "unknown",
273
+ 0
274
+ ]
250
275
  ],
251
- [
252
- "wordComparisonWithVerb_wp",
253
- 0
276
+ "choose": 0
277
+ },
278
+ {
279
+ "context": [
280
+ [
281
+ "paragraph_wp",
282
+ 0
283
+ ],
284
+ [
285
+ "thatVerb",
286
+ 0
287
+ ],
288
+ [
289
+ "paragraphComparisonVerb_wp",
290
+ 0
291
+ ],
292
+ [
293
+ "word_wp",
294
+ 0
295
+ ],
296
+ [
297
+ "thatVerb",
298
+ 0
299
+ ],
300
+ [
301
+ "wordComparisonWithVerb_wp",
302
+ 0
303
+ ],
304
+ [
305
+ "comparisonWith_wp",
306
+ 0
307
+ ]
254
308
  ],
255
- [
256
- "comparisonWith_wp",
257
- 1
309
+ "choose": 0
310
+ },
311
+ {
312
+ "context": [
313
+ [
314
+ "paragraph_wp",
315
+ 1
316
+ ],
317
+ [
318
+ "thatVerb",
319
+ 0
320
+ ],
321
+ [
322
+ "paragraphComparisonVerb_wp",
323
+ 0
324
+ ],
325
+ [
326
+ "word_wp",
327
+ 0
328
+ ],
329
+ [
330
+ "thatVerb",
331
+ 0
332
+ ],
333
+ [
334
+ "wordComparisonWithVerb_wp",
335
+ 0
336
+ ],
337
+ [
338
+ "comparisonWith_wp",
339
+ 0
340
+ ]
258
341
  ],
259
- [
260
- "statefulElementInContext_wp",
261
- 0
262
- ]
263
- ],
264
- "ordered": true,
265
- "choose": [
266
- 1
267
- ]
268
- },
269
- {
270
- "context": [
271
- [
272
- "paragraphComparisonVerb_wp",
273
- 0
342
+ "choose": 0
343
+ },
344
+ {
345
+ "context": [
346
+ [
347
+ "paragraph_wp",
348
+ 0
349
+ ],
350
+ [
351
+ "thatVerb",
352
+ 0
353
+ ],
354
+ [
355
+ "paragraphComparisonVerb_wp",
356
+ 0
357
+ ],
358
+ [
359
+ "styleModifier_wp",
360
+ 0
361
+ ],
362
+ [
363
+ "word_wp",
364
+ 0
365
+ ]
274
366
  ],
275
- [
276
- "word_wp",
277
- 0
367
+ "choose": 0
368
+ },
369
+ {
370
+ "context": [
371
+ [
372
+ "paragraph_wp",
373
+ 1
374
+ ],
375
+ [
376
+ "thatVerb",
377
+ 0
378
+ ],
379
+ [
380
+ "paragraphComparisonVerb_wp",
381
+ 0
382
+ ],
383
+ [
384
+ "styleModifier_wp",
385
+ 0
386
+ ],
387
+ [
388
+ "word_wp",
389
+ 0
390
+ ]
278
391
  ],
279
- [
280
- "wordComparisonWithVerb_wp",
281
- 0
282
- ]
283
- ],
392
+ "choose": 0
393
+ },
394
+ {
395
+ "context": [
396
+ [
397
+ "word_wp",
398
+ 1
399
+ ],
400
+ [
401
+ "statefulElementInContext_wp",
402
+ 0
403
+ ],
404
+ [
405
+ "every",
406
+ 0
407
+ ],
408
+ [
409
+ "paragraph_wp",
410
+ 0
411
+ ]
412
+ ],
413
+ "choose": 0
414
+ },
415
+ {
416
+ "context": [
417
+ [
418
+ "word_wp",
419
+ 1
420
+ ],
421
+ [
422
+ "statefulElementInContext_wp",
423
+ 0
424
+ ],
425
+ [
426
+ "every",
427
+ 0
428
+ ],
429
+ [
430
+ "paragraph_wp",
431
+ 1
432
+ ]
433
+ ],
434
+ "choose": 0
435
+ },
436
+ {
437
+ "context": [
438
+ [
439
+ "letter_wp",
440
+ 1
441
+ ],
442
+ [
443
+ "statefulElementInContext_wp",
444
+ 0
445
+ ],
446
+ [
447
+ "every",
448
+ 0
449
+ ],
450
+ [
451
+ "paragraph_wp",
452
+ 0
453
+ ]
454
+ ],
455
+ "choose": 0
456
+ },
457
+ {
458
+ "context": [
459
+ [
460
+ "letter_wp",
461
+ 1
462
+ ],
463
+ [
464
+ "statefulElementInContext_wp",
465
+ 0
466
+ ],
467
+ [
468
+ "every",
469
+ 0
470
+ ],
471
+ [
472
+ "paragraph_wp",
473
+ 1
474
+ ]
475
+ ],
476
+ "choose": 0
477
+ },
478
+ {
479
+ "context": [
480
+ [
481
+ "article",
482
+ 0
483
+ ],
484
+ [
485
+ "letter_wp",
486
+ 1
487
+ ],
488
+ [
489
+ "statefulElementInContext_wp",
490
+ 0
491
+ ],
492
+ [
493
+ "article",
494
+ 0
495
+ ],
496
+ [
497
+ "word_wp",
498
+ 0
499
+ ],
500
+ [
501
+ "thatVerb",
502
+ 0
503
+ ],
504
+ [
505
+ "wordComparisonWithVerb_wp",
506
+ 0
507
+ ],
508
+ [
509
+ "comparisonWith_wp",
510
+ 0
511
+ ]
512
+ ],
513
+ "choose": 1
514
+ },
515
+ {
516
+ "context": [
517
+ [
518
+ "article",
519
+ 0
520
+ ],
521
+ [
522
+ "letter_wp",
523
+ 1
524
+ ],
525
+ [
526
+ "statefulElementInContext_wp",
527
+ 0
528
+ ],
529
+ [
530
+ "article",
531
+ 0
532
+ ],
533
+ [
534
+ "word_wp",
535
+ 1
536
+ ],
537
+ [
538
+ "thatVerb",
539
+ 0
540
+ ],
541
+ [
542
+ "wordComparisonWithVerb_wp",
543
+ 0
544
+ ],
545
+ [
546
+ "comparisonWith_wp",
547
+ 0
548
+ ]
549
+ ],
550
+ "choose": 1
551
+ },
552
+ {
553
+ "context": [
554
+ [
555
+ "article",
556
+ 0
557
+ ],
558
+ [
559
+ "letter_wp",
560
+ 1
561
+ ],
562
+ [
563
+ "statefulElementInContext_wp",
564
+ 0
565
+ ],
566
+ [
567
+ "article",
568
+ 0
569
+ ],
570
+ [
571
+ "word_wp",
572
+ 1
573
+ ],
574
+ [
575
+ "wordComparisonWithVerb_wp",
576
+ 0
577
+ ],
578
+ [
579
+ "comparisonWith_wp",
580
+ 0
581
+ ]
582
+ ],
583
+ "choose": 1
584
+ },
585
+ {
586
+ "context": [
587
+ [
588
+ "letter_wp",
589
+ 1
590
+ ],
591
+ [
592
+ "statefulElementInContext_wp",
593
+ 0
594
+ ],
595
+ [
596
+ "every",
597
+ 0
598
+ ],
599
+ [
600
+ "word_wp",
601
+ 0
602
+ ]
603
+ ],
604
+ "choose": 0
605
+ },
606
+ {
607
+ "context": [
608
+ [
609
+ "letter_wp",
610
+ 1
611
+ ],
612
+ [
613
+ "statefulElementInContext_wp",
614
+ 0
615
+ ],
616
+ [
617
+ "every",
618
+ 0
619
+ ],
620
+ [
621
+ "word_wp",
622
+ 1
623
+ ]
624
+ ],
625
+ "choose": 0
626
+ },
627
+ {
628
+ "context": [
629
+ [
630
+ "word_wp",
631
+ 1
632
+ ],
633
+ [
634
+ "statefulElementInContext_wp",
635
+ 0
636
+ ],
637
+ [
638
+ "article",
639
+ 0
640
+ ],
641
+ [
642
+ "ordinal",
643
+ 0
644
+ ],
645
+ [
646
+ "paragraph_wp",
647
+ 0
648
+ ]
649
+ ],
650
+ "choose": 0
651
+ },
652
+ {
653
+ "context": [
654
+ [
655
+ "word_wp",
656
+ 1
657
+ ],
658
+ [
659
+ "statefulElementInContext_wp",
660
+ 0
661
+ ],
662
+ [
663
+ "article",
664
+ 0
665
+ ],
666
+ [
667
+ "ordinal",
668
+ 1
669
+ ],
670
+ [
671
+ "paragraph_wp",
672
+ 0
673
+ ]
674
+ ],
675
+ "choose": 0
676
+ },
677
+ {
678
+ "context": [
679
+ [
680
+ "word_wp",
681
+ 1
682
+ ],
683
+ [
684
+ "statefulElementInContext_wp",
685
+ 0
686
+ ],
687
+ [
688
+ "article",
689
+ 0
690
+ ],
691
+ [
692
+ "ordinal",
693
+ 1
694
+ ],
695
+ [
696
+ "paragraph_wp",
697
+ 1
698
+ ]
699
+ ],
700
+ "choose": 0
701
+ },
702
+ {
703
+ "context": [
704
+ [
705
+ "word_wp",
706
+ 1
707
+ ],
708
+ [
709
+ "statefulElementInContext_wp",
710
+ 0
711
+ ],
712
+ [
713
+ "article",
714
+ 0
715
+ ],
716
+ [
717
+ "paragraph_wp",
718
+ 1
719
+ ]
720
+ ],
721
+ "choose": 0
722
+ }
723
+ ]
724
+ },
725
+ "bridges": [
726
+ {
727
+ "id": "change_wp",
728
+ "bridge": "{ ...next(operator), from: after[0][0], generate: [operator, 'from', after[1]] }"
729
+ },
730
+ {
731
+ "id": "paragraphComparisonVerb_wp",
732
+ "parents": [
733
+ "verb"
734
+ ],
735
+ "words": [
736
+ {
737
+ "word": "contain",
738
+ "comparison": "include"
739
+ },
740
+ {
741
+ "word": "contains",
742
+ "comparison": "include"
743
+ },
744
+ {
745
+ "word": "include",
746
+ "comparison": "include"
747
+ },
748
+ {
749
+ "word": "includes",
750
+ "comparison": "include"
751
+ }
752
+ ],
753
+ "bridge": "{ ...next(operator), element: before[0], subject: before[0], words: after[0], verb: operator, generate: ['element', 'verb', 'words'] }"
754
+ },
755
+ {
756
+ "id": "statefulElementInContext_wp",
757
+ "parents": [
758
+ "preposition"
759
+ ],
760
+ "optional": {
761
+ "-1": "{ ...operator, invisible: true }"
762
+ },
763
+ "bridge": "{ ...next(before[0]), context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]], modifiers: [] }",
764
+ "semantic": "(args) => {\n const { context, contexts } = args\n for (let i = context.context_index + 1; i < contexts.length; ++i) {\n if (contexts[i].marker == 'applyStyle_wp') {\n const element = contexts[i].element\n if (!element.context) {\n element.context = []\n }\n element.context = element.context.concat(context.context)\n }\n }\n console.log(JSON.stringify(Object.keys(args)))\n }"
765
+ },
766
+ {
767
+ "id": "applyStyle_wp",
768
+ "parents": [
769
+ "verb"
770
+ ],
771
+ "convolution": true,
772
+ "bridge": "{ ...next(operator), element: after[0], state: before[0], operator: operator, generate: ['state', 'element'] }",
773
+ "localHierarchy": [
774
+ [
775
+ "thisitthat",
776
+ "statefulElement_wp"
777
+ ],
778
+ [
779
+ "everything",
780
+ "statefulElement_wp"
781
+ ]
782
+ ],
783
+ "semantic": "(args) => {\n changeState({...args, element: args.context.element, state: args.context.state})\n }"
784
+ },
785
+ {
786
+ "id": "modifiedByStyle_wp",
787
+ "parents": [
788
+ "adjective"
789
+ ],
790
+ "convolution": true,
791
+ "bridge": "{ ...after[0], style: before[0], target: after[0], generate: ['style', 'target'], conditions: append(after[0].conditions, [before[0]]) }"
792
+ },
793
+ {
794
+ "id": "wordComparisonWithVerb_wp",
795
+ "parents": [
796
+ "verb"
797
+ ],
798
+ "words": [
799
+ {
800
+ "word": "start",
801
+ "comparison": "prefix"
802
+ },
803
+ {
804
+ "word": "starts",
805
+ "comparison": "prefix"
806
+ },
807
+ {
808
+ "word": "end",
809
+ "comparison": "suffix"
810
+ },
811
+ {
812
+ "word": "ends",
813
+ "comparison": "suffix"
814
+ }
815
+ ],
816
+ "bridge": "{ ...next(operator), element: before[0], subject: before[0], letters: after[0], verb: operator, generate: ['element', 'verb', 'letters'] }"
817
+ },
818
+ {
819
+ "id": "wordComparison_wp",
820
+ "parents": [
821
+ "verb"
822
+ ],
823
+ "words": [
824
+ {
825
+ "word": "contain",
826
+ "comparison": "include"
827
+ },
828
+ {
829
+ "word": "contains",
830
+ "comparison": "include"
831
+ },
832
+ {
833
+ "word": "include",
834
+ "comparison": "include"
835
+ },
836
+ {
837
+ "word": "includes",
838
+ "comparison": "include"
839
+ }
840
+ ],
841
+ "optional": {
842
+ "1": "{ marker: 'a' }"
843
+ },
844
+ "bridge": "{ ...next(operator), element: before[0], subject: before[0], letters: after[1], verb: operator, generate: ['element', 'verb', 'letters'] }"
845
+ },
846
+ {
847
+ "id": "comparisonWith_wp",
848
+ "parents": [
849
+ "preposition"
850
+ ],
851
+ "optional": {
852
+ "1": "{ marker: 'a' }"
853
+ },
854
+ "bridge": "{ ...next(operator), operator: operator, letters: after[1], generate: ['operator', 'letters'] }"
855
+ },
856
+ {
857
+ "id": "changeState_wp",
858
+ "parents": [
859
+ "verb"
860
+ ],
861
+ "bridge": "{ ...next(operator), element: after[0], state: after[1], operator: operator, generate: ['operator', 'element', 'state'] }",
862
+ "localHierarchy": [
863
+ [
864
+ "thisitthat",
865
+ "statefulElement_wp"
866
+ ],
867
+ [
868
+ "everything",
869
+ "statefulElement_wp"
870
+ ]
871
+ ],
872
+ "semantic": "(args) => {\n changeState({...args, element: args.context.element, state: args.context.state})\n }"
873
+ },
874
+ {
875
+ "id": "stateValue_wp",
876
+ "children": [
877
+ "color_colors",
878
+ "style_wp"
879
+ ]
880
+ }
881
+ ],
882
+ "semantics": [
883
+ {
884
+ "match": "({context, isA}) => isA(context, 'style_wp') && !context.same && !context.isResponse && !context.evaluate",
885
+ "apply": "({context, api, isA, toArray}) => {\n const update = { scope: 'selection' }\n setUpdate(isA, update, toArray(context))\n api.changeState(update)\n }"
886
+ },
887
+ {
888
+ "match": "({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse && !context.evaluate",
889
+ "apply": "({context, api, isA, toArray}) => {\n const unit = root(context.marker)\n let scope\n if (context.quantity) {\n scope = context.quantity.quantity\n }\n // TODO set default scope for \"every word bold underlined etc\"\n }"
890
+ }
891
+ ],
892
+ "priorities": [
893
+ {
894
+ "context": [
895
+ [
896
+ "ordinal",
897
+ 1
898
+ ],
899
+ [
900
+ "list",
901
+ 0
902
+ ],
903
+ [
904
+ "ordinal",
905
+ 1
906
+ ],
907
+ [
908
+ "statefulElement_wp",
909
+ 0
910
+ ]
911
+ ],
912
+ "ordered": true,
913
+ "choose": [
914
+ 1
915
+ ]
916
+ },
917
+ {
918
+ "context": [
919
+ [
920
+ "word_wp",
921
+ 1
922
+ ],
923
+ [
924
+ "wordComparisonWithVerb_wp",
925
+ 0
926
+ ],
927
+ [
928
+ "comparisonWith_wp",
929
+ 1
930
+ ],
931
+ [
932
+ "statefulElementInContext_wp",
933
+ 0
934
+ ]
935
+ ],
936
+ "ordered": true,
937
+ "choose": [
938
+ 1
939
+ ]
940
+ },
941
+ {
942
+ "context": [
943
+ [
944
+ "paragraphComparisonVerb_wp",
945
+ 0
946
+ ],
947
+ [
948
+ "word_wp",
949
+ 0
950
+ ],
951
+ [
952
+ "wordComparisonWithVerb_wp",
953
+ 0
954
+ ]
955
+ ],
284
956
  "ordered": true,
285
957
  "choose": [
286
958
  2
@@ -47152,6 +47824,27 @@
47152
47824
  ],
47153
47825
  "associations": {
47154
47826
  "positive": [
47827
+ {
47828
+ "context": [
47829
+ [
47830
+ "word_wp",
47831
+ 0
47832
+ ],
47833
+ [
47834
+ "thatVerb",
47835
+ 0
47836
+ ],
47837
+ [
47838
+ "wordComparison_wp",
47839
+ 0
47840
+ ],
47841
+ [
47842
+ "unknown",
47843
+ 0
47844
+ ]
47845
+ ],
47846
+ "choose": 0
47847
+ },
47155
47848
  {
47156
47849
  "context": [
47157
47850
  [
@@ -47172,6 +47865,657 @@
47172
47865
  ]
47173
47866
  ],
47174
47867
  "choose": 0
47868
+ },
47869
+ {
47870
+ "context": [
47871
+ [
47872
+ "letter_wp",
47873
+ 1
47874
+ ],
47875
+ [
47876
+ "statefulElementInContext_wp",
47877
+ 0
47878
+ ],
47879
+ [
47880
+ "every",
47881
+ 0
47882
+ ],
47883
+ [
47884
+ "word_wp",
47885
+ 0
47886
+ ],
47887
+ [
47888
+ "thatVerb",
47889
+ 0
47890
+ ],
47891
+ [
47892
+ "wordComparisonWithVerb_wp",
47893
+ 0
47894
+ ],
47895
+ [
47896
+ "comparisonWith_wp",
47897
+ 0
47898
+ ],
47899
+ [
47900
+ "unknown",
47901
+ 0
47902
+ ]
47903
+ ],
47904
+ "choose": 0
47905
+ },
47906
+ {
47907
+ "context": [
47908
+ [
47909
+ "letter_wp",
47910
+ 1
47911
+ ],
47912
+ [
47913
+ "statefulElementInContext_wp",
47914
+ 0
47915
+ ],
47916
+ [
47917
+ "every",
47918
+ 0
47919
+ ],
47920
+ [
47921
+ "word_wp",
47922
+ 1
47923
+ ],
47924
+ [
47925
+ "thatVerb",
47926
+ 0
47927
+ ],
47928
+ [
47929
+ "wordComparisonWithVerb_wp",
47930
+ 0
47931
+ ],
47932
+ [
47933
+ "comparisonWith_wp",
47934
+ 0
47935
+ ],
47936
+ [
47937
+ "unknown",
47938
+ 0
47939
+ ]
47940
+ ],
47941
+ "choose": 0
47942
+ },
47943
+ {
47944
+ "context": [
47945
+ [
47946
+ "word_wp",
47947
+ 0
47948
+ ],
47949
+ [
47950
+ "thatVerb",
47951
+ 0
47952
+ ],
47953
+ [
47954
+ "wordComparisonWithVerb_wp",
47955
+ 0
47956
+ ],
47957
+ [
47958
+ "comparisonWith_wp",
47959
+ 0
47960
+ ],
47961
+ [
47962
+ "unknown",
47963
+ 0
47964
+ ],
47965
+ [
47966
+ "statefulElementInContext_wp",
47967
+ 0
47968
+ ],
47969
+ [
47970
+ "article",
47971
+ 0
47972
+ ],
47973
+ [
47974
+ "ordinal",
47975
+ 0
47976
+ ],
47977
+ [
47978
+ "paragraph_wp",
47979
+ 0
47980
+ ]
47981
+ ],
47982
+ "choose": 0
47983
+ },
47984
+ {
47985
+ "context": [
47986
+ [
47987
+ "word_wp",
47988
+ 1
47989
+ ],
47990
+ [
47991
+ "thatVerb",
47992
+ 0
47993
+ ],
47994
+ [
47995
+ "wordComparisonWithVerb_wp",
47996
+ 0
47997
+ ],
47998
+ [
47999
+ "comparisonWith_wp",
48000
+ 0
48001
+ ],
48002
+ [
48003
+ "unknown",
48004
+ 0
48005
+ ],
48006
+ [
48007
+ "statefulElementInContext_wp",
48008
+ 0
48009
+ ],
48010
+ [
48011
+ "article",
48012
+ 0
48013
+ ],
48014
+ [
48015
+ "ordinal",
48016
+ 0
48017
+ ],
48018
+ [
48019
+ "paragraph_wp",
48020
+ 0
48021
+ ]
48022
+ ],
48023
+ "choose": 0
48024
+ },
48025
+ {
48026
+ "context": [
48027
+ [
48028
+ "word_wp",
48029
+ 0
48030
+ ],
48031
+ [
48032
+ "thatVerb",
48033
+ 0
48034
+ ],
48035
+ [
48036
+ "wordComparisonWithVerb_wp",
48037
+ 0
48038
+ ],
48039
+ [
48040
+ "comparisonWith_wp",
48041
+ 0
48042
+ ],
48043
+ [
48044
+ "unknown",
48045
+ 0
48046
+ ]
48047
+ ],
48048
+ "choose": 0
48049
+ },
48050
+ {
48051
+ "context": [
48052
+ [
48053
+ "word_wp",
48054
+ 1
48055
+ ],
48056
+ [
48057
+ "thatVerb",
48058
+ 0
48059
+ ],
48060
+ [
48061
+ "wordComparisonWithVerb_wp",
48062
+ 0
48063
+ ],
48064
+ [
48065
+ "comparisonWith_wp",
48066
+ 0
48067
+ ],
48068
+ [
48069
+ "unknown",
48070
+ 0
48071
+ ]
48072
+ ],
48073
+ "choose": 0
48074
+ },
48075
+ {
48076
+ "context": [
48077
+ [
48078
+ "paragraph_wp",
48079
+ 0
48080
+ ],
48081
+ [
48082
+ "thatVerb",
48083
+ 0
48084
+ ],
48085
+ [
48086
+ "paragraphComparisonVerb_wp",
48087
+ 0
48088
+ ],
48089
+ [
48090
+ "word_wp",
48091
+ 0
48092
+ ],
48093
+ [
48094
+ "thatVerb",
48095
+ 0
48096
+ ],
48097
+ [
48098
+ "wordComparisonWithVerb_wp",
48099
+ 0
48100
+ ],
48101
+ [
48102
+ "comparisonWith_wp",
48103
+ 0
48104
+ ]
48105
+ ],
48106
+ "choose": 0
48107
+ },
48108
+ {
48109
+ "context": [
48110
+ [
48111
+ "paragraph_wp",
48112
+ 1
48113
+ ],
48114
+ [
48115
+ "thatVerb",
48116
+ 0
48117
+ ],
48118
+ [
48119
+ "paragraphComparisonVerb_wp",
48120
+ 0
48121
+ ],
48122
+ [
48123
+ "word_wp",
48124
+ 0
48125
+ ],
48126
+ [
48127
+ "thatVerb",
48128
+ 0
48129
+ ],
48130
+ [
48131
+ "wordComparisonWithVerb_wp",
48132
+ 0
48133
+ ],
48134
+ [
48135
+ "comparisonWith_wp",
48136
+ 0
48137
+ ]
48138
+ ],
48139
+ "choose": 0
48140
+ },
48141
+ {
48142
+ "context": [
48143
+ [
48144
+ "paragraph_wp",
48145
+ 0
48146
+ ],
48147
+ [
48148
+ "thatVerb",
48149
+ 0
48150
+ ],
48151
+ [
48152
+ "paragraphComparisonVerb_wp",
48153
+ 0
48154
+ ],
48155
+ [
48156
+ "styleModifier_wp",
48157
+ 0
48158
+ ],
48159
+ [
48160
+ "word_wp",
48161
+ 0
48162
+ ]
48163
+ ],
48164
+ "choose": 0
48165
+ },
48166
+ {
48167
+ "context": [
48168
+ [
48169
+ "paragraph_wp",
48170
+ 1
48171
+ ],
48172
+ [
48173
+ "thatVerb",
48174
+ 0
48175
+ ],
48176
+ [
48177
+ "paragraphComparisonVerb_wp",
48178
+ 0
48179
+ ],
48180
+ [
48181
+ "styleModifier_wp",
48182
+ 0
48183
+ ],
48184
+ [
48185
+ "word_wp",
48186
+ 0
48187
+ ]
48188
+ ],
48189
+ "choose": 0
48190
+ },
48191
+ {
48192
+ "context": [
48193
+ [
48194
+ "word_wp",
48195
+ 1
48196
+ ],
48197
+ [
48198
+ "statefulElementInContext_wp",
48199
+ 0
48200
+ ],
48201
+ [
48202
+ "every",
48203
+ 0
48204
+ ],
48205
+ [
48206
+ "paragraph_wp",
48207
+ 0
48208
+ ]
48209
+ ],
48210
+ "choose": 0
48211
+ },
48212
+ {
48213
+ "context": [
48214
+ [
48215
+ "word_wp",
48216
+ 1
48217
+ ],
48218
+ [
48219
+ "statefulElementInContext_wp",
48220
+ 0
48221
+ ],
48222
+ [
48223
+ "every",
48224
+ 0
48225
+ ],
48226
+ [
48227
+ "paragraph_wp",
48228
+ 1
48229
+ ]
48230
+ ],
48231
+ "choose": 0
48232
+ },
48233
+ {
48234
+ "context": [
48235
+ [
48236
+ "letter_wp",
48237
+ 1
48238
+ ],
48239
+ [
48240
+ "statefulElementInContext_wp",
48241
+ 0
48242
+ ],
48243
+ [
48244
+ "every",
48245
+ 0
48246
+ ],
48247
+ [
48248
+ "paragraph_wp",
48249
+ 0
48250
+ ]
48251
+ ],
48252
+ "choose": 0
48253
+ },
48254
+ {
48255
+ "context": [
48256
+ [
48257
+ "letter_wp",
48258
+ 1
48259
+ ],
48260
+ [
48261
+ "statefulElementInContext_wp",
48262
+ 0
48263
+ ],
48264
+ [
48265
+ "every",
48266
+ 0
48267
+ ],
48268
+ [
48269
+ "paragraph_wp",
48270
+ 1
48271
+ ]
48272
+ ],
48273
+ "choose": 0
48274
+ },
48275
+ {
48276
+ "context": [
48277
+ [
48278
+ "article",
48279
+ 0
48280
+ ],
48281
+ [
48282
+ "letter_wp",
48283
+ 1
48284
+ ],
48285
+ [
48286
+ "statefulElementInContext_wp",
48287
+ 0
48288
+ ],
48289
+ [
48290
+ "article",
48291
+ 0
48292
+ ],
48293
+ [
48294
+ "word_wp",
48295
+ 0
48296
+ ],
48297
+ [
48298
+ "thatVerb",
48299
+ 0
48300
+ ],
48301
+ [
48302
+ "wordComparisonWithVerb_wp",
48303
+ 0
48304
+ ],
48305
+ [
48306
+ "comparisonWith_wp",
48307
+ 0
48308
+ ]
48309
+ ],
48310
+ "choose": 1
48311
+ },
48312
+ {
48313
+ "context": [
48314
+ [
48315
+ "article",
48316
+ 0
48317
+ ],
48318
+ [
48319
+ "letter_wp",
48320
+ 1
48321
+ ],
48322
+ [
48323
+ "statefulElementInContext_wp",
48324
+ 0
48325
+ ],
48326
+ [
48327
+ "article",
48328
+ 0
48329
+ ],
48330
+ [
48331
+ "word_wp",
48332
+ 1
48333
+ ],
48334
+ [
48335
+ "thatVerb",
48336
+ 0
48337
+ ],
48338
+ [
48339
+ "wordComparisonWithVerb_wp",
48340
+ 0
48341
+ ],
48342
+ [
48343
+ "comparisonWith_wp",
48344
+ 0
48345
+ ]
48346
+ ],
48347
+ "choose": 1
48348
+ },
48349
+ {
48350
+ "context": [
48351
+ [
48352
+ "article",
48353
+ 0
48354
+ ],
48355
+ [
48356
+ "letter_wp",
48357
+ 1
48358
+ ],
48359
+ [
48360
+ "statefulElementInContext_wp",
48361
+ 0
48362
+ ],
48363
+ [
48364
+ "article",
48365
+ 0
48366
+ ],
48367
+ [
48368
+ "word_wp",
48369
+ 1
48370
+ ],
48371
+ [
48372
+ "wordComparisonWithVerb_wp",
48373
+ 0
48374
+ ],
48375
+ [
48376
+ "comparisonWith_wp",
48377
+ 0
48378
+ ]
48379
+ ],
48380
+ "choose": 1
48381
+ },
48382
+ {
48383
+ "context": [
48384
+ [
48385
+ "letter_wp",
48386
+ 1
48387
+ ],
48388
+ [
48389
+ "statefulElementInContext_wp",
48390
+ 0
48391
+ ],
48392
+ [
48393
+ "every",
48394
+ 0
48395
+ ],
48396
+ [
48397
+ "word_wp",
48398
+ 0
48399
+ ]
48400
+ ],
48401
+ "choose": 0
48402
+ },
48403
+ {
48404
+ "context": [
48405
+ [
48406
+ "letter_wp",
48407
+ 1
48408
+ ],
48409
+ [
48410
+ "statefulElementInContext_wp",
48411
+ 0
48412
+ ],
48413
+ [
48414
+ "every",
48415
+ 0
48416
+ ],
48417
+ [
48418
+ "word_wp",
48419
+ 1
48420
+ ]
48421
+ ],
48422
+ "choose": 0
48423
+ },
48424
+ {
48425
+ "context": [
48426
+ [
48427
+ "word_wp",
48428
+ 1
48429
+ ],
48430
+ [
48431
+ "statefulElementInContext_wp",
48432
+ 0
48433
+ ],
48434
+ [
48435
+ "article",
48436
+ 0
48437
+ ],
48438
+ [
48439
+ "ordinal",
48440
+ 0
48441
+ ],
48442
+ [
48443
+ "paragraph_wp",
48444
+ 0
48445
+ ]
48446
+ ],
48447
+ "choose": 0
48448
+ },
48449
+ {
48450
+ "context": [
48451
+ [
48452
+ "word_wp",
48453
+ 1
48454
+ ],
48455
+ [
48456
+ "statefulElementInContext_wp",
48457
+ 0
48458
+ ],
48459
+ [
48460
+ "article",
48461
+ 0
48462
+ ],
48463
+ [
48464
+ "ordinal",
48465
+ 1
48466
+ ],
48467
+ [
48468
+ "paragraph_wp",
48469
+ 0
48470
+ ]
48471
+ ],
48472
+ "choose": 0
48473
+ },
48474
+ {
48475
+ "context": [
48476
+ [
48477
+ "word_wp",
48478
+ 1
48479
+ ],
48480
+ [
48481
+ "statefulElementInContext_wp",
48482
+ 0
48483
+ ],
48484
+ [
48485
+ "article",
48486
+ 0
48487
+ ],
48488
+ [
48489
+ "ordinal",
48490
+ 1
48491
+ ],
48492
+ [
48493
+ "paragraph_wp",
48494
+ 1
48495
+ ]
48496
+ ],
48497
+ "choose": 0
48498
+ },
48499
+ {
48500
+ "context": [
48501
+ [
48502
+ "word_wp",
48503
+ 1
48504
+ ],
48505
+ [
48506
+ "statefulElementInContext_wp",
48507
+ 0
48508
+ ],
48509
+ [
48510
+ "article",
48511
+ 0
48512
+ ],
48513
+ [
48514
+ "paragraph_wp",
48515
+ 1
48516
+ ]
48517
+ ],
48518
+ "choose": 0
47175
48519
  }
47176
48520
  ]
47177
48521
  },
@@ -47331,10 +48675,10 @@
47331
48675
  ],
47332
48676
  "semantics": [
47333
48677
  {
47334
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:361"
48678
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:407"
47335
48679
  },
47336
48680
  {
47337
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:370"
48681
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:416"
47338
48682
  }
47339
48683
  ],
47340
48684
  "priorities": [