tpmkms_4wp 9.5.1-beta.3 → 9.5.1-beta.31

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 (114) hide show
  1. package/common/animals.instance.json +21 -61
  2. package/common/asking.js +112 -102
  3. package/common/avatar.test.json +1001 -860
  4. package/common/can.instance.json +2174 -0
  5. package/common/can.js +254 -0
  6. package/common/can.test.json +51307 -0
  7. package/common/characters.js +3 -3
  8. package/common/colors.instance.json +10 -10
  9. package/common/comparable.instance.json +2 -2
  10. package/common/concept.js +19 -22
  11. package/common/concept.test.json +54 -40
  12. package/common/conjunction.js +13 -5
  13. package/common/conjunction.test.json +32 -42
  14. package/common/crew.instance.json +164 -150
  15. package/common/crew.js +1 -1
  16. package/common/currency.js +1 -1
  17. package/common/dateTimeSelectors.instance.json +2 -2
  18. package/common/dateTimeSelectors.js +3 -3
  19. package/common/dateTimeSelectors.test.json +76935 -35739
  20. package/common/dates.instance.json +3 -3
  21. package/common/dates.test.json +284 -287
  22. package/common/dialogues.js +41 -119
  23. package/common/dialogues.test.json +1171 -996
  24. package/common/dimension.instance.json +21374 -562
  25. package/common/dimension.js +145 -51
  26. package/common/dimension.test.json +8753 -3495
  27. package/common/drone.instance.json +23710 -0
  28. package/common/drone.js +429 -0
  29. package/common/drone.test.json +61113 -0
  30. package/common/edible.instance.json +23 -95
  31. package/common/emotions.instance.json +53 -80
  32. package/common/emotions.js +1 -1
  33. package/common/english_helpers.js +277 -67
  34. package/common/fastfood.instance.json +180 -372
  35. package/common/fastfood.js +4 -4
  36. package/common/fastfood.test.json +6970 -6829
  37. package/common/formulas.instance.json +1 -1
  38. package/common/gdefaults.js +94 -17
  39. package/common/help.js +11 -11
  40. package/common/help.test.json +65 -11
  41. package/common/helpers/concept.js +1 -1
  42. package/common/helpers/conjunction.js +54 -44
  43. package/common/helpers/dateTimeSelectors.js +2 -2
  44. package/common/helpers/dialogues.js +7 -2
  45. package/common/helpers/formulas.js +13 -11
  46. package/common/helpers/menus.js +12 -12
  47. package/common/helpers/meta.js +8 -8
  48. package/common/helpers/properties.js +104 -23
  49. package/common/helpers.js +114 -48
  50. package/common/hierarchy.js +6 -4
  51. package/common/kirk.instance.json +1 -1
  52. package/common/kirk.test.json +600 -424
  53. package/common/latin.instance.json +10 -10
  54. package/common/latin.js +5 -5
  55. package/common/length.instance.json +27612 -2890
  56. package/common/length.js +6 -1
  57. package/common/length.test.json +45315 -3925
  58. package/common/math.instance.json +20 -20
  59. package/common/math.js +45 -44
  60. package/common/menus.instance.json +6 -9
  61. package/common/menus.js +2 -9
  62. package/common/meta.js +50 -33
  63. package/common/nameable.js +13 -6
  64. package/common/nameable.test.json +436 -0
  65. package/common/numbers.js +1 -1
  66. package/common/ordering.instance.json +20 -30
  67. package/common/ordering.js +1 -1
  68. package/common/ordering.test.json +414 -426
  69. package/common/people.instance.json +82 -348
  70. package/common/people.js +1 -1
  71. package/common/people.test.json +952 -681
  72. package/common/pipboy.instance.json +16 -16
  73. package/common/pokemon.instance.json +8 -8
  74. package/common/pokemon.js +1 -1
  75. package/common/pressure.instance.json +3579 -1610
  76. package/common/pressure.test.json +433 -477
  77. package/common/properties.instance.json +6 -17
  78. package/common/properties.js +19 -6
  79. package/common/properties.test.json +8746 -6638
  80. package/common/rates.instance.json +59 -0
  81. package/common/rates.js +97 -0
  82. package/common/rates.test.json +27702 -0
  83. package/common/reminders.js +1 -1
  84. package/common/reminders.test.json +64635 -25787
  85. package/common/reports.instance.json +3 -3
  86. package/common/reports.js +18 -16
  87. package/common/scorekeeper.js +4 -4
  88. package/common/sdefaults.js +22 -2
  89. package/common/spock.instance.json +1 -1
  90. package/common/spock.test.json +606 -430
  91. package/common/stgame.js +1 -1
  92. package/common/stm.js +15 -4
  93. package/common/tell.js +1 -1
  94. package/common/temperature.instance.json +3786 -1705
  95. package/common/temperature.test.json +433 -477
  96. package/common/tester.js +3 -3
  97. package/common/time.instance.json +24762 -0
  98. package/common/time.js +137 -141
  99. package/common/time.test.json +31876 -3757
  100. package/common/tokenize.js +1 -1
  101. package/common/ui.instance.json +2 -5
  102. package/common/ui.js +1 -8
  103. package/common/weight.instance.json +10359 -4077
  104. package/common/weight.test.json +2601 -2263
  105. package/common/words.instance.json +9 -0
  106. package/common/words.js +53 -0
  107. package/common/words.test.json +2 -0
  108. package/common/wp.instance.json +336 -8
  109. package/common/wp.js +8 -4
  110. package/common/wp.test.json +7385 -6906
  111. package/main.js +4 -2
  112. package/package.json +18 -5
  113. package/common/listener.js +0 -50
  114. package/common/listener.test.json +0 -142
@@ -6862,5 +6862,441 @@
6862
6862
  ]
6863
6863
  }
6864
6864
  ]
6865
+ },
6866
+ {
6867
+ "associations": [
6868
+ [
6869
+ [
6870
+ "call",
6871
+ 0
6872
+ ],
6873
+ [
6874
+ "nameable",
6875
+ 0
6876
+ ],
6877
+ [
6878
+ "unknown",
6879
+ 0
6880
+ ]
6881
+ ]
6882
+ ],
6883
+ "config": {
6884
+ "words": {
6885
+ "hierarchy": [
6886
+ ],
6887
+ "literals": {
6888
+ "\"": [
6889
+ {
6890
+ "id": "doubleQuote",
6891
+ "initial": "{\"word\":\"\\\"\",\"depth\":\"+\"}",
6892
+ "word": "\""
6893
+ }
6894
+ ],
6895
+ "(": [
6896
+ {
6897
+ "id": "leftParenthesis",
6898
+ "initial": "{\"word\":\"(\",\"value\":\"(\",\"depth\":\"+\"}",
6899
+ "word": "("
6900
+ }
6901
+ ],
6902
+ ")": [
6903
+ {
6904
+ "id": "rightParenthesis",
6905
+ "initial": "{\"word\":\")\",\"value\":\")\",\"depth\":\"-\"}",
6906
+ "word": ")"
6907
+ }
6908
+ ],
6909
+ ",": [
6910
+ {
6911
+ "id": "comma",
6912
+ "initial": "{\"word\":\",\",\"value\":\",\",\"depth\":\"+\"}",
6913
+ "word": ","
6914
+ }
6915
+ ],
6916
+ ".": [
6917
+ {
6918
+ "id": "endOfSentence",
6919
+ "initial": "{ value: \"endOfSentence\"}"
6920
+ }
6921
+ ],
6922
+ ":": [
6923
+ {
6924
+ "id": "colon",
6925
+ "initial": "{ value: \"colon\"}"
6926
+ }
6927
+ ],
6928
+ "memorable": [
6929
+ {
6930
+ "id": "memorable",
6931
+ "initial": "{\"word\":\"memorable\",\"number\":\"one\"}",
6932
+ "word": "memorable"
6933
+ }
6934
+ ],
6935
+ "memorables": [
6936
+ {
6937
+ "id": "memorable",
6938
+ "initial": "{\"word\":\"memorables\",\"number\":\"many\"}",
6939
+ "word": "memorables"
6940
+ }
6941
+ ],
6942
+ "nameable": [
6943
+ {
6944
+ "id": "nameable",
6945
+ "initial": "{\"word\":\"nameable\",\"number\":\"one\"}",
6946
+ "word": "nameable"
6947
+ }
6948
+ ],
6949
+ "nameables": [
6950
+ {
6951
+ "id": "nameable",
6952
+ "initial": "{\"word\":\"nameables\",\"number\":\"many\"}",
6953
+ "word": "nameables"
6954
+ }
6955
+ ],
6956
+ "the": [
6957
+ {
6958
+ "id": "the",
6959
+ "initial": "{ modifiers: [] }"
6960
+ }
6961
+ ]
6962
+ },
6963
+ "patterns": [
6964
+ ]
6965
+ }
6966
+ },
6967
+ "contexts": [
6968
+ {
6969
+ "context_id": 2,
6970
+ "context_index": 1,
6971
+ "dead": true,
6972
+ "default": true,
6973
+ "level": 1,
6974
+ "marker": "call",
6975
+ "name": [
6976
+ {
6977
+ "dead": true,
6978
+ "level": 0,
6979
+ "marker": "unknown",
6980
+ "range": {
6981
+ "end": 17,
6982
+ "start": 14
6983
+ },
6984
+ "text": "fred",
6985
+ "unknown": true,
6986
+ "value": "fred",
6987
+ "word": "fred"
6988
+ }
6989
+ ],
6990
+ "nameable": {
6991
+ "dead": true,
6992
+ "level": 0,
6993
+ "marker": "nameable",
6994
+ "number": "one",
6995
+ "range": {
6996
+ "end": 12,
6997
+ "start": 5
6998
+ },
6999
+ "text": "nameable",
7000
+ "types": [
7001
+ "nameable"
7002
+ ],
7003
+ "word": "nameable"
7004
+ },
7005
+ "range": {
7006
+ "end": 17,
7007
+ "start": 0
7008
+ },
7009
+ "text": "call nameable fred",
7010
+ "topLevel": true,
7011
+ "touchedBy": [
7012
+ "nameable#call2"
7013
+ ],
7014
+ "value": "call",
7015
+ "word": "call"
7016
+ },
7017
+ {
7018
+ "context_id": 3,
7019
+ "isResponse": true,
7020
+ "marker": "verbatim",
7021
+ "topLevel": true,
7022
+ "verbatim": "nameable is not known"
7023
+ }
7024
+ ],
7025
+ "developerTest": false,
7026
+ "generatedParenthesized": [
7027
+ "",
7028
+ "(nameable is not known)"
7029
+ ],
7030
+ "metadata": {
7031
+ "opChoices": [
7032
+ {
7033
+ "counter": 1,
7034
+ "op": [
7035
+ "unknown",
7036
+ 0
7037
+ ],
7038
+ "ops": [
7039
+ [
7040
+ "call",
7041
+ 0
7042
+ ],
7043
+ [
7044
+ "unknown",
7045
+ 0
7046
+ ]
7047
+ ]
7048
+ },
7049
+ {
7050
+ "counter": 2,
7051
+ "op": [
7052
+ "call",
7053
+ 0
7054
+ ],
7055
+ "ops": [
7056
+ [
7057
+ "call",
7058
+ 0
7059
+ ]
7060
+ ]
7061
+ }
7062
+ ]
7063
+ },
7064
+ "objects": {
7065
+ "nameToUUID": {
7066
+ "articles": "articles2",
7067
+ "evaluate": "evaluate2",
7068
+ "gdefaults": "gdefaults2",
7069
+ "nameable": "nameable1",
7070
+ "pos": "pos2",
7071
+ "punctuation": "punctuation2",
7072
+ "stm": "stm2",
7073
+ "tokenize": "tokenize2",
7074
+ "words": "words2"
7075
+ },
7076
+ "namespaced": {
7077
+ "articles2": {
7078
+ "km": "articles2"
7079
+ },
7080
+ "evaluate2": {
7081
+ "km": "evaluate2"
7082
+ },
7083
+ "gdefaults2": {
7084
+ "km": "gdefaults2"
7085
+ },
7086
+ "nameable1": {
7087
+ "km": "nameable1",
7088
+ "named": {
7089
+ }
7090
+ },
7091
+ "pos2": {
7092
+ "km": "pos2"
7093
+ },
7094
+ "punctuation2": {
7095
+ "km": "punctuation2"
7096
+ },
7097
+ "stm2": {
7098
+ "km": "stm2",
7099
+ "mentioned": [
7100
+ ],
7101
+ "variables": {
7102
+ }
7103
+ },
7104
+ "tokenize2": {
7105
+ "km": "tokenize2"
7106
+ },
7107
+ "words2": {
7108
+ "km": "words2",
7109
+ "words": [
7110
+ ]
7111
+ }
7112
+ },
7113
+ "processed": [
7114
+ {
7115
+ "context": {
7116
+ "context_id": 3,
7117
+ "isResponse": true,
7118
+ "marker": "verbatim",
7119
+ "topLevel": true,
7120
+ "verbatim": "nameable is not known"
7121
+ },
7122
+ "generatedParenthesized": [
7123
+ ],
7124
+ "paraphrases": [
7125
+ ],
7126
+ "paraphrasesParenthesized": [
7127
+ ],
7128
+ "responses": [
7129
+ "",
7130
+ "nameable is not known"
7131
+ ]
7132
+ },
7133
+ {
7134
+ "context": {
7135
+ "context_id": 2,
7136
+ "context_index": 1,
7137
+ "dead": true,
7138
+ "default": true,
7139
+ "level": 1,
7140
+ "marker": "call",
7141
+ "name": [
7142
+ {
7143
+ "dead": true,
7144
+ "level": 0,
7145
+ "marker": "unknown",
7146
+ "range": {
7147
+ "end": 17,
7148
+ "start": 14
7149
+ },
7150
+ "text": "fred",
7151
+ "unknown": true,
7152
+ "value": "fred",
7153
+ "word": "fred"
7154
+ }
7155
+ ],
7156
+ "nameable": {
7157
+ "dead": true,
7158
+ "level": 0,
7159
+ "marker": "nameable",
7160
+ "number": "one",
7161
+ "range": {
7162
+ "end": 12,
7163
+ "start": 5
7164
+ },
7165
+ "text": "nameable",
7166
+ "types": [
7167
+ "nameable"
7168
+ ],
7169
+ "word": "nameable"
7170
+ },
7171
+ "range": {
7172
+ "end": 17,
7173
+ "start": 0
7174
+ },
7175
+ "text": "call nameable fred",
7176
+ "topLevel": true,
7177
+ "touchedBy": [
7178
+ "nameable#call2"
7179
+ ],
7180
+ "value": "call",
7181
+ "word": "call"
7182
+ },
7183
+ "generatedParenthesized": [
7184
+ ],
7185
+ "paraphrases": [
7186
+ ],
7187
+ "paraphrasesParenthesized": [
7188
+ ],
7189
+ "responses": [
7190
+ "",
7191
+ "nameable is not known"
7192
+ ]
7193
+ }
7194
+ ]
7195
+ },
7196
+ "paraphrases": [
7197
+ "call nameable fred",
7198
+ "nameable is not known"
7199
+ ],
7200
+ "paraphrasesParenthesized": [
7201
+ "(call (nameable) (fred))",
7202
+ "(nameable is not known)"
7203
+ ],
7204
+ "query": "call nameable fred",
7205
+ "responses": [
7206
+ "",
7207
+ "nameable is not known"
7208
+ ],
7209
+ "summaries": [
7210
+ {
7211
+ "length": 1,
7212
+ "summaries": [
7213
+ {
7214
+ "counter": 1,
7215
+ "operators": [
7216
+ {
7217
+ "marker": [
7218
+ "call",
7219
+ 0
7220
+ ],
7221
+ "range": {
7222
+ "end": 3,
7223
+ "start": 0
7224
+ }
7225
+ },
7226
+ {
7227
+ "marker": [
7228
+ "nameable",
7229
+ 0
7230
+ ],
7231
+ "range": {
7232
+ "end": 12,
7233
+ "start": 5
7234
+ }
7235
+ },
7236
+ {
7237
+ "marker": [
7238
+ "unknown",
7239
+ 0
7240
+ ],
7241
+ "range": {
7242
+ "end": 17,
7243
+ "start": 14
7244
+ }
7245
+ }
7246
+ ]
7247
+ },
7248
+ {
7249
+ "counter": 2,
7250
+ "operators": [
7251
+ {
7252
+ "marker": [
7253
+ "call",
7254
+ 0
7255
+ ],
7256
+ "range": {
7257
+ "end": 3,
7258
+ "start": 0
7259
+ }
7260
+ },
7261
+ {
7262
+ "marker": [
7263
+ "nameable",
7264
+ 0
7265
+ ],
7266
+ "range": {
7267
+ "end": 12,
7268
+ "start": 5
7269
+ }
7270
+ },
7271
+ {
7272
+ "marker": [
7273
+ "unknown",
7274
+ 0
7275
+ ],
7276
+ "range": {
7277
+ "end": 17,
7278
+ "start": 14
7279
+ }
7280
+ }
7281
+ ]
7282
+ },
7283
+ {
7284
+ "counter": 3,
7285
+ "operators": [
7286
+ {
7287
+ "marker": [
7288
+ "call",
7289
+ 1
7290
+ ],
7291
+ "range": {
7292
+ "end": 17,
7293
+ "start": 0
7294
+ }
7295
+ }
7296
+ ]
7297
+ }
7298
+ ]
7299
+ }
7300
+ ]
6865
7301
  }
6866
7302
  ]
package/common/numbers.js CHANGED
@@ -114,7 +114,7 @@ knowledgeModule( {
114
114
  checks: {
115
115
  context: [
116
116
  defaultContextCheck({ marker: 'number', exported: true, extra: ['instance'] }),
117
- defaultContextCheck({ marker: 'integer', exported: true, extra: ['instance'] }),
117
+ defaultContextCheck({ match: ({isA, context}) => isA(context.marker, 'integer'), exported: true, extra: ['instance'] }),
118
118
  defaultContextCheck()
119
119
  ],
120
120
  }
@@ -594,7 +594,7 @@
594
594
  "word": "wants",
595
595
  "range": {
596
596
  "start": 0,
597
- "end": 37
597
+ "end": 4
598
598
  },
599
599
  "dead": true,
600
600
  "types": [
@@ -2197,6 +2197,7 @@
2197
2197
  "value": [
2198
2198
  {
2199
2199
  "value": "like",
2200
+ "isVerb": true,
2200
2201
  "number": "one",
2201
2202
  "text": "x likes y",
2202
2203
  "marker": "like",
@@ -2207,12 +2208,7 @@
2207
2208
  },
2208
2209
  "do": {
2209
2210
  "left": "liker",
2210
- "right": "likee",
2211
- "range": {
2212
- "start": 3,
2213
- "end": 11
2214
- },
2215
- "text": "ikes y"
2211
+ "right": "likee"
2216
2212
  },
2217
2213
  "liker": {
2218
2214
  "value": "x",
@@ -2248,17 +2244,17 @@
2248
2244
  },
2249
2245
  "operator": {
2250
2246
  "value": "like",
2247
+ "isVerb": true,
2251
2248
  "number": "one",
2252
2249
  "text": "likes",
2253
2250
  "marker": "like",
2254
2251
  "word": "likes",
2255
2252
  "range": {
2256
- "start": 3,
2257
- "end": 11
2253
+ "start": 5,
2254
+ "end": 9
2258
2255
  },
2259
2256
  "evaluateWord": true,
2260
2257
  "imperative": false,
2261
- "isVerb": true,
2262
2258
  "level": 0
2263
2259
  },
2264
2260
  "unflatten": [
@@ -2274,7 +2270,8 @@
2274
2270
  "property": "liker"
2275
2271
  },
2276
2272
  {
2277
- "property": "operator"
2273
+ "property": "operator",
2274
+ "number": "liker"
2278
2275
  },
2279
2276
  {
2280
2277
  "property": "likee"
@@ -2288,6 +2285,7 @@
2288
2285
  },
2289
2286
  {
2290
2287
  "value": "love",
2288
+ "isVerb": true,
2291
2289
  "number": "one",
2292
2290
  "text": "x loves y",
2293
2291
  "marker": "love",
@@ -2298,12 +2296,7 @@
2298
2296
  },
2299
2297
  "do": {
2300
2298
  "left": "lover",
2301
- "right": "lovee",
2302
- "range": {
2303
- "start": 16,
2304
- "end": 24
2305
- },
2306
- "text": ""
2299
+ "right": "lovee"
2307
2300
  },
2308
2301
  "lover": {
2309
2302
  "value": "x",
@@ -2339,17 +2332,17 @@
2339
2332
  },
2340
2333
  "operator": {
2341
2334
  "value": "love",
2335
+ "isVerb": true,
2342
2336
  "number": "one",
2343
2337
  "text": "loves",
2344
2338
  "marker": "love",
2345
2339
  "word": "loves",
2346
2340
  "range": {
2347
- "start": 16,
2348
- "end": 24
2341
+ "start": 18,
2342
+ "end": 22
2349
2343
  },
2350
2344
  "evaluateWord": true,
2351
2345
  "imperative": false,
2352
- "isVerb": true,
2353
2346
  "level": 0
2354
2347
  },
2355
2348
  "unflatten": [
@@ -2365,7 +2358,8 @@
2365
2358
  "property": "lover"
2366
2359
  },
2367
2360
  {
2368
- "property": "operator"
2361
+ "property": "operator",
2362
+ "number": "lover"
2369
2363
  },
2370
2364
  {
2371
2365
  "property": "lovee"
@@ -2395,12 +2389,7 @@
2395
2389
  },
2396
2390
  "do": {
2397
2391
  "left": "wanter",
2398
- "right": "wantee",
2399
- "range": {
2400
- "start": 31,
2401
- "end": 39
2402
- },
2403
- "text": ""
2392
+ "right": "wantee"
2404
2393
  },
2405
2394
  "wanter": {
2406
2395
  "value": "x",
@@ -2440,8 +2429,8 @@
2440
2429
  "marker": "want",
2441
2430
  "word": "wants",
2442
2431
  "range": {
2443
- "start": 31,
2444
- "end": 39
2432
+ "start": 33,
2433
+ "end": 37
2445
2434
  },
2446
2435
  "evaluateWord": true,
2447
2436
  "imperative": false,
@@ -2462,7 +2451,8 @@
2462
2451
  "property": "wanter"
2463
2452
  },
2464
2453
  {
2465
- "property": "operator"
2454
+ "property": "operator",
2455
+ "number": "wanter"
2466
2456
  },
2467
2457
  {
2468
2458
  "property": "wantee"
@@ -32,7 +32,7 @@ const api = new API();
32
32
 
33
33
  if a likes b then a wants b
34
34
  */
35
- const initializer = ({config, km}) => {
35
+ function initializer({config, km}) {
36
36
  const oapi = km('ordering').api
37
37
  oapi.createOrdering({ name: 'preference', categories: [ ['love', 'like'], ['hate', 'dislike'] ], ordering: [ ['love', 'like'], ['like', 'dislike'], ['dislike', 'hate'] ] })
38
38
  const papi = km('properties').api