ekms 8.8.0 → 8.9.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.
@@ -991,7 +991,7 @@
991
991
  0
992
992
  ],
993
993
  [
994
- "isEd",
994
+ "is",
995
995
  0
996
996
  ],
997
997
  [
@@ -1164,7 +1164,7 @@
1164
1164
  ],
1165
1165
  [
1166
1166
  "unknown",
1167
- 1
1167
+ 0
1168
1168
  ]
1169
1169
  ],
1170
1170
  [
@@ -1177,8 +1177,12 @@
1177
1177
  0
1178
1178
  ],
1179
1179
  [
1180
- "unknown",
1180
+ "is",
1181
1181
  0
1182
+ ],
1183
+ [
1184
+ "unknown",
1185
+ 1
1182
1186
  ]
1183
1187
  ],
1184
1188
  [
@@ -6443,7 +6447,7 @@
6443
6447
  ],
6444
6448
  [
6445
6449
  "unknown",
6446
- 1
6450
+ 0
6447
6451
  ]
6448
6452
  ],
6449
6453
  [
@@ -6456,8 +6460,12 @@
6456
6460
  0
6457
6461
  ],
6458
6462
  [
6459
- "unknown",
6463
+ "is",
6460
6464
  0
6465
+ ],
6466
+ [
6467
+ "unknown",
6468
+ 1
6461
6469
  ]
6462
6470
  ],
6463
6471
  [
@@ -19,11 +19,26 @@
19
19
  "adjective",
20
20
  false
21
21
  ],
22
+ [
23
+ "all",
24
+ "quantifier",
25
+ false
26
+ ],
22
27
  [
23
28
  "articlePOS",
24
29
  "articlePOS",
25
30
  false
26
31
  ],
32
+ [
33
+ "between",
34
+ "preposition",
35
+ false
36
+ ],
37
+ [
38
+ "canBeDoQuestion",
39
+ "canBeDoQuestion",
40
+ false
41
+ ],
27
42
  [
28
43
  "canBeQuestion",
29
44
  "canBeQuestion",
@@ -34,6 +49,21 @@
34
49
  "verb",
35
50
  false
36
51
  ],
52
+ [
53
+ "concept",
54
+ "queryable",
55
+ false
56
+ ],
57
+ [
58
+ "concept",
59
+ "theAble",
60
+ false
61
+ ],
62
+ [
63
+ "countable",
64
+ "hierarchyAble",
65
+ false
66
+ ],
37
67
  [
38
68
  "direction",
39
69
  "direction",
@@ -54,6 +84,26 @@
54
84
  "verb",
55
85
  false
56
86
  ],
87
+ [
88
+ "hasCountOfPieces",
89
+ "countable",
90
+ false
91
+ ],
92
+ [
93
+ "have",
94
+ "canBeDoQuestion",
95
+ false
96
+ ],
97
+ [
98
+ "have",
99
+ "canBeQuestion",
100
+ false
101
+ ],
102
+ [
103
+ "hierarchyAble",
104
+ "queryable",
105
+ false
106
+ ],
57
107
  [
58
108
  "ifAble",
59
109
  "ifAble",
@@ -109,6 +159,11 @@
109
159
  "theAble",
110
160
  false
111
161
  ],
162
+ [
163
+ "modifies",
164
+ "verb",
165
+ false
166
+ ],
112
167
  [
113
168
  "move",
114
169
  "verb",
@@ -126,9 +181,24 @@
126
181
  ],
127
182
  [
128
183
  "number",
184
+ "quantifier",
185
+ false
186
+ ],
187
+ [
188
+ "number",
189
+ "queryable",
190
+ false
191
+ ],
192
+ [
193
+ "object",
129
194
  "queryable",
130
195
  false
131
196
  ],
197
+ [
198
+ "object",
199
+ "theAble",
200
+ false
201
+ ],
132
202
  [
133
203
  "orAble",
134
204
  "ifAble",
@@ -149,11 +219,31 @@
149
219
  "pronoun",
150
220
  false
151
221
  ],
222
+ [
223
+ "property",
224
+ "queryable",
225
+ false
226
+ ],
227
+ [
228
+ "property",
229
+ "theAble",
230
+ false
231
+ ],
232
+ [
233
+ "propertyOf",
234
+ "preposition",
235
+ false
236
+ ],
152
237
  [
153
238
  "punctuation",
154
239
  "punctuation",
155
240
  false
156
241
  ],
242
+ [
243
+ "quantifier",
244
+ "quantifier",
245
+ false
246
+ ],
157
247
  [
158
248
  "queryable",
159
249
  "queryable",
@@ -164,6 +254,11 @@
164
254
  "punctuation",
165
255
  false
166
256
  ],
257
+ [
258
+ "readonly",
259
+ "queryable",
260
+ false
261
+ ],
167
262
  [
168
263
  "reason",
169
264
  "queryable",
@@ -244,6 +339,21 @@
244
339
  "toAble",
245
340
  false
246
341
  ],
342
+ [
343
+ "type",
344
+ "property",
345
+ false
346
+ ],
347
+ [
348
+ "type",
349
+ "whatAble",
350
+ false
351
+ ],
352
+ [
353
+ "unknown",
354
+ "hierarchyAble",
355
+ false
356
+ ],
247
357
  [
248
358
  "unknown",
249
359
  "queryable",
@@ -269,6 +379,11 @@
269
379
  "verb",
270
380
  false
271
381
  ],
382
+ [
383
+ "what",
384
+ "object",
385
+ false
386
+ ],
272
387
  [
273
388
  "what",
274
389
  "queryable",
@@ -278,6 +393,16 @@
278
393
  "whatAble",
279
394
  "queryable",
280
395
  false
396
+ ],
397
+ [
398
+ "whose",
399
+ "object",
400
+ false
401
+ ],
402
+ [
403
+ "xfx",
404
+ "queryable",
405
+ false
281
406
  ]
282
407
  ],
283
408
  "metadata": {
package/common/ui.js CHANGED
@@ -2,6 +2,7 @@ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammable
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const dialogues = require('./dialogues')
4
4
  const ordinals = require('./ordinals')
5
+ const countable = require('./countable')
5
6
  const ui_tests = require('./ui.test.json')
6
7
  const ui_instance = require('./ui.instance.json')
7
8
 
@@ -10,8 +11,8 @@ class API {
10
11
  this._objects = objects
11
12
  }
12
13
 
13
- move(direction, steps = 1) {
14
- this._objects.move = { direction, steps }
14
+ move(direction, steps = 1, units = undefined) {
15
+ this._objects.move = { direction, steps, units }
15
16
  }
16
17
 
17
18
  select(item) {
@@ -52,7 +53,7 @@ const config = {
52
53
  "([right])",
53
54
  "([stop] ([action]))",
54
55
  "([listening])",
55
- "(([direction]) [moveAmount|] ([number]))"
56
+ "(([direction]) [moveAmount|] (number/* || context.quantity != null))"
56
57
  ],
57
58
  semantics: [
58
59
  {
@@ -96,6 +97,7 @@ const config = {
96
97
  where: where(),
97
98
  id: "moveAmount",
98
99
  isA: ['preposition'],
100
+ after: ['counting'],
99
101
  convolution: true,
100
102
  level: 0,
101
103
  bridge: "{ ...before[0], postModifiers: ['steps'], steps: after[0] }",
@@ -131,7 +133,12 @@ const config = {
131
133
  optional: { 1: "{ marker: 'moveable', pullFromContext: true, default: true, skipDefault: true }" },
132
134
  bridge: "{ ...next(operator), operator: operator, moveable: after[0], direction: after[1], generate: ['operator', 'moveable', 'direction' ] }",
133
135
  semantic: ({api, context}) => {
134
- api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
136
+ if (context.direction?.steps?.quantity) {
137
+ debugger
138
+ api.move(context.direction.value, context.direction.steps.quantity.value, context.direction.steps.marker)
139
+ } else {
140
+ api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
141
+ }
135
142
  }
136
143
  },
137
144
  { id: "moveable", },
@@ -183,7 +190,7 @@ const template = {
183
190
 
184
191
  knowledgeModule({
185
192
  config,
186
- includes: [dialogues, ordinals],
193
+ includes: [dialogues, ordinals, countable],
187
194
  api: () => new API(),
188
195
 
189
196
  module,
@@ -2258,7 +2258,7 @@
2258
2258
  0
2259
2259
  ],
2260
2260
  [
2261
- "isEd",
2261
+ "is",
2262
2262
  0
2263
2263
  ],
2264
2264
  [
@@ -2431,7 +2431,7 @@
2431
2431
  ],
2432
2432
  [
2433
2433
  "unknown",
2434
- 1
2434
+ 0
2435
2435
  ]
2436
2436
  ],
2437
2437
  [
@@ -2444,8 +2444,12 @@
2444
2444
  0
2445
2445
  ],
2446
2446
  [
2447
- "unknown",
2447
+ "is",
2448
2448
  0
2449
+ ],
2450
+ [
2451
+ "unknown",
2452
+ 1
2449
2453
  ]
2450
2454
  ],
2451
2455
  [
@@ -19148,7 +19152,7 @@
19148
19152
  ],
19149
19153
  [
19150
19154
  "unknown",
19151
- 1
19155
+ 0
19152
19156
  ]
19153
19157
  ],
19154
19158
  [
@@ -19161,8 +19165,12 @@
19161
19165
  0
19162
19166
  ],
19163
19167
  [
19164
- "unknown",
19168
+ "is",
19165
19169
  0
19170
+ ],
19171
+ [
19172
+ "unknown",
19173
+ 1
19166
19174
  ]
19167
19175
  ],
19168
19176
  [