tpmkms_4wp 9.5.1-beta.2 → 9.5.1-beta.20

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 (84) hide show
  1. package/common/animals.instance.json +21 -61
  2. package/common/asking.js +102 -100
  3. package/common/can.instance.json +2180 -0
  4. package/common/can.js +254 -0
  5. package/common/can.test.json +50706 -0
  6. package/common/characters.js +3 -3
  7. package/common/colors.instance.json +38 -10
  8. package/common/comparable.instance.json +2 -2
  9. package/common/concept.test.json +54 -40
  10. package/common/conjunction.js +13 -5
  11. package/common/crew.instance.json +241 -123
  12. package/common/crew.js +1 -1
  13. package/common/currency.js +1 -1
  14. package/common/dates.instance.json +87 -3
  15. package/common/dialogues.js +41 -119
  16. package/common/dimension.instance.json +16 -12
  17. package/common/dimension.js +23 -4
  18. package/common/dimension.test.json +1758 -2351
  19. package/common/edible.instance.json +79 -95
  20. package/common/emotions.instance.json +53 -80
  21. package/common/emotions.js +1 -1
  22. package/common/english_helpers.js +277 -67
  23. package/common/fastfood.instance.json +35 -663
  24. package/common/fastfood.js +4 -4
  25. package/common/formulas.instance.json +1 -1
  26. package/common/gdefaults.js +85 -14
  27. package/common/help.js +2 -2
  28. package/common/help.test.json +65 -11
  29. package/common/helpers/concept.js +1 -1
  30. package/common/helpers/conjunction.js +54 -44
  31. package/common/helpers/dateTimeSelectors.js +2 -2
  32. package/common/helpers/dialogues.js +1 -1
  33. package/common/helpers/formulas.js +13 -11
  34. package/common/helpers/menus.js +12 -12
  35. package/common/helpers/meta.js +8 -8
  36. package/common/helpers/properties.js +102 -21
  37. package/common/helpers.js +82 -46
  38. package/common/hierarchy.js +4 -3
  39. package/common/kirk.instance.json +1 -1
  40. package/common/latin.instance.json +10 -10
  41. package/common/latin.js +5 -5
  42. package/common/length.instance.json +20 -2
  43. package/common/length.test.json +2241 -1801
  44. package/common/math.instance.json +20 -20
  45. package/common/math.js +45 -44
  46. package/common/menus.instance.json +3 -3
  47. package/common/menus.js +1 -1
  48. package/common/meta.js +49 -33
  49. package/common/ordering.instance.json +20 -30
  50. package/common/ordering.js +1 -1
  51. package/common/ordering.test.json +354 -296
  52. package/common/people.instance.json +56 -258
  53. package/common/people.js +1 -1
  54. package/common/people.test.json +952 -681
  55. package/common/pipboy.instance.json +72 -16
  56. package/common/pokemon.instance.json +8 -8
  57. package/common/pokemon.js +1 -1
  58. package/common/pressure.instance.json +6 -2
  59. package/common/properties.instance.json +4 -12
  60. package/common/properties.js +16 -3
  61. package/common/reminders.js +1 -1
  62. package/common/reports.instance.json +3 -3
  63. package/common/reports.js +18 -16
  64. package/common/scorekeeper.js +4 -4
  65. package/common/sdefaults.js +22 -2
  66. package/common/spock.instance.json +1 -1
  67. package/common/stgame.js +1 -1
  68. package/common/stm.js +2 -2
  69. package/common/tell.js +1 -1
  70. package/common/temperature.instance.json +6 -2
  71. package/common/tester.js +3 -3
  72. package/common/time.js +3 -3
  73. package/common/tokenize.js +1 -1
  74. package/common/weight.instance.json +19 -2
  75. package/common/words.instance.json +9 -0
  76. package/common/words.js +53 -0
  77. package/common/words.test.json +2 -0
  78. package/common/wp.instance.json +320 -8
  79. package/common/wp.js +8 -4
  80. package/common/wp.test.json +3469 -0
  81. package/main.js +0 -2
  82. package/package.json +9 -5
  83. package/common/listener.js +0 -50
  84. package/common/listener.test.json +0 -142
@@ -111,6 +111,54 @@
111
111
  "increment": true
112
112
  }
113
113
  },
114
+ {
115
+ "context": [
116
+ [
117
+ "style_wp",
118
+ 0
119
+ ],
120
+ [
121
+ "the",
122
+ 0
123
+ ],
124
+ [
125
+ "ordinal",
126
+ 1
127
+ ],
128
+ [
129
+ "word_wp",
130
+ 0
131
+ ],
132
+ [
133
+ "statefulElementInContext_wp",
134
+ 0
135
+ ],
136
+ [
137
+ "the",
138
+ 0
139
+ ],
140
+ [
141
+ "ordinal",
142
+ 0
143
+ ],
144
+ [
145
+ "list",
146
+ 0
147
+ ],
148
+ [
149
+ "ordinal",
150
+ 0
151
+ ],
152
+ [
153
+ "paragraph_wp",
154
+ 0
155
+ ]
156
+ ],
157
+ "choose": {
158
+ "index": 0,
159
+ "increment": true
160
+ }
161
+ },
114
162
  {
115
163
  "context": [
116
164
  [
@@ -207,6 +255,50 @@
207
255
  "increment": true
208
256
  }
209
257
  },
258
+ {
259
+ "context": [
260
+ [
261
+ "style_wp",
262
+ 0
263
+ ],
264
+ [
265
+ "the",
266
+ 0
267
+ ],
268
+ [
269
+ "word_wp",
270
+ 0
271
+ ],
272
+ [
273
+ "statefulElementInContext_wp",
274
+ 0
275
+ ],
276
+ [
277
+ "the",
278
+ 0
279
+ ],
280
+ [
281
+ "ordinal",
282
+ 0
283
+ ],
284
+ [
285
+ "list",
286
+ 0
287
+ ],
288
+ [
289
+ "ordinal",
290
+ 0
291
+ ],
292
+ [
293
+ "paragraph_wp",
294
+ 0
295
+ ]
296
+ ],
297
+ "choose": {
298
+ "index": 0,
299
+ "increment": true
300
+ }
301
+ },
210
302
  {
211
303
  "context": [
212
304
  [
@@ -375,6 +467,42 @@
375
467
  "increment": true
376
468
  }
377
469
  },
470
+ {
471
+ "context": [
472
+ [
473
+ "style_wp",
474
+ 0
475
+ ],
476
+ [
477
+ "the",
478
+ 0
479
+ ],
480
+ [
481
+ "word_wp",
482
+ 0
483
+ ],
484
+ [
485
+ "statefulElementInContext_wp",
486
+ 0
487
+ ],
488
+ [
489
+ "the",
490
+ 0
491
+ ],
492
+ [
493
+ "ordinal",
494
+ 0
495
+ ],
496
+ [
497
+ "paragraph_wp",
498
+ 0
499
+ ]
500
+ ],
501
+ "choose": {
502
+ "index": 0,
503
+ "increment": true
504
+ }
505
+ },
378
506
  {
379
507
  "context": [
380
508
  [
@@ -6577,7 +6705,7 @@
6577
6705
  "word": "words",
6578
6706
  "range": {
6579
6707
  "start": 0,
6580
- "end": 78
6708
+ "end": 4
6581
6709
  },
6582
6710
  "dead": true,
6583
6711
  "types": [
@@ -10357,7 +10485,7 @@
10357
10485
  "word": "characters",
10358
10486
  "range": {
10359
10487
  "start": 0,
10360
- "end": 68
10488
+ "end": 9
10361
10489
  },
10362
10490
  "dead": true,
10363
10491
  "types": [
@@ -13959,7 +14087,7 @@
13959
14087
  "word": "paragraphs",
13960
14088
  "range": {
13961
14089
  "start": 0,
13962
- "end": 82
14090
+ "end": 9
13963
14091
  },
13964
14092
  "dead": true,
13965
14093
  "types": [
@@ -17728,7 +17856,7 @@
17728
17856
  "word": "text",
17729
17857
  "range": {
17730
17858
  "start": 0,
17731
- "end": 24
17859
+ "end": 3
17732
17860
  },
17733
17861
  "dead": true,
17734
17862
  "types": [
@@ -24660,7 +24788,7 @@
24660
24788
  "text": "bold, italic, code, capitalize, lowercase and underline",
24661
24789
  "range": {
24662
24790
  "start": 0,
24663
- "end": 65
24791
+ "end": 54
24664
24792
  },
24665
24793
  "types": [
24666
24794
  "list",
@@ -24903,6 +25031,20 @@
24903
25031
  0
24904
25032
  ]
24905
25033
  ],
25034
+ [
25035
+ [
25036
+ "is",
25037
+ 0
25038
+ ],
25039
+ [
25040
+ "list",
25041
+ 1
25042
+ ],
25043
+ [
25044
+ "unknown",
25045
+ 0
25046
+ ]
25047
+ ],
24906
25048
  [
24907
25049
  [
24908
25050
  "is",
@@ -48018,7 +48160,7 @@
48018
48160
  "text": "uppercased, lowercased, capitalized, bolded, italicized and underlined",
48019
48161
  "range": {
48020
48162
  "start": 0,
48021
- "end": 88
48163
+ "end": 69
48022
48164
  },
48023
48165
  "types": [
48024
48166
  "capitalized_wp",
@@ -48293,6 +48435,20 @@
48293
48435
  0
48294
48436
  ]
48295
48437
  ],
48438
+ [
48439
+ [
48440
+ "is",
48441
+ 0
48442
+ ],
48443
+ [
48444
+ "list",
48445
+ 1
48446
+ ],
48447
+ [
48448
+ "unknown",
48449
+ 0
48450
+ ]
48451
+ ],
48296
48452
  [
48297
48453
  [
48298
48454
  "is",
@@ -53585,6 +53741,54 @@
53585
53741
  "increment": true
53586
53742
  }
53587
53743
  },
53744
+ {
53745
+ "context": [
53746
+ [
53747
+ "style_wp",
53748
+ 0
53749
+ ],
53750
+ [
53751
+ "the",
53752
+ 0
53753
+ ],
53754
+ [
53755
+ "ordinal",
53756
+ 1
53757
+ ],
53758
+ [
53759
+ "word_wp",
53760
+ 0
53761
+ ],
53762
+ [
53763
+ "statefulElementInContext_wp",
53764
+ 0
53765
+ ],
53766
+ [
53767
+ "the",
53768
+ 0
53769
+ ],
53770
+ [
53771
+ "ordinal",
53772
+ 0
53773
+ ],
53774
+ [
53775
+ "list",
53776
+ 0
53777
+ ],
53778
+ [
53779
+ "ordinal",
53780
+ 0
53781
+ ],
53782
+ [
53783
+ "paragraph_wp",
53784
+ 0
53785
+ ]
53786
+ ],
53787
+ "choose": {
53788
+ "index": 0,
53789
+ "increment": true
53790
+ }
53791
+ },
53588
53792
  {
53589
53793
  "context": [
53590
53794
  [
@@ -53681,6 +53885,50 @@
53681
53885
  "increment": true
53682
53886
  }
53683
53887
  },
53888
+ {
53889
+ "context": [
53890
+ [
53891
+ "style_wp",
53892
+ 0
53893
+ ],
53894
+ [
53895
+ "the",
53896
+ 0
53897
+ ],
53898
+ [
53899
+ "word_wp",
53900
+ 0
53901
+ ],
53902
+ [
53903
+ "statefulElementInContext_wp",
53904
+ 0
53905
+ ],
53906
+ [
53907
+ "the",
53908
+ 0
53909
+ ],
53910
+ [
53911
+ "ordinal",
53912
+ 0
53913
+ ],
53914
+ [
53915
+ "list",
53916
+ 0
53917
+ ],
53918
+ [
53919
+ "ordinal",
53920
+ 0
53921
+ ],
53922
+ [
53923
+ "paragraph_wp",
53924
+ 0
53925
+ ]
53926
+ ],
53927
+ "choose": {
53928
+ "index": 0,
53929
+ "increment": true
53930
+ }
53931
+ },
53684
53932
  {
53685
53933
  "context": [
53686
53934
  [
@@ -53849,6 +54097,42 @@
53849
54097
  "increment": true
53850
54098
  }
53851
54099
  },
54100
+ {
54101
+ "context": [
54102
+ [
54103
+ "style_wp",
54104
+ 0
54105
+ ],
54106
+ [
54107
+ "the",
54108
+ 0
54109
+ ],
54110
+ [
54111
+ "word_wp",
54112
+ 0
54113
+ ],
54114
+ [
54115
+ "statefulElementInContext_wp",
54116
+ 0
54117
+ ],
54118
+ [
54119
+ "the",
54120
+ 0
54121
+ ],
54122
+ [
54123
+ "ordinal",
54124
+ 0
54125
+ ],
54126
+ [
54127
+ "paragraph_wp",
54128
+ 0
54129
+ ]
54130
+ ],
54131
+ "choose": {
54132
+ "index": 0,
54133
+ "increment": true
54134
+ }
54135
+ },
53852
54136
  {
53853
54137
  "context": [
53854
54138
  [
@@ -54227,10 +54511,10 @@
54227
54511
  ],
54228
54512
  "semantics": [
54229
54513
  {
54230
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:395"
54514
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:398"
54231
54515
  },
54232
54516
  {
54233
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:404"
54517
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:407"
54234
54518
  }
54235
54519
  ],
54236
54520
  "priorities": [
@@ -55003,6 +55287,34 @@
55003
55287
  0
55004
55288
  ]
55005
55289
  ],
55290
+ [
55291
+ [
55292
+ "is",
55293
+ 0
55294
+ ],
55295
+ [
55296
+ "list",
55297
+ 1
55298
+ ],
55299
+ [
55300
+ "unknown",
55301
+ 0
55302
+ ]
55303
+ ],
55304
+ [
55305
+ [
55306
+ "is",
55307
+ 0
55308
+ ],
55309
+ [
55310
+ "list",
55311
+ 1
55312
+ ],
55313
+ [
55314
+ "unknown",
55315
+ 0
55316
+ ]
55317
+ ],
55006
55318
  [
55007
55319
  [
55008
55320
  "is",
package/common/wp.js CHANGED
@@ -115,11 +115,11 @@ class API {
115
115
  }
116
116
  }
117
117
 
118
- const root = (id) => {
118
+ function root(id) {
119
119
  return id.split('_')[0]
120
120
  }
121
121
 
122
- const setUpdate = (isA, update, states) => {
122
+ function setUpdate(isA, update, states) {
123
123
  let color;
124
124
  const styles = []
125
125
  for (const state of states) {
@@ -146,10 +146,10 @@ const config = {
146
146
  name: 'wp',
147
147
  };
148
148
 
149
- const changeState = ({api, isA, context, toArray, element, state}) => {
149
+ function changeState({api, isA, context, toArray, element, state}) {
150
150
  let scope
151
151
 
152
- const getElement = (selector, update) => {
152
+ function getElement(selector, update) {
153
153
  const unit = root(selector.marker)
154
154
  const conditions = []
155
155
  let scope;
@@ -246,8 +246,11 @@ template = {
246
246
  { context: [["style_wp", 0], ["the", 0], ["letter_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 1], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
247
247
 
248
248
  { context: [["style_wp", 0], ["the", 0], ["ordinal", 0], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
249
+ { context: [["style_wp", 0], ["the", 0], ["ordinal", 1], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
249
250
  { context: [["style_wp", 1], ["the", 0], ["ordinal", 0], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
250
251
  { context: [["style_wp", 1], ["the", 0], ["ordinal", 1], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
252
+ { context: [["style_wp", 0], ["the", 0], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
253
+ { context: [["style_wp", 0], ["the", 0], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 1], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
251
254
  {
252
255
  context: [
253
256
  ["style_wp", 1], ["the", 0], ["ordinal", 1], ["word_wp", 1], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]
@@ -266,6 +269,7 @@ template = {
266
269
  },
267
270
 
268
271
  { context: [["style_wp", 1], ["the", 0], ["ordinal", 1], ["word_wp", 1], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["list", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
272
+ { context: [["style_wp", 0], ["the", 0], ["word_wp", 0], ["statefulElementInContext_wp", 0], ["the", 0], ["ordinal", 0], ["paragraph_wp", 0]], choose: { index: 0, increment: true } },
269
273
 
270
274
  { context: [["word_wp",1],["thatVerb",0],["wordComparison_wp",0],["unknown",0]], choose: 0 },
271
275
  { context: [["paragraph_wp",1],["thatVerb",0],["paragraphComparisonVerb_wp",0],["unknown",0]], choose: 0 },