tpmkms_4wp 9.5.1 → 9.6.0-beta.1

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 (135) hide show
  1. package/common/animals.instance.json +151 -61
  2. package/common/animals.js +3 -5
  3. package/common/asking.js +116 -106
  4. package/common/avatar.test.json +1001 -860
  5. package/common/can.instance.json +2194 -0
  6. package/common/can.js +251 -0
  7. package/common/can.test.json +51307 -0
  8. package/common/characters.js +5 -5
  9. package/common/colors.instance.json +152 -12
  10. package/common/colors.js +3 -6
  11. package/common/comparable.instance.json +33 -3
  12. package/common/comparable.js +3 -6
  13. package/common/concept.js +25 -27
  14. package/common/concept.test.json +180 -144
  15. package/common/conjunction.js +13 -5
  16. package/common/conjunction.test.json +32 -42
  17. package/common/crew.instance.json +433 -173
  18. package/common/crew.js +4 -7
  19. package/common/crew.test.json +4148 -3324
  20. package/common/currency.js +1 -1
  21. package/common/dateTimeSelectors.instance.json +2 -2
  22. package/common/dateTimeSelectors.js +6 -9
  23. package/common/dateTimeSelectors.test.json +76935 -35739
  24. package/common/dates.instance.json +53 -3
  25. package/common/dates.js +3 -6
  26. package/common/dates.test.json +284 -287
  27. package/common/dialogues.js +43 -122
  28. package/common/dialogues.test.json +1248 -1152
  29. package/common/dimension.instance.json +21493 -561
  30. package/common/dimension.js +150 -55
  31. package/common/dimension.test.json +10979 -4625
  32. package/common/drone.instance.json +24709 -0
  33. package/common/drone.js +662 -0
  34. package/common/drone.test.json +30522 -0
  35. package/common/drone_v1.instance.json +24703 -0
  36. package/common/drone_v1.js +596 -0
  37. package/common/drone_v1.test.json +115538 -0
  38. package/common/edible.instance.json +388 -32
  39. package/common/edible.js +3 -5
  40. package/common/emotions.instance.json +85 -76
  41. package/common/emotions.js +4 -7
  42. package/common/emotions.test.json +242 -174
  43. package/common/english_helpers.js +336 -0
  44. package/common/errors.js +6 -6
  45. package/common/evaluate.js +2 -2
  46. package/common/events.js +8 -8
  47. package/common/fastfood.instance.json +1071 -393
  48. package/common/fastfood.js +14 -16
  49. package/common/fastfood.test.json +6970 -6829
  50. package/common/formulas.instance.json +11 -1
  51. package/common/formulas.js +3 -2
  52. package/common/gdefaults.js +111 -17
  53. package/common/help.js +12 -12
  54. package/common/help.test.json +65 -11
  55. package/common/helpers/concept.js +1 -1
  56. package/common/helpers/conjunction.js +54 -44
  57. package/common/helpers/dateTimeSelectors.js +2 -2
  58. package/common/helpers/dialogues.js +10 -2
  59. package/common/helpers/formulas.js +13 -11
  60. package/common/helpers/menus.js +12 -12
  61. package/common/helpers/meta.js +9 -9
  62. package/common/helpers/properties.js +186 -64
  63. package/common/helpers.js +167 -48
  64. package/common/hierarchy.js +12 -10
  65. package/common/kirk.instance.json +11 -1
  66. package/common/kirk.js +4 -6
  67. package/common/kirk.test.json +600 -424
  68. package/common/latin.instance.json +12 -12
  69. package/common/latin.js +12 -14
  70. package/common/length.instance.json +34660 -3158
  71. package/common/length.js +11 -6
  72. package/common/length.test.json +54357 -2557
  73. package/common/math.instance.json +39 -29
  74. package/common/math.js +49 -47
  75. package/common/menus.instance.json +77 -10
  76. package/common/menus.js +4 -13
  77. package/common/meta.js +80 -65
  78. package/common/nameable.js +36 -22
  79. package/common/nameable.test.json +436 -0
  80. package/common/numbers.js +1 -1
  81. package/common/ordering.instance.json +107 -19
  82. package/common/ordering.js +4 -6
  83. package/common/ordering.test.json +835 -417
  84. package/common/people.instance.json +176 -348
  85. package/common/people.js +9 -9
  86. package/common/people.test.json +4135 -3606
  87. package/common/pipboy.instance.json +187 -17
  88. package/common/pipboy.js +4 -4
  89. package/common/pokemon.instance.json +143 -13
  90. package/common/pokemon.js +4 -6
  91. package/common/pressure.instance.json +3610 -1601
  92. package/common/pressure.js +3 -5
  93. package/common/pressure.test.json +433 -477
  94. package/common/properties.instance.json +16 -17
  95. package/common/properties.js +32 -13
  96. package/common/properties.test.json +9565 -6951
  97. package/common/rates.instance.json +59 -0
  98. package/common/rates.js +95 -0
  99. package/common/rates.test.json +27702 -0
  100. package/common/reminders.instance.json +4 -4
  101. package/common/reminders.js +8 -11
  102. package/common/reminders.test.json +64635 -25787
  103. package/common/reports.instance.json +23 -3
  104. package/common/reports.js +21 -21
  105. package/common/scorekeeper.js +9 -12
  106. package/common/sdefaults.js +22 -2
  107. package/common/spock.instance.json +11 -1
  108. package/common/spock.js +4 -7
  109. package/common/spock.test.json +606 -430
  110. package/common/stgame.js +1 -1
  111. package/common/stm.js +41 -24
  112. package/common/tell.js +1 -1
  113. package/common/temperature.instance.json +3163 -1154
  114. package/common/temperature.js +3 -5
  115. package/common/temperature.test.json +433 -477
  116. package/common/tester.js +3 -3
  117. package/common/time.instance.json +24852 -0
  118. package/common/time.js +138 -141
  119. package/common/time.test.json +31876 -3757
  120. package/common/tokenize.js +5 -2
  121. package/common/ui.instance.json +12 -5
  122. package/common/ui.js +4 -13
  123. package/common/weight.instance.json +10501 -4099
  124. package/common/weight.js +3 -5
  125. package/common/weight.test.json +2601 -2263
  126. package/common/words.instance.json +9 -0
  127. package/common/words.js +50 -0
  128. package/common/words.test.json +2 -0
  129. package/common/wp.instance.json +548 -8
  130. package/common/wp.js +10 -8
  131. package/common/wp.test.json +7385 -6906
  132. package/main.js +6 -2
  133. package/package.json +25 -6
  134. package/common/listener.js +0 -50
  135. 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
  }
@@ -311,6 +311,16 @@
311
311
  "adjective",
312
312
  false
313
313
  ],
314
+ [
315
+ "stm_current",
316
+ "adjective",
317
+ false
318
+ ],
319
+ [
320
+ "stm_previous",
321
+ "adjective",
322
+ false
323
+ ],
314
324
  [
315
325
  "that",
316
326
  "thisitthat",
@@ -594,7 +604,7 @@
594
604
  "word": "wants",
595
605
  "range": {
596
606
  "start": 0,
597
- "end": 37
607
+ "end": 4
598
608
  },
599
609
  "dead": true,
600
610
  "types": [
@@ -1555,6 +1565,16 @@
1555
1565
  "adjective",
1556
1566
  false
1557
1567
  ],
1568
+ [
1569
+ "stm_current",
1570
+ "adjective",
1571
+ false
1572
+ ],
1573
+ [
1574
+ "stm_previous",
1575
+ "adjective",
1576
+ false
1577
+ ],
1558
1578
  [
1559
1579
  "that",
1560
1580
  "thisitthat",
@@ -2197,6 +2217,7 @@
2197
2217
  "value": [
2198
2218
  {
2199
2219
  "value": "like",
2220
+ "isVerb": true,
2200
2221
  "number": "one",
2201
2222
  "text": "x likes y",
2202
2223
  "marker": "like",
@@ -2207,12 +2228,7 @@
2207
2228
  },
2208
2229
  "do": {
2209
2230
  "left": "liker",
2210
- "right": "likee",
2211
- "range": {
2212
- "start": 3,
2213
- "end": 11
2214
- },
2215
- "text": "ikes y"
2231
+ "right": "likee"
2216
2232
  },
2217
2233
  "liker": {
2218
2234
  "value": "x",
@@ -2246,6 +2262,21 @@
2246
2262
  ],
2247
2263
  "level": 0
2248
2264
  },
2265
+ "operator": {
2266
+ "value": "like",
2267
+ "isVerb": true,
2268
+ "number": "one",
2269
+ "text": "likes",
2270
+ "marker": "like",
2271
+ "word": "likes",
2272
+ "range": {
2273
+ "start": 5,
2274
+ "end": 9
2275
+ },
2276
+ "evaluateWord": true,
2277
+ "imperative": false,
2278
+ "level": 0
2279
+ },
2249
2280
  "unflatten": [
2250
2281
  "liker",
2251
2282
  "likee"
@@ -2254,6 +2285,18 @@
2254
2285
  "liker",
2255
2286
  "likee"
2256
2287
  ],
2288
+ "interpolate": [
2289
+ {
2290
+ "property": "liker"
2291
+ },
2292
+ {
2293
+ "property": "operator",
2294
+ "number": "liker"
2295
+ },
2296
+ {
2297
+ "property": "likee"
2298
+ }
2299
+ ],
2257
2300
  "dead": true,
2258
2301
  "types": [
2259
2302
  "like"
@@ -2262,6 +2305,7 @@
2262
2305
  },
2263
2306
  {
2264
2307
  "value": "love",
2308
+ "isVerb": true,
2265
2309
  "number": "one",
2266
2310
  "text": "x loves y",
2267
2311
  "marker": "love",
@@ -2272,12 +2316,7 @@
2272
2316
  },
2273
2317
  "do": {
2274
2318
  "left": "lover",
2275
- "right": "lovee",
2276
- "range": {
2277
- "start": 16,
2278
- "end": 24
2279
- },
2280
- "text": ""
2319
+ "right": "lovee"
2281
2320
  },
2282
2321
  "lover": {
2283
2322
  "value": "x",
@@ -2311,6 +2350,21 @@
2311
2350
  ],
2312
2351
  "level": 0
2313
2352
  },
2353
+ "operator": {
2354
+ "value": "love",
2355
+ "isVerb": true,
2356
+ "number": "one",
2357
+ "text": "loves",
2358
+ "marker": "love",
2359
+ "word": "loves",
2360
+ "range": {
2361
+ "start": 18,
2362
+ "end": 22
2363
+ },
2364
+ "evaluateWord": true,
2365
+ "imperative": false,
2366
+ "level": 0
2367
+ },
2314
2368
  "unflatten": [
2315
2369
  "lover",
2316
2370
  "lovee"
@@ -2319,6 +2373,18 @@
2319
2373
  "lover",
2320
2374
  "lovee"
2321
2375
  ],
2376
+ "interpolate": [
2377
+ {
2378
+ "property": "lover"
2379
+ },
2380
+ {
2381
+ "property": "operator",
2382
+ "number": "lover"
2383
+ },
2384
+ {
2385
+ "property": "lovee"
2386
+ }
2387
+ ],
2322
2388
  "types": [
2323
2389
  "love"
2324
2390
  ],
@@ -2343,12 +2409,7 @@
2343
2409
  },
2344
2410
  "do": {
2345
2411
  "left": "wanter",
2346
- "right": "wantee",
2347
- "range": {
2348
- "start": 31,
2349
- "end": 39
2350
- },
2351
- "text": ""
2412
+ "right": "wantee"
2352
2413
  },
2353
2414
  "wanter": {
2354
2415
  "value": "x",
@@ -2382,6 +2443,21 @@
2382
2443
  ],
2383
2444
  "level": 0
2384
2445
  },
2446
+ "operator": {
2447
+ "value": "want",
2448
+ "text": "wants",
2449
+ "marker": "want",
2450
+ "word": "wants",
2451
+ "range": {
2452
+ "start": 33,
2453
+ "end": 37
2454
+ },
2455
+ "evaluateWord": true,
2456
+ "imperative": false,
2457
+ "isVerb": true,
2458
+ "number": "one",
2459
+ "level": 0
2460
+ },
2385
2461
  "unflatten": [
2386
2462
  "wanter",
2387
2463
  "wantee"
@@ -2390,6 +2466,18 @@
2390
2466
  "wanter",
2391
2467
  "wantee"
2392
2468
  ],
2469
+ "interpolate": [
2470
+ {
2471
+ "property": "wanter"
2472
+ },
2473
+ {
2474
+ "property": "operator",
2475
+ "number": "wanter"
2476
+ },
2477
+ {
2478
+ "property": "wantee"
2479
+ }
2480
+ ],
2393
2481
  "types": [
2394
2482
  "want"
2395
2483
  ],
@@ -2,7 +2,7 @@ const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const hierarchy = require('./hierarchy')
4
4
  const ordering_tests = require('./ordering.test.json')
5
- const ordering_instance = require('./ordering.instance.json')
5
+ const instance = require('./ordering.instance.json')
6
6
  const { API } = require('./helpers/ordering')
7
7
 
8
8
  const template ={
@@ -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
@@ -124,8 +124,6 @@ knowledgeModule( {
124
124
  context: [defaultContextCheck()],
125
125
  }
126
126
  },
127
- template: {
128
- template,
129
- instance: ordering_instance
130
- }
127
+ instance,
128
+ template,
131
129
  })