tpmkms_4wp 8.9.0-beta.19 → 8.9.0-beta.2

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 (40) hide show
  1. package/common/animals.instance.json +0 -65
  2. package/common/articles.js +0 -4
  3. package/common/colors.instance.json +0 -71
  4. package/common/comparable.instance.json +0 -15
  5. package/common/conjunction.js +18 -27
  6. package/common/countable.js +2 -8
  7. package/common/countable.test.json +0 -586
  8. package/common/crew.instance.json +176 -130
  9. package/common/dialogues.js +11 -7
  10. package/common/dimension.instance.json +0 -10
  11. package/common/edible.instance.json +0 -376
  12. package/common/emotions.instance.json +0 -8
  13. package/common/fastfood.instance.json +924 -1437
  14. package/common/formulas.instance.json +0 -10
  15. package/common/helpers/dialogues.js +8 -14
  16. package/common/helpers/properties.js +2 -2
  17. package/common/helpers.js +0 -29
  18. package/common/hierarchy.js +5 -5
  19. package/common/hierarchy.test.json +0 -1491
  20. package/common/kirk.instance.json +0 -5
  21. package/common/length.instance.json +0 -150
  22. package/common/math.instance.json +0 -10
  23. package/common/meta.js +3 -5
  24. package/common/ordering.instance.json +0 -10
  25. package/common/people.instance.json +4 -169
  26. package/common/pipboy.instance.json +28 -198
  27. package/common/pokemon.instance.json +0 -65
  28. package/common/pressure.instance.json +0 -40
  29. package/common/properties.instance.json +0 -5
  30. package/common/reports.instance.json +1 -21
  31. package/common/spock.instance.json +0 -5
  32. package/common/temperature.instance.json +0 -40
  33. package/common/ui.instance.json +0 -10
  34. package/common/ui.js +1 -0
  35. package/common/weight.instance.json +0 -120
  36. package/common/wp.instance.json +954 -28870
  37. package/common/wp.js +10 -147
  38. package/common/wp.test.json +698 -28243
  39. package/package.json +2 -3
  40. package/common/helpers/conjunction.js +0 -75
@@ -127,11 +127,6 @@
127
127
  "verb",
128
128
  false
129
129
  ],
130
- [
131
- "negatable",
132
- "queryable",
133
- false
134
- ],
135
130
  [
136
131
  "noun",
137
132
  "theAble",
@@ -847,11 +842,6 @@
847
842
  "verb",
848
843
  false
849
844
  ],
850
- [
851
- "negatable",
852
- "queryable",
853
- false
854
- ],
855
845
  [
856
846
  "noun",
857
847
  "theAble",
@@ -1462,11 +1452,6 @@
1462
1452
  "verb",
1463
1453
  false
1464
1454
  ],
1465
- [
1466
- "negatable",
1467
- "queryable",
1468
- false
1469
- ],
1470
1455
  [
1471
1456
  "noun",
1472
1457
  "theAble",
@@ -2077,11 +2062,6 @@
2077
2062
  "verb",
2078
2063
  false
2079
2064
  ],
2080
- [
2081
- "negatable",
2082
- "queryable",
2083
- false
2084
- ],
2085
2065
  [
2086
2066
  "noun",
2087
2067
  "theAble",
@@ -2744,11 +2724,6 @@
2744
2724
  "verb",
2745
2725
  false
2746
2726
  ],
2747
- [
2748
- "negatable",
2749
- "queryable",
2750
- false
2751
- ],
2752
2727
  [
2753
2728
  "noun",
2754
2729
  "theAble",
@@ -3359,11 +3334,6 @@
3359
3334
  "verb",
3360
3335
  false
3361
3336
  ],
3362
- [
3363
- "negatable",
3364
- "queryable",
3365
- false
3366
- ],
3367
3337
  [
3368
3338
  "noun",
3369
3339
  "theAble",
@@ -3974,11 +3944,6 @@
3974
3944
  "verb",
3975
3945
  false
3976
3946
  ],
3977
- [
3978
- "negatable",
3979
- "queryable",
3980
- false
3981
- ],
3982
3947
  [
3983
3948
  "noun",
3984
3949
  "theAble",
@@ -4589,11 +4554,6 @@
4589
4554
  "verb",
4590
4555
  false
4591
4556
  ],
4592
- [
4593
- "negatable",
4594
- "queryable",
4595
- false
4596
- ],
4597
4557
  [
4598
4558
  "noun",
4599
4559
  "theAble",
@@ -5204,11 +5164,6 @@
5204
5164
  "verb",
5205
5165
  false
5206
5166
  ],
5207
- [
5208
- "negatable",
5209
- "queryable",
5210
- false
5211
- ],
5212
5167
  [
5213
5168
  "noun",
5214
5169
  "theAble",
@@ -6270,11 +6225,6 @@
6270
6225
  "verb",
6271
6226
  false
6272
6227
  ],
6273
- [
6274
- "negatable",
6275
- "queryable",
6276
- false
6277
- ],
6278
6228
  [
6279
6229
  "noun",
6280
6230
  "theAble",
@@ -7376,11 +7326,6 @@
7376
7326
  "verb",
7377
7327
  false
7378
7328
  ],
7379
- [
7380
- "negatable",
7381
- "queryable",
7382
- false
7383
- ],
7384
7329
  [
7385
7330
  "noun",
7386
7331
  "theAble",
@@ -8342,11 +8287,6 @@
8342
8287
  "verb",
8343
8288
  false
8344
8289
  ],
8345
- [
8346
- "negatable",
8347
- "queryable",
8348
- false
8349
- ],
8350
8290
  [
8351
8291
  "noun",
8352
8292
  "theAble",
@@ -9484,11 +9424,6 @@
9484
9424
  "verb",
9485
9425
  false
9486
9426
  ],
9487
- [
9488
- "negatable",
9489
- "queryable",
9490
- false
9491
- ],
9492
9427
  [
9493
9428
  "noun",
9494
9429
  "theAble",
@@ -11,7 +11,6 @@ let config = {
11
11
  "([it])",
12
12
  "([this])",
13
13
  "([that])",
14
- "([everything])",
15
14
  "([queryable])",
16
15
  /*
17
16
  "(<what> ([whatAble|]))",
@@ -23,9 +22,6 @@ let config = {
23
22
  bridges: [
24
23
  // { id: "what", level: 0, optional: "{ ...next(operator), query: ['what'], determined: true }", bridge: "{ ...after, query: ['what'], modifiers: ['what'], what: operator }" },
25
24
  // { id: "whatAble", level: 0, bridge: "{ ...next(operator) }" },
26
- {
27
- id: 'everything',
28
- },
29
25
  {
30
26
  id: 'the',
31
27
  level: 0,
@@ -244,11 +244,6 @@
244
244
  "verb",
245
245
  false
246
246
  ],
247
- [
248
- "negatable",
249
- "queryable",
250
- false
251
- ],
252
247
  [
253
248
  "noun",
254
249
  "theAble",
@@ -653,11 +648,6 @@
653
648
  "verb",
654
649
  false
655
650
  ],
656
- [
657
- "negatable",
658
- "queryable",
659
- false
660
- ],
661
651
  [
662
652
  "noun",
663
653
  "theAble",
@@ -1373,11 +1363,6 @@
1373
1363
  "verb",
1374
1364
  false
1375
1365
  ],
1376
- [
1377
- "negatable",
1378
- "queryable",
1379
- false
1380
- ],
1381
1366
  [
1382
1367
  "noun",
1383
1368
  "theAble",
@@ -3718,11 +3703,6 @@
3718
3703
  "verb",
3719
3704
  false
3720
3705
  ],
3721
- [
3722
- "negatable",
3723
- "queryable",
3724
- false
3725
- ],
3726
3706
  [
3727
3707
  "noun",
3728
3708
  "theAble",
@@ -4863,11 +4843,6 @@
4863
4843
  "verb",
4864
4844
  false
4865
4845
  ],
4866
- [
4867
- "negatable",
4868
- "queryable",
4869
- false
4870
- ],
4871
4846
  [
4872
4847
  "noun",
4873
4848
  "theAble",
@@ -6240,11 +6215,6 @@
6240
6215
  "verb",
6241
6216
  false
6242
6217
  ],
6243
- [
6244
- "negatable",
6245
- "queryable",
6246
- false
6247
- ],
6248
6218
  [
6249
6219
  "noun",
6250
6220
  "theAble",
@@ -8083,11 +8053,6 @@
8083
8053
  "verb",
8084
8054
  false
8085
8055
  ],
8086
- [
8087
- "negatable",
8088
- "queryable",
8089
- false
8090
- ],
8091
8056
  [
8092
8057
  "noun",
8093
8058
  "theAble",
@@ -10046,11 +10011,6 @@
10046
10011
  "verb",
10047
10012
  false
10048
10013
  ],
10049
- [
10050
- "negatable",
10051
- "queryable",
10052
- false
10053
- ],
10054
10014
  [
10055
10015
  "noun",
10056
10016
  "theAble",
@@ -12416,11 +12376,6 @@
12416
12376
  "theAble",
12417
12377
  false
12418
12378
  ],
12419
- [
12420
- "negatable",
12421
- "queryable",
12422
- false
12423
- ],
12424
12379
  [
12425
12380
  "noun",
12426
12381
  "theAble",
@@ -14548,11 +14503,6 @@
14548
14503
  "theAble",
14549
14504
  false
14550
14505
  ],
14551
- [
14552
- "negatable",
14553
- "queryable",
14554
- false
14555
- ],
14556
14506
  [
14557
14507
  "noun",
14558
14508
  "theAble",
@@ -17031,11 +16981,6 @@
17031
16981
  "theAble",
17032
16982
  false
17033
16983
  ],
17034
- [
17035
- "negatable",
17036
- "queryable",
17037
- false
17038
- ],
17039
16984
  [
17040
16985
  "noun",
17041
16986
  "theAble",
@@ -19248,11 +19193,6 @@
19248
19193
  "theAble",
19249
19194
  false
19250
19195
  ],
19251
- [
19252
- "negatable",
19253
- "queryable",
19254
- false
19255
- ],
19256
19196
  [
19257
19197
  "noun",
19258
19198
  "theAble",
@@ -21322,11 +21262,6 @@
21322
21262
  "theAble",
21323
21263
  false
21324
21264
  ],
21325
- [
21326
- "negatable",
21327
- "queryable",
21328
- false
21329
- ],
21330
21265
  [
21331
21266
  "noun",
21332
21267
  "theAble",
@@ -23617,11 +23552,6 @@
23617
23552
  "theAble",
23618
23553
  false
23619
23554
  ],
23620
- [
23621
- "negatable",
23622
- "queryable",
23623
- false
23624
- ],
23625
23555
  [
23626
23556
  "noun",
23627
23557
  "theAble",
@@ -24393,7 +24323,6 @@
24393
24323
  "default": true,
24394
24324
  "text": "resetidsuffix",
24395
24325
  "word": "resetidsuffix",
24396
- "raw_text": "resetIdSuffix",
24397
24326
  "range": {
24398
24327
  "start": 0,
24399
24328
  "end": 12
@@ -133,11 +133,6 @@
133
133
  "verb",
134
134
  false
135
135
  ],
136
- [
137
- "negatable",
138
- "queryable",
139
- false
140
- ],
141
136
  [
142
137
  "noun",
143
138
  "theAble",
@@ -532,11 +527,6 @@
532
527
  "verb",
533
528
  false
534
529
  ],
535
- [
536
- "negatable",
537
- "queryable",
538
- false
539
- ],
540
530
  [
541
531
  "noun",
542
532
  "theAble",
@@ -1129,11 +1119,6 @@
1129
1119
  "verb",
1130
1120
  false
1131
1121
  ],
1132
- [
1133
- "negatable",
1134
- "queryable",
1135
- false
1136
- ],
1137
1122
  [
1138
1123
  "noun",
1139
1124
  "theAble",
@@ -1,8 +1,7 @@
1
1
  const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
2
  const gdefaults = require('./gdefaults.js')
3
3
  const conjunction_tests = require('./conjunction.test.json')
4
- const { defaultContextCheck, propertyToArray } = require('./helpers')
5
- const { isA, asList, listable } = require('./helpers/conjunction.js')
4
+ const { defaultContextCheck } = require('./helpers')
6
5
 
7
6
  let config = {
8
7
  name: 'conjunction',
@@ -65,32 +64,24 @@ let config = {
65
64
  };
66
65
 
67
66
  const initializer = ({objects, config, isModule}) => {
68
- config.addArgs(({config, api, hierarchy}) => {
69
- const isAI = isA(hierarchy);
70
-
71
- return {
72
- isAListable: (context, type) => {
73
- if (context.marker == 'list' || context.listable) {
74
- return context.value.every( (element) => isAI(element.marker, type) )
75
- } else {
76
- return isAI(context.marker, type)
77
- }
78
- },
79
- asList,
80
- toArray: propertyToArray,
81
- listable: listable(hierarchy),
82
- isA: isAI,
83
- toContext: (v) => {
84
- if (Array.isArray(v)) {
85
- return { marker: 'list', level: 1, value: v }
86
- }
87
- if (v.marker == 'list') {
88
- return v
89
- }
67
+ config.addArgs(({config, api, isA}) => ({
68
+ isAListable: (context, type) => {
69
+ if (context.marker == 'list' || context.listable) {
70
+ return context.value.every( (element) => isA(element.marker, type) )
71
+ } else {
72
+ return isA(context.marker, type)
73
+ }
74
+ },
75
+ toContext: (v) => {
76
+ if (Array.isArray(v)) {
77
+ return { marker: 'list', level: 1, value: v }
78
+ }
79
+ if (v.marker == 'list') {
90
80
  return v
91
- },
92
- }
93
- })
81
+ }
82
+ return v
83
+ },
84
+ }))
94
85
  }
95
86
 
96
87
  knowledgeModule( {
@@ -20,7 +20,6 @@ let config = {
20
20
  "([more] (countable/*))",
21
21
  "([less] (countable/*))",
22
22
  "([all])",
23
- "([every])",
24
23
  // everything
25
24
  ],
26
25
  bridges: [
@@ -57,7 +56,7 @@ let config = {
57
56
  },
58
57
  {
59
58
  id: "quantifier",
60
- children: ['number', 'all', 'every'],
59
+ children: ['number', 'all'],
61
60
  },
62
61
  {
63
62
  id: "countable",
@@ -66,12 +65,7 @@ let config = {
66
65
  {
67
66
  id: "all",
68
67
  generatorp: ({context}) => 'all',
69
- bridge: "{ ...next(operator), number: 'many', quantity: 'all' }"
70
- },
71
- {
72
- id: "every",
73
- generatorp: ({context}) => 'every',
74
- bridge: "{ ...next(operator), number: 'one', quantity: 'every' }"
68
+ bridge: "{ ...next(operator), number: 'many' }"
75
69
  },
76
70
  ],
77
71