tpmkms 9.8.0 → 9.9.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 (95) hide show
  1. package/common/actions.instance.json +10 -8
  2. package/common/actions.js +13 -11
  3. package/common/angle.instance.json +25 -17
  4. package/common/animals.instance.json +54 -28
  5. package/common/askfor.instance.json +89 -192
  6. package/common/askfor.js +49 -12
  7. package/common/asking.js +13 -5
  8. package/common/avatar.js +3 -3
  9. package/common/can.instance.json +32 -20
  10. package/common/can.js +2 -2
  11. package/common/colors.instance.json +44 -16
  12. package/common/colors.js +1 -1
  13. package/common/comparable.instance.json +25 -22
  14. package/common/compass.instance.json +9 -3
  15. package/common/concept.instance.json +14 -6
  16. package/common/concept.js +2 -0
  17. package/common/conjunction.js +17 -9
  18. package/common/control.js +10 -18
  19. package/common/countable.js +4 -3
  20. package/common/crew.instance.json +95 -27
  21. package/common/dateTimeSelectors.instance.json +4 -4
  22. package/common/dateTimeSelectors.js +4 -7
  23. package/common/dates.instance.json +52 -28
  24. package/common/dates.js +16 -11
  25. package/common/debug.instance.json +48 -0
  26. package/common/debug.js +50 -0
  27. package/common/debug.test.json +1 -0
  28. package/common/dialogues.js +126 -70
  29. package/common/dimension.instance.json +239 -495
  30. package/common/dimension.js +51 -9
  31. package/common/drone.instance.json +395 -84
  32. package/common/drone.js +43 -50
  33. package/common/drone_v1.instance.json +36 -12
  34. package/common/drone_v1.js +14 -9
  35. package/common/edible.instance.json +96 -32
  36. package/common/emotions.instance.json +15 -1
  37. package/common/evaluate.js +10 -13
  38. package/common/fastfood.instance.json +282 -100
  39. package/common/fastfood.js +30 -15
  40. package/common/formulas.instance.json +162 -24
  41. package/common/formulas.js +18 -9
  42. package/common/gdefaults.js +20 -96
  43. package/common/helpers/concept.js +2 -9
  44. package/common/helpers/conjunction.js +11 -1
  45. package/common/helpers/dialogues.js +48 -24
  46. package/common/helpers/gdefaults.js +15 -5
  47. package/common/helpers/properties.js +125 -326
  48. package/common/helpers.js +28 -58
  49. package/common/hierarchy.js +71 -41
  50. package/common/kirk.instance.json +3 -1
  51. package/common/latin.instance.json +10 -10
  52. package/common/latin.js +5 -5
  53. package/common/length.instance.json +247 -61
  54. package/common/math.instance.json +144 -5
  55. package/common/math.js +18 -5
  56. package/common/menus.instance.json +29 -11
  57. package/common/menus.js +8 -5
  58. package/common/meta.js +14 -13
  59. package/common/nameable.js +9 -5
  60. package/common/numbers.instance.json +5 -3
  61. package/common/numbers.js +28 -28
  62. package/common/ordering.instance.json +53 -4
  63. package/common/ordinals.js +25 -25
  64. package/common/people.instance.json +66 -12
  65. package/common/percentages.js +4 -2
  66. package/common/pipboy.instance.json +89 -44
  67. package/common/pipboy.js +21 -14
  68. package/common/pokemon.instance.json +39 -13
  69. package/common/pressure.instance.json +14 -6
  70. package/common/properties.instance.json +2370 -511
  71. package/common/properties.js +496 -78
  72. package/common/punctuation.js +1 -0
  73. package/common/rates.instance.json +2 -2
  74. package/common/rates.js +3 -3
  75. package/common/reminders.instance.json +16 -0
  76. package/common/reminders.js +24 -20
  77. package/common/reports.instance.json +11 -12
  78. package/common/reports.js +12 -12
  79. package/common/scorekeeper.js +20 -10
  80. package/common/sdefaults.js +30 -9
  81. package/common/spock.instance.json +3 -1
  82. package/common/stm.js +16 -21
  83. package/common/temperature.instance.json +19 -11
  84. package/common/testing.js +2 -2
  85. package/common/time.instance.json +104 -47
  86. package/common/time.js +9 -8
  87. package/common/ui.instance.json +4 -2
  88. package/common/ui.js +5 -5
  89. package/common/weight.instance.json +86 -21
  90. package/common/weight.js +5 -1
  91. package/common/words.js +113 -2
  92. package/common/wp.instance.json +125 -18
  93. package/common/wp.js +6 -2
  94. package/main.js +2 -0
  95. package/package.json +7 -3
@@ -27,6 +27,42 @@
27
27
  ],
28
28
  "associations": {
29
29
  "positive": [
30
+ {
31
+ "context": [
32
+ [
33
+ "style_wp",
34
+ 0
35
+ ],
36
+ [
37
+ "the",
38
+ 0
39
+ ],
40
+ [
41
+ "letter_wp",
42
+ 0
43
+ ],
44
+ [
45
+ "statefulElementInContext_wp",
46
+ 0
47
+ ],
48
+ [
49
+ "the",
50
+ 0
51
+ ],
52
+ [
53
+ "ordinal",
54
+ 1
55
+ ],
56
+ [
57
+ "word_wp",
58
+ 0
59
+ ]
60
+ ],
61
+ "choose": {
62
+ "index": 0,
63
+ "increment": true
64
+ }
65
+ },
30
66
  {
31
67
  "context": [
32
68
  [
@@ -793,6 +829,7 @@
793
829
  },
794
830
  {
795
831
  "id": "statefulElementInContext_wp",
832
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:320",
796
833
  "parents": [
797
834
  "preposition"
798
835
  ],
@@ -804,6 +841,7 @@
804
841
  },
805
842
  {
806
843
  "id": "applyStyle_wp",
844
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:346",
807
845
  "parents": [
808
846
  "verb"
809
847
  ],
@@ -894,6 +932,7 @@
894
932
  },
895
933
  {
896
934
  "id": "changeState_wp",
935
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:431",
897
936
  "parents": [
898
937
  "verb"
899
938
  ],
@@ -920,11 +959,11 @@
920
959
  ],
921
960
  "semantics": [
922
961
  {
923
- "match": "({context, isA}) => isA(context, 'style_wp') && !context.same && !context.isResponse && !context.evaluate",
962
+ "match": "({context, isA, debug}) => isA(context, 'style_wp') && !context.same && !context.isResponse",
924
963
  "apply": "({context, api, isA, toArray}) => {\n const update = { scope: 'selection' }\n setUpdate(isA, update, toArray(context))\n api.changeState(update)\n }"
925
964
  },
926
965
  {
927
- "match": "({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse && !context.evaluate",
966
+ "match": "({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse",
928
967
  "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 }"
929
968
  }
930
969
  ],
@@ -1228,7 +1267,6 @@
1228
1267
  "level": 1,
1229
1268
  "context_index": 1,
1230
1269
  "topLevel": true,
1231
- "context_id": 2,
1232
1270
  "touchedBy": [
1233
1271
  "wp#call2"
1234
1272
  ]
@@ -1319,6 +1357,9 @@
1319
1357
  }
1320
1358
  ],
1321
1359
  "learned_contextual_priorities": [],
1360
+ "explain_associations_details": [
1361
+ null
1362
+ ],
1322
1363
  "query": "setidsuffix _wp",
1323
1364
  "key": {
1324
1365
  "query": "setidsuffix _wp"
@@ -1695,7 +1736,6 @@
1695
1736
  "level": 2,
1696
1737
  "context_index": 1,
1697
1738
  "topLevel": true,
1698
- "context_id": 2,
1699
1739
  "touchedBy": [
1700
1740
  "wp#call2"
1701
1741
  ]
@@ -2356,6 +2396,9 @@
2356
2396
  }
2357
2397
  ],
2358
2398
  "learned_contextual_priorities": [],
2399
+ "explain_associations_details": [
2400
+ null
2401
+ ],
2359
2402
  "query": "words are countable distributable orderable textContainers and statefulElements",
2360
2403
  "key": {
2361
2404
  "query": "words are countable distributable orderable textContainers and statefulElements"
@@ -2619,7 +2662,6 @@
2619
2662
  "level": 2,
2620
2663
  "context_index": 1,
2621
2664
  "topLevel": true,
2622
- "context_id": 2,
2623
2665
  "touchedBy": [
2624
2666
  "wp#call2"
2625
2667
  ]
@@ -3035,6 +3077,9 @@
3035
3077
  }
3036
3078
  ],
3037
3079
  "learned_contextual_priorities": [],
3080
+ "explain_associations_details": [
3081
+ null
3082
+ ],
3038
3083
  "query": "characters are countable distributable orderable and statefulElements",
3039
3084
  "key": {
3040
3085
  "query": "characters are countable distributable orderable and statefulElements"
@@ -3363,7 +3408,6 @@
3363
3408
  "level": 2,
3364
3409
  "context_index": 1,
3365
3410
  "topLevel": true,
3366
- "context_id": 2,
3367
3411
  "touchedBy": [
3368
3412
  "wp#call2"
3369
3413
  ]
@@ -3959,6 +4003,9 @@
3959
4003
  }
3960
4004
  ],
3961
4005
  "learned_contextual_priorities": [],
4006
+ "explain_associations_details": [
4007
+ null
4008
+ ],
3962
4009
  "query": "paragraphs are countable distributable orderable textContainers and statefulElement",
3963
4010
  "key": {
3964
4011
  "query": "paragraphs are countable distributable orderable textContainers and statefulElement"
@@ -4124,7 +4171,6 @@
4124
4171
  "level": 2,
4125
4172
  "context_index": 1,
4126
4173
  "topLevel": true,
4127
- "context_id": 2,
4128
4174
  "touchedBy": [
4129
4175
  "wp#call2"
4130
4176
  ]
@@ -4350,6 +4396,9 @@
4350
4396
  }
4351
4397
  ],
4352
4398
  "learned_contextual_priorities": [],
4399
+ "explain_associations_details": [
4400
+ null
4401
+ ],
4353
4402
  "query": "text is a statefulElement",
4354
4403
  "key": {
4355
4404
  "query": "text is a statefulElement"
@@ -4453,7 +4502,6 @@
4453
4502
  "level": 1,
4454
4503
  "context_index": 1,
4455
4504
  "topLevel": true,
4456
- "context_id": 2,
4457
4505
  "touchedBy": [
4458
4506
  "wp#call2"
4459
4507
  ]
@@ -4599,6 +4647,9 @@
4599
4647
  }
4600
4648
  ],
4601
4649
  "learned_contextual_priorities": [],
4650
+ "explain_associations_details": [
4651
+ null
4652
+ ],
4602
4653
  "query": "letters means characters",
4603
4654
  "key": {
4604
4655
  "query": "letters means characters"
@@ -5390,7 +5441,6 @@
5390
5441
  "level": 2,
5391
5442
  "context_index": 1,
5392
5443
  "topLevel": true,
5393
- "context_id": 2,
5394
5444
  "touchedBy": [
5395
5445
  "wp#call2"
5396
5446
  ]
@@ -7201,6 +7251,9 @@
7201
7251
  }
7202
7252
  ],
7203
7253
  "learned_contextual_priorities": [],
7254
+ "explain_associations_details": [
7255
+ null
7256
+ ],
7204
7257
  "query": "bold, italic, code, capitalize, lowercase and underline are styles",
7205
7258
  "key": {
7206
7259
  "query": "bold, italic, code, capitalize, lowercase and underline are styles"
@@ -7304,7 +7357,6 @@
7304
7357
  "level": 1,
7305
7358
  "context_index": 1,
7306
7359
  "topLevel": true,
7307
- "context_id": 2,
7308
7360
  "touchedBy": [
7309
7361
  "wp#call2"
7310
7362
  ]
@@ -7450,6 +7502,9 @@
7450
7502
  }
7451
7503
  ],
7452
7504
  "learned_contextual_priorities": [],
7505
+ "explain_associations_details": [
7506
+ null
7507
+ ],
7453
7508
  "query": "underlined means underline",
7454
7509
  "key": {
7455
7510
  "query": "underlined means underline"
@@ -7553,7 +7608,6 @@
7553
7608
  "level": 1,
7554
7609
  "context_index": 1,
7555
7610
  "topLevel": true,
7556
- "context_id": 2,
7557
7611
  "touchedBy": [
7558
7612
  "wp#call2"
7559
7613
  ]
@@ -7699,6 +7753,9 @@
7699
7753
  }
7700
7754
  ],
7701
7755
  "learned_contextual_priorities": [],
7756
+ "explain_associations_details": [
7757
+ null
7758
+ ],
7702
7759
  "query": "capitalized means capitalize",
7703
7760
  "key": {
7704
7761
  "query": "capitalized means capitalize"
@@ -7802,7 +7859,6 @@
7802
7859
  "level": 1,
7803
7860
  "context_index": 1,
7804
7861
  "topLevel": true,
7805
- "context_id": 2,
7806
7862
  "touchedBy": [
7807
7863
  "wp#call2"
7808
7864
  ]
@@ -7948,6 +8004,9 @@
7948
8004
  }
7949
8005
  ],
7950
8006
  "learned_contextual_priorities": [],
8007
+ "explain_associations_details": [
8008
+ null
8009
+ ],
7951
8010
  "query": "uppercase means capitalize",
7952
8011
  "key": {
7953
8012
  "query": "uppercase means capitalize"
@@ -8051,7 +8110,6 @@
8051
8110
  "level": 1,
8052
8111
  "context_index": 1,
8053
8112
  "topLevel": true,
8054
- "context_id": 2,
8055
8113
  "touchedBy": [
8056
8114
  "wp#call2"
8057
8115
  ]
@@ -8197,6 +8255,9 @@
8197
8255
  }
8198
8256
  ],
8199
8257
  "learned_contextual_priorities": [],
8258
+ "explain_associations_details": [
8259
+ null
8260
+ ],
8200
8261
  "query": "italicize means italic",
8201
8262
  "key": {
8202
8263
  "query": "italicize means italic"
@@ -8300,7 +8361,6 @@
8300
8361
  "level": 1,
8301
8362
  "context_index": 1,
8302
8363
  "topLevel": true,
8303
- "context_id": 2,
8304
8364
  "touchedBy": [
8305
8365
  "wp#call2"
8306
8366
  ]
@@ -8446,6 +8506,9 @@
8446
8506
  }
8447
8507
  ],
8448
8508
  "learned_contextual_priorities": [],
8509
+ "explain_associations_details": [
8510
+ null
8511
+ ],
8449
8512
  "query": "italicized means italic",
8450
8513
  "key": {
8451
8514
  "query": "italicized means italic"
@@ -9198,7 +9261,6 @@
9198
9261
  "level": 2,
9199
9262
  "context_index": 1,
9200
9263
  "topLevel": true,
9201
- "context_id": 2,
9202
9264
  "touchedBy": [
9203
9265
  "wp#call2"
9204
9266
  ]
@@ -10874,6 +10936,9 @@
10874
10936
  }
10875
10937
  ],
10876
10938
  "learned_contextual_priorities": [],
10939
+ "explain_associations_details": [
10940
+ null
10941
+ ],
10877
10942
  "query": "uppercased, lowercased, capitalized, bolded, italicized and underlined are styleModifiers",
10878
10943
  "key": {
10879
10944
  "query": "uppercased, lowercased, capitalized, bolded, italicized and underlined are styleModifiers"
@@ -10900,7 +10965,6 @@
10900
10965
  "level": 0,
10901
10966
  "context_index": 1,
10902
10967
  "topLevel": true,
10903
- "context_id": 2,
10904
10968
  "touchedBy": [
10905
10969
  "wp#call2"
10906
10970
  ]
@@ -10941,6 +11005,9 @@
10941
11005
  }
10942
11006
  ],
10943
11007
  "learned_contextual_priorities": [],
11008
+ "explain_associations_details": [
11009
+ null
11010
+ ],
10944
11011
  "query": "resetIdSuffix",
10945
11012
  "key": {
10946
11013
  "query": "resetIdSuffix"
@@ -10960,6 +11027,42 @@
10960
11027
  ],
10961
11028
  "associations": {
10962
11029
  "positive": [
11030
+ {
11031
+ "context": [
11032
+ [
11033
+ "style_wp",
11034
+ 0
11035
+ ],
11036
+ [
11037
+ "the",
11038
+ 0
11039
+ ],
11040
+ [
11041
+ "letter_wp",
11042
+ 0
11043
+ ],
11044
+ [
11045
+ "statefulElementInContext_wp",
11046
+ 0
11047
+ ],
11048
+ [
11049
+ "the",
11050
+ 0
11051
+ ],
11052
+ [
11053
+ "ordinal",
11054
+ 1
11055
+ ],
11056
+ [
11057
+ "word_wp",
11058
+ 0
11059
+ ]
11060
+ ],
11061
+ "choose": {
11062
+ "index": 0,
11063
+ "increment": true
11064
+ }
11065
+ },
10963
11066
  {
10964
11067
  "context": [
10965
11068
  [
@@ -11726,6 +11829,7 @@
11726
11829
  },
11727
11830
  {
11728
11831
  "id": "statefulElementInContext_wp",
11832
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:320",
11729
11833
  "parents": [
11730
11834
  "preposition"
11731
11835
  ],
@@ -11736,6 +11840,7 @@
11736
11840
  },
11737
11841
  {
11738
11842
  "id": "applyStyle_wp",
11843
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:346",
11739
11844
  "parents": [
11740
11845
  "verb"
11741
11846
  ],
@@ -11825,6 +11930,7 @@
11825
11930
  },
11826
11931
  {
11827
11932
  "id": "changeState_wp",
11933
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:431",
11828
11934
  "parents": [
11829
11935
  "verb"
11830
11936
  ],
@@ -11850,10 +11956,11 @@
11850
11956
  ],
11851
11957
  "semantics": [
11852
11958
  {
11853
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:451"
11959
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:455",
11960
+ "priority": -1
11854
11961
  },
11855
11962
  {
11856
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:460"
11963
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:465"
11857
11964
  }
11858
11965
  ],
11859
11966
  "priorities": [
package/common/wp.js CHANGED
@@ -317,6 +317,7 @@ template = {
317
317
  },
318
318
  {
319
319
  id: 'statefulElementInContext_wp',
320
+ where: where(),
320
321
  parents: ['preposition'],
321
322
  optional: {
322
323
  '-1': "{ ...operator, invisible: true }",
@@ -342,6 +343,7 @@ template = {
342
343
  },
343
344
  {
344
345
  id: 'applyStyle_wp',
346
+ where: where(),
345
347
  parents: ['verb'],
346
348
  convolution: true,
347
349
  bridge: `{
@@ -426,6 +428,7 @@ template = {
426
428
  },
427
429
  {
428
430
  id: 'changeState_wp',
431
+ where: where(),
429
432
  parents: ['verb'],
430
433
  bridge: `{
431
434
  ...next(operator),
@@ -450,7 +453,8 @@ template = {
450
453
  semantics: [
451
454
  {
452
455
  where: where(),
453
- match: ({context, isA}) => isA(context, 'style_wp') && !context.same && !context.isResponse && !context.evaluate,
456
+ priority: -1,
457
+ match: ({context, isA, debug}) => isA(context, 'style_wp') && !context.same && !context.isResponse,
454
458
  apply: ({context, api, isA, toArray}) => {
455
459
  const update = { scope: 'selection' }
456
460
  setUpdate(isA, update, toArray(context))
@@ -459,7 +463,7 @@ template = {
459
463
  },
460
464
  {
461
465
  where: where(),
462
- match: ({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse && !context.evaluate,
466
+ match: ({context, isA}) => isA(context, 'statefulElement_wp') && !context.same && !context.isResponse,
463
467
  apply: ({context, api, isA, toArray}) => {
464
468
  const unit = root(context.marker)
465
469
  let scope
package/main.js CHANGED
@@ -31,6 +31,7 @@ const control = require('./common/control')
31
31
  const tokenize = require('./common/tokenize')
32
32
  const testing = require('./common/testing')
33
33
  const drone_v1 = require('./common/drone_v1')
34
+ const debug = require('./common/debug')
34
35
  const actions = require('./common/actions')
35
36
  const articles = require('./common/articles')
36
37
  const nameable = require('./common/nameable')
@@ -106,6 +107,7 @@ module.exports = {
106
107
  tokenize,
107
108
  testing,
108
109
  drone_v1,
110
+ debug,
109
111
  actions,
110
112
  articles,
111
113
  nameable,
package/package.json CHANGED
@@ -62,7 +62,8 @@
62
62
  "control",
63
63
  "tokenize",
64
64
  "testing",
65
- "drone_v1"
65
+ "drone_v1",
66
+ "debug"
66
67
  ]
67
68
  },
68
69
  {
@@ -215,6 +216,9 @@
215
216
  "common/dates.instance.json",
216
217
  "common/dates.js",
217
218
  "common/dates.test.json",
219
+ "common/debug.instance.json",
220
+ "common/debug.js",
221
+ "common/debug.test.json",
218
222
  "common/dialogues.js",
219
223
  "common/dialogues.test.json",
220
224
  "common/dimension.instance.json",
@@ -398,8 +402,8 @@
398
402
  "scriptjs": "^2.5.9",
399
403
  "table": "^6.7.1",
400
404
  "uuid": "^9.0.0",
401
- "theprogrammablemind": "9.8.0"
405
+ "theprogrammablemind": "9.9.0"
402
406
  },
403
- "version": "9.8.0",
407
+ "version": "9.9.0",
404
408
  "license": "UNLICENSED"
405
409
  }