tpmkms 8.1.0-beta.0 → 8.1.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -766,7 +766,7 @@
766
766
  ],
767
767
  [
768
768
  "theAble",
769
- "theAble",
769
+ "queryable",
770
770
  false
771
771
  ],
772
772
  [
@@ -44,6 +44,12 @@ let config = {
44
44
  }
45
45
  },
46
46
 
47
+ {
48
+ where: where(),
49
+ match: ({context}) => context.evalue,
50
+ apply: async ({context, g}) => await g(context.evalue)
51
+ },
52
+
47
53
  {
48
54
  where: where(),
49
55
  //({context}) => context.paraphrase && context.modifiers,
@@ -152,12 +158,6 @@ let config = {
152
158
  apply: ({context}) => context.verbatim
153
159
  },
154
160
 
155
- {
156
- where: where(),
157
- match: ({context}) => context.evalue,
158
- apply: async ({context, g}) => await g(context.evalue)
159
- },
160
-
161
161
  {
162
162
  where: where(),
163
163
  match: ({context}) => context.value && Array.isArray(context.value),
@@ -70,7 +70,7 @@ class API {
70
70
  config.addOperator({ pattern: `([${objectId}|])`, allowDups: true })
71
71
  }
72
72
 
73
- if (object.unknown) {
73
+ if (object.unknown || object.marker !== objectId) {
74
74
  config.addWord(objectSingular, { id: objectId, initial: `{ value: '${objectId}', number: 'one' }`})
75
75
  config.addWord(objectPlural, { id: objectId, initial: `{ value: '${objectId}', number: 'many' }`})
76
76
  }
@@ -104,6 +104,7 @@ class API {
104
104
  localHierarchy,
105
105
  bridge: `{
106
106
  ...before,
107
+ marker: '${after[0].tag}',
107
108
  constraints: [
108
109
  {
109
110
  property: '${after[0].tag}',
@@ -329,14 +330,25 @@ class API {
329
330
  } else {
330
331
  config.addOperator({ pattern: `(${beforeOperators} [${operator}|] ${afterOperators})`, allowDups: true })
331
332
  }
332
-
333
- for (let argument of before.concat(after)) {
334
- if (create.includes(argument.id)) {
335
- // config.addHierarchy('unknown', argument.id)
336
- // config.addHierarchy('what', argument.id)
337
- // greg23 <<<<<<<<<<<< doing this
338
- config.addHierarchy(argument.id, 'unknown')
339
- config.addHierarchy(argument.id, 'what')
333
+
334
+ if (false) {
335
+ for (let argument of before.concat(after)) {
336
+ if (create.includes(argument.id)) {
337
+ // config.addHierarchy('unknown', argument.id)
338
+ // config.addHierarchy('what', argument.id)
339
+ // greg23 <<<<<<<<<<<< doing this
340
+ config.addHierarchy(argument.id, 'unknown')
341
+ config.addHierarchy(argument.id, 'what')
342
+ }
343
+ }
344
+ } else {
345
+ for (let argument of before.concat(after)) {
346
+ if (create.includes(argument.id)) {
347
+ // config.addHierarchy(argument.id, 'unknown')
348
+ // config.addHierarchy(argument.id, 'what')
349
+ localHierarchy.push([argument.id, 'unknown'])
350
+ localHierarchy.push([argument.id, 'what'])
351
+ }
340
352
  }
341
353
  }
342
354
 
@@ -52,6 +52,7 @@ let config = {
52
52
  ['have', 'canBeDoQuestion'],
53
53
  ],
54
54
  priorities: [
55
+ { "context": [['isEd', 0], ['is', 0], ], "choose": [1] },
55
56
  { "context": [['a', 0], ['questionMark', 0], ['is', 0], ], "choose": [0] },
56
57
  // [['is', 0], ['hierarchyAble', 0]],
57
58
  // [['a', 0], ['is', 0], ['hierarchyAble', 0]],
@@ -1237,7 +1237,7 @@
1237
1237
  ],
1238
1238
  [
1239
1239
  "theAble",
1240
- "theAble",
1240
+ "queryable",
1241
1241
  false
1242
1242
  ],
1243
1243
  [
@@ -1352,12 +1352,7 @@
1352
1352
  ],
1353
1353
  [
1354
1354
  "weapon",
1355
- "unknown",
1356
- false
1357
- ],
1358
- [
1359
1355
  "weapon",
1360
- "what",
1361
1356
  false
1362
1357
  ],
1363
1358
  [
@@ -821,7 +821,7 @@
821
821
  ],
822
822
  [
823
823
  "theAble",
824
- "theAble",
824
+ "queryable",
825
825
  false
826
826
  ],
827
827
  [
@@ -2003,7 +2003,7 @@
2003
2003
  ],
2004
2004
  [
2005
2005
  "theAble",
2006
- "theAble",
2006
+ "queryable",
2007
2007
  false
2008
2008
  ],
2009
2009
  [
@@ -2166,7 +2166,7 @@
2166
2166
  ],
2167
2167
  "ops": [
2168
2168
  [
2169
- "isEd",
2169
+ "is",
2170
2170
  0
2171
2171
  ],
2172
2172
  [
@@ -2211,7 +2211,7 @@
2211
2211
  ],
2212
2212
  "ops": [
2213
2213
  [
2214
- "isEd",
2214
+ "is",
2215
2215
  0
2216
2216
  ],
2217
2217
  [
@@ -2252,7 +2252,7 @@
2252
2252
  ],
2253
2253
  "ops": [
2254
2254
  [
2255
- "isEd",
2255
+ "is",
2256
2256
  0
2257
2257
  ],
2258
2258
  [
@@ -2289,7 +2289,7 @@
2289
2289
  ],
2290
2290
  "ops": [
2291
2291
  [
2292
- "isEd",
2292
+ "is",
2293
2293
  0
2294
2294
  ],
2295
2295
  [
@@ -2322,7 +2322,7 @@
2322
2322
  ],
2323
2323
  "ops": [
2324
2324
  [
2325
- "isEd",
2325
+ "is",
2326
2326
  0
2327
2327
  ],
2328
2328
  [
@@ -2351,7 +2351,7 @@
2351
2351
  ],
2352
2352
  "ops": [
2353
2353
  [
2354
- "isEd",
2354
+ "is",
2355
2355
  0
2356
2356
  ],
2357
2357
  [
@@ -2533,6 +2533,7 @@
2533
2533
  },
2534
2534
  "types": [
2535
2535
  "list",
2536
+ "queryable",
2536
2537
  "unknown"
2537
2538
  ],
2538
2539
  "listable": true,
@@ -2549,6 +2550,10 @@
2549
2550
  "end": 4
2550
2551
  },
2551
2552
  "dead": true,
2553
+ "types": [
2554
+ "queryable",
2555
+ "unknown"
2556
+ ],
2552
2557
  "level": 1
2553
2558
  },
2554
2559
  {
@@ -2562,6 +2567,10 @@
2562
2567
  "end": 15
2563
2568
  },
2564
2569
  "dead": true,
2570
+ "types": [
2571
+ "queryable",
2572
+ "unknown"
2573
+ ],
2565
2574
  "level": 1
2566
2575
  },
2567
2576
  {
@@ -2574,6 +2583,10 @@
2574
2583
  "start": 17,
2575
2584
  "end": 20
2576
2585
  },
2586
+ "types": [
2587
+ "queryable",
2588
+ "unknown"
2589
+ ],
2577
2590
  "dead": true,
2578
2591
  "level": 1
2579
2592
  },
@@ -2587,6 +2600,10 @@
2587
2600
  "start": 26,
2588
2601
  "end": 29
2589
2602
  },
2603
+ "types": [
2604
+ "queryable",
2605
+ "unknown"
2606
+ ],
2590
2607
  "dead": true,
2591
2608
  "level": 1
2592
2609
  }
@@ -2691,11 +2708,19 @@
2691
2708
  ],
2692
2709
  [
2693
2710
  "list",
2694
- 1
2711
+ 0
2695
2712
  ],
2696
2713
  [
2697
2714
  "propertyOf",
2698
2715
  0
2716
+ ],
2717
+ [
2718
+ "unit",
2719
+ 0
2720
+ ],
2721
+ [
2722
+ "unknown",
2723
+ 0
2699
2724
  ]
2700
2725
  ],
2701
2726
  [
@@ -2709,7 +2734,7 @@
2709
2734
  ],
2710
2735
  [
2711
2736
  "list",
2712
- 1
2737
+ 0
2713
2738
  ],
2714
2739
  [
2715
2740
  "propertyOf",
@@ -2718,6 +2743,14 @@
2718
2743
  [
2719
2744
  "unit",
2720
2745
  0
2746
+ ],
2747
+ [
2748
+ "unknown",
2749
+ 0
2750
+ ],
2751
+ [
2752
+ "unknown",
2753
+ 1
2721
2754
  ]
2722
2755
  ],
2723
2756
  [
@@ -2731,7 +2764,7 @@
2731
2764
  ],
2732
2765
  [
2733
2766
  "list",
2734
- 1
2767
+ 0
2735
2768
  ],
2736
2769
  [
2737
2770
  "propertyOf",
@@ -2752,13 +2785,7 @@
2752
2785
  0
2753
2786
  ],
2754
2787
  [
2755
- "list",
2756
- 1
2757
- ]
2758
- ],
2759
- [
2760
- [
2761
- "is",
2788
+ "length",
2762
2789
  0
2763
2790
  ],
2764
2791
  [
@@ -2775,23 +2802,13 @@
2775
2802
  "is",
2776
2803
  0
2777
2804
  ],
2778
- [
2779
- "list",
2780
- 1
2781
- ],
2782
- [
2783
- "propertyOf",
2784
- 1
2785
- ]
2786
- ],
2787
- [
2788
2805
  [
2789
2806
  "length",
2790
2807
  0
2791
2808
  ],
2792
2809
  [
2793
2810
  "list",
2794
- 0
2811
+ 1
2795
2812
  ],
2796
2813
  [
2797
2814
  "propertyOf",
@@ -2800,20 +2817,20 @@
2800
2817
  [
2801
2818
  "unit",
2802
2819
  0
2803
- ],
2804
- [
2805
- "unknown",
2806
- 0
2807
2820
  ]
2808
2821
  ],
2809
2822
  [
2823
+ [
2824
+ "is",
2825
+ 0
2826
+ ],
2810
2827
  [
2811
2828
  "length",
2812
2829
  0
2813
2830
  ],
2814
2831
  [
2815
2832
  "list",
2816
- 0
2833
+ 1
2817
2834
  ],
2818
2835
  [
2819
2836
  "propertyOf",
@@ -2825,38 +2842,36 @@
2825
2842
  ],
2826
2843
  [
2827
2844
  "unknown",
2845
+ 1
2846
+ ]
2847
+ ],
2848
+ [
2849
+ [
2850
+ "is",
2828
2851
  0
2829
2852
  ],
2830
2853
  [
2831
- "unknown",
2854
+ "list",
2832
2855
  1
2833
2856
  ]
2834
2857
  ],
2835
2858
  [
2836
2859
  [
2837
- "length",
2860
+ "is",
2838
2861
  0
2839
2862
  ],
2840
2863
  [
2841
2864
  "list",
2842
- 0
2865
+ 1
2843
2866
  ],
2844
2867
  [
2845
2868
  "propertyOf",
2846
2869
  0
2847
- ],
2848
- [
2849
- "unit",
2850
- 0
2851
- ],
2852
- [
2853
- "unknown",
2854
- 1
2855
2870
  ]
2856
2871
  ],
2857
2872
  [
2858
2873
  [
2859
- "length",
2874
+ "is",
2860
2875
  0
2861
2876
  ],
2862
2877
  [
@@ -2865,14 +2880,6 @@
2865
2880
  ],
2866
2881
  [
2867
2882
  "propertyOf",
2868
- 0
2869
- ],
2870
- [
2871
- "unit",
2872
- 0
2873
- ],
2874
- [
2875
- "unknown",
2876
2883
  1
2877
2884
  ]
2878
2885
  ]
@@ -3847,7 +3854,7 @@
3847
3854
  ],
3848
3855
  [
3849
3856
  "theAble",
3850
- "theAble",
3857
+ "queryable",
3851
3858
  false
3852
3859
  ],
3853
3860
  [
@@ -5243,7 +5250,7 @@
5243
5250
  ],
5244
5251
  [
5245
5252
  "theAble",
5246
- "theAble",
5253
+ "queryable",
5247
5254
  false
5248
5255
  ],
5249
5256
  [
@@ -6639,7 +6646,7 @@
6639
6646
  ],
6640
6647
  [
6641
6648
  "theAble",
6642
- "theAble",
6649
+ "queryable",
6643
6650
  false
6644
6651
  ],
6645
6652
  [
@@ -8048,7 +8055,7 @@
8048
8055
  ],
8049
8056
  [
8050
8057
  "theAble",
8051
- "theAble",
8058
+ "queryable",
8052
8059
  false
8053
8060
  ],
8054
8061
  [
@@ -9467,7 +9474,7 @@
9467
9474
  ],
9468
9475
  [
9469
9476
  "theAble",
9470
- "theAble",
9477
+ "queryable",
9471
9478
  false
9472
9479
  ],
9473
9480
  [
@@ -10886,7 +10893,7 @@
10886
10893
  ],
10887
10894
  [
10888
10895
  "theAble",
10889
- "theAble",
10896
+ "queryable",
10890
10897
  false
10891
10898
  ],
10892
10899
  [
@@ -12295,7 +12302,7 @@
12295
12302
  ],
12296
12303
  [
12297
12304
  "theAble",
12298
- "theAble",
12305
+ "queryable",
12299
12306
  false
12300
12307
  ],
12301
12308
  [
@@ -13691,7 +13698,7 @@
13691
13698
  ],
13692
13699
  [
13693
13700
  "theAble",
13694
- "theAble",
13701
+ "queryable",
13695
13702
  false
13696
13703
  ],
13697
13704
  [
@@ -15087,7 +15094,7 @@
15087
15094
  ],
15088
15095
  [
15089
15096
  "theAble",
15090
- "theAble",
15097
+ "queryable",
15091
15098
  false
15092
15099
  ],
15093
15100
  [
@@ -16483,7 +16490,7 @@
16483
16490
  ],
16484
16491
  [
16485
16492
  "theAble",
16486
- "theAble",
16493
+ "queryable",
16487
16494
  false
16488
16495
  ],
16489
16496
  [
@@ -17870,7 +17877,7 @@
17870
17877
  ],
17871
17878
  [
17872
17879
  "theAble",
17873
- "theAble",
17880
+ "queryable",
17874
17881
  false
17875
17882
  ],
17876
17883
  [
@@ -19279,7 +19286,7 @@
19279
19286
  ],
19280
19287
  [
19281
19288
  "theAble",
19282
- "theAble",
19289
+ "queryable",
19283
19290
  false
19284
19291
  ],
19285
19292
  [
@@ -20698,7 +20705,7 @@
20698
20705
  ],
20699
20706
  [
20700
20707
  "theAble",
20701
- "theAble",
20708
+ "queryable",
20702
20709
  false
20703
20710
  ],
20704
20711
  [
@@ -22154,11 +22161,19 @@
22154
22161
  ],
22155
22162
  [
22156
22163
  "list",
22157
- 1
22164
+ 0
22158
22165
  ],
22159
22166
  [
22160
22167
  "propertyOf",
22161
22168
  0
22169
+ ],
22170
+ [
22171
+ "unit",
22172
+ 0
22173
+ ],
22174
+ [
22175
+ "unknown",
22176
+ 0
22162
22177
  ]
22163
22178
  ],
22164
22179
  [
@@ -22172,7 +22187,7 @@
22172
22187
  ],
22173
22188
  [
22174
22189
  "list",
22175
- 1
22190
+ 0
22176
22191
  ],
22177
22192
  [
22178
22193
  "propertyOf",
@@ -22181,6 +22196,14 @@
22181
22196
  [
22182
22197
  "unit",
22183
22198
  0
22199
+ ],
22200
+ [
22201
+ "unknown",
22202
+ 0
22203
+ ],
22204
+ [
22205
+ "unknown",
22206
+ 1
22184
22207
  ]
22185
22208
  ],
22186
22209
  [
@@ -22194,7 +22217,7 @@
22194
22217
  ],
22195
22218
  [
22196
22219
  "list",
22197
- 1
22220
+ 0
22198
22221
  ],
22199
22222
  [
22200
22223
  "propertyOf",
@@ -22215,13 +22238,7 @@
22215
22238
  0
22216
22239
  ],
22217
22240
  [
22218
- "list",
22219
- 1
22220
- ]
22221
- ],
22222
- [
22223
- [
22224
- "is",
22241
+ "length",
22225
22242
  0
22226
22243
  ],
22227
22244
  [
@@ -22238,23 +22255,13 @@
22238
22255
  "is",
22239
22256
  0
22240
22257
  ],
22241
- [
22242
- "list",
22243
- 1
22244
- ],
22245
- [
22246
- "propertyOf",
22247
- 1
22248
- ]
22249
- ],
22250
- [
22251
22258
  [
22252
22259
  "length",
22253
22260
  0
22254
22261
  ],
22255
22262
  [
22256
22263
  "list",
22257
- 0
22264
+ 1
22258
22265
  ],
22259
22266
  [
22260
22267
  "propertyOf",
@@ -22263,20 +22270,20 @@
22263
22270
  [
22264
22271
  "unit",
22265
22272
  0
22266
- ],
22267
- [
22268
- "unknown",
22269
- 0
22270
22273
  ]
22271
22274
  ],
22272
22275
  [
22276
+ [
22277
+ "is",
22278
+ 0
22279
+ ],
22273
22280
  [
22274
22281
  "length",
22275
22282
  0
22276
22283
  ],
22277
22284
  [
22278
22285
  "list",
22279
- 0
22286
+ 1
22280
22287
  ],
22281
22288
  [
22282
22289
  "propertyOf",
@@ -22288,38 +22295,36 @@
22288
22295
  ],
22289
22296
  [
22290
22297
  "unknown",
22298
+ 1
22299
+ ]
22300
+ ],
22301
+ [
22302
+ [
22303
+ "is",
22291
22304
  0
22292
22305
  ],
22293
22306
  [
22294
- "unknown",
22307
+ "list",
22295
22308
  1
22296
22309
  ]
22297
22310
  ],
22298
22311
  [
22299
22312
  [
22300
- "length",
22313
+ "is",
22301
22314
  0
22302
22315
  ],
22303
22316
  [
22304
22317
  "list",
22305
- 0
22318
+ 1
22306
22319
  ],
22307
22320
  [
22308
22321
  "propertyOf",
22309
22322
  0
22310
- ],
22311
- [
22312
- "unit",
22313
- 0
22314
- ],
22315
- [
22316
- "unknown",
22317
- 1
22318
22323
  ]
22319
22324
  ],
22320
22325
  [
22321
22326
  [
22322
- "length",
22327
+ "is",
22323
22328
  0
22324
22329
  ],
22325
22330
  [
@@ -22328,14 +22333,6 @@
22328
22333
  ],
22329
22334
  [
22330
22335
  "propertyOf",
22331
- 0
22332
- ],
22333
- [
22334
- "unit",
22335
- 0
22336
- ],
22337
- [
22338
- "unknown",
22339
22336
  1
22340
22337
  ]
22341
22338
  ]