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
@@ -7,7 +7,7 @@ const { table } = require('table')
7
7
  const _ = require('lodash')
8
8
  const characters_tests = require('./characters.test.json')
9
9
 
10
- const getHelp = (config, indent=2) => {
10
+ function getHelp(config, indent=2) {
11
11
  indent = ' '.repeat(indent)
12
12
  let help = ''
13
13
  help += `${indent}NAME: ${config.name}\n`
@@ -42,8 +42,8 @@ const config = {
42
42
  ],
43
43
  "words": {
44
44
  "literals": {
45
- "sally": [{"id": "character", development: true, "initial": "{ value: 'sally' }" }],
46
- "bob": [{"id": "character", development: true, "initial": "{ value: 'bob' }" }],
45
+ "sally": [{"id": "character", scope: "testing", "initial": "{ value: 'sally' }" }],
46
+ "bob": [{"id": "character", scope: "testing", "initial": "{ value: 'bob' }" }],
47
47
  },
48
48
  },
49
49
 
@@ -167,13 +167,13 @@ class Bob {
167
167
  }
168
168
  }
169
169
 
170
- const initializeApi = (config, api) => {
170
+ function initializeApi(config, api) {
171
171
  const name = api.getName();
172
172
  config.addWord(name, {"id": "character", "initial": "{ value: '" + name + `', api: '${name}'}` })
173
173
  }
174
174
 
175
175
 
176
- const initializer = async ({isModule, km}) => {
176
+ async function initializer({isModule, km}) {
177
177
  if (!isModule) {
178
178
  const timeKM = await createTimeKM()
179
179
  const currencyKM = await createCurrencyKM()
@@ -359,6 +359,16 @@
359
359
  "adjective",
360
360
  false
361
361
  ],
362
+ [
363
+ "stm_current",
364
+ "adjective",
365
+ false
366
+ ],
367
+ [
368
+ "stm_previous",
369
+ "adjective",
370
+ false
371
+ ],
362
372
  [
363
373
  "that",
364
374
  "thisitthat",
@@ -848,6 +858,16 @@
848
858
  "adjective",
849
859
  false
850
860
  ],
861
+ [
862
+ "stm_current",
863
+ "adjective",
864
+ false
865
+ ],
866
+ [
867
+ "stm_previous",
868
+ "adjective",
869
+ false
870
+ ],
851
871
  [
852
872
  "that",
853
873
  "thisitthat",
@@ -1080,7 +1100,7 @@
1080
1100
  "text": "dark and light",
1081
1101
  "range": {
1082
1102
  "start": 0,
1083
- "end": 28
1103
+ "end": 13
1084
1104
  },
1085
1105
  "types": [
1086
1106
  "list",
@@ -1843,6 +1863,16 @@
1843
1863
  "adjective",
1844
1864
  false
1845
1865
  ],
1866
+ [
1867
+ "stm_current",
1868
+ "adjective",
1869
+ false
1870
+ ],
1871
+ [
1872
+ "stm_previous",
1873
+ "adjective",
1874
+ false
1875
+ ],
1846
1876
  [
1847
1877
  "that",
1848
1878
  "thisitthat",
@@ -3219,7 +3249,7 @@
3219
3249
  "text": "red, pink, orange, yellow, purple, green, blue, brown, white and gray",
3220
3250
  "range": {
3221
3251
  "start": 0,
3222
- "end": 79
3252
+ "end": 68
3223
3253
  },
3224
3254
  "types": [
3225
3255
  "list",
@@ -8887,6 +8917,16 @@
8887
8917
  "adjective",
8888
8918
  false
8889
8919
  ],
8920
+ [
8921
+ "stm_current",
8922
+ "adjective",
8923
+ false
8924
+ ],
8925
+ [
8926
+ "stm_previous",
8927
+ "adjective",
8928
+ false
8929
+ ],
8890
8930
  [
8891
8931
  "that",
8892
8932
  "thisitthat",
@@ -9171,7 +9211,7 @@
9171
9211
  "word": "crimson",
9172
9212
  "range": {
9173
9213
  "start": 0,
9174
- "end": 15
9214
+ "end": 6
9175
9215
  },
9176
9216
  "dead": true,
9177
9217
  "types": [
@@ -10229,6 +10269,16 @@
10229
10269
  "adjective",
10230
10270
  false
10231
10271
  ],
10272
+ [
10273
+ "stm_current",
10274
+ "adjective",
10275
+ false
10276
+ ],
10277
+ [
10278
+ "stm_previous",
10279
+ "adjective",
10280
+ false
10281
+ ],
10232
10282
  [
10233
10283
  "that",
10234
10284
  "thisitthat",
@@ -10574,7 +10624,7 @@
10574
10624
  "text": "gold and khaki",
10575
10625
  "range": {
10576
10626
  "start": 0,
10577
- "end": 25
10627
+ "end": 13
10578
10628
  },
10579
10629
  "types": [
10580
10630
  "list",
@@ -11920,6 +11970,16 @@
11920
11970
  "adjective",
11921
11971
  false
11922
11972
  ],
11973
+ [
11974
+ "stm_current",
11975
+ "adjective",
11976
+ false
11977
+ ],
11978
+ [
11979
+ "stm_previous",
11980
+ "adjective",
11981
+ false
11982
+ ],
11923
11983
  [
11924
11984
  "that",
11925
11985
  "thisitthat",
@@ -12487,7 +12547,7 @@
12487
12547
  "text": "lavender, violet, magenta and indigo",
12488
12548
  "range": {
12489
12549
  "start": 0,
12490
- "end": 47
12550
+ "end": 35
12491
12551
  },
12492
12552
  "types": [
12493
12553
  "list",
@@ -14677,6 +14737,16 @@
14677
14737
  "adjective",
14678
14738
  false
14679
14739
  ],
14740
+ [
14741
+ "stm_current",
14742
+ "adjective",
14743
+ false
14744
+ ],
14745
+ [
14746
+ "stm_previous",
14747
+ "adjective",
14748
+ false
14749
+ ],
14680
14750
  [
14681
14751
  "that",
14682
14752
  "thisitthat",
@@ -15284,7 +15354,7 @@
15284
15354
  "text": "lime, chartruese, olive and teal",
15285
15355
  "range": {
15286
15356
  "start": 0,
15287
- "end": 43
15357
+ "end": 31
15288
15358
  },
15289
15359
  "types": [
15290
15360
  "list",
@@ -17594,6 +17664,16 @@
17594
17664
  "adjective",
17595
17665
  false
17596
17666
  ],
17667
+ [
17668
+ "stm_current",
17669
+ "adjective",
17670
+ false
17671
+ ],
17672
+ [
17673
+ "stm_previous",
17674
+ "adjective",
17675
+ false
17676
+ ],
17597
17677
  [
17598
17678
  "teal_colors",
17599
17679
  "green_colors",
@@ -18376,7 +18456,7 @@
18376
18456
  "text": "aqua, cyan, aquamarine, turquoise and navy",
18377
18457
  "range": {
18378
18458
  "start": 0,
18379
- "end": 52
18459
+ "end": 41
18380
18460
  },
18381
18461
  "types": [
18382
18462
  "list",
@@ -21302,6 +21382,16 @@
21302
21382
  "adjective",
21303
21383
  false
21304
21384
  ],
21385
+ [
21386
+ "stm_current",
21387
+ "adjective",
21388
+ false
21389
+ ],
21390
+ [
21391
+ "stm_previous",
21392
+ "adjective",
21393
+ false
21394
+ ],
21305
21395
  [
21306
21396
  "teal_colors",
21307
21397
  "green_colors",
@@ -21870,7 +21960,7 @@
21870
21960
  "text": "tan, sienna and maroon",
21871
21961
  "range": {
21872
21962
  "start": 0,
21873
- "end": 33
21963
+ "end": 21
21874
21964
  },
21875
21965
  "types": [
21876
21966
  "list",
@@ -24044,6 +24134,16 @@
24044
24134
  "adjective",
24045
24135
  false
24046
24136
  ],
24137
+ [
24138
+ "stm_current",
24139
+ "adjective",
24140
+ false
24141
+ ],
24142
+ [
24143
+ "stm_previous",
24144
+ "adjective",
24145
+ false
24146
+ ],
24047
24147
  [
24048
24148
  "tan_colors",
24049
24149
  "brown_colors",
@@ -24771,7 +24871,7 @@
24771
24871
  "text": "snow, azure, beige and ivory",
24772
24872
  "range": {
24773
24873
  "start": 0,
24774
- "end": 39
24874
+ "end": 27
24775
24875
  },
24776
24876
  "types": [
24777
24877
  "list",
@@ -27481,6 +27581,16 @@
27481
27581
  "adjective",
27482
27582
  false
27483
27583
  ],
27584
+ [
27585
+ "stm_current",
27586
+ "adjective",
27587
+ false
27588
+ ],
27589
+ [
27590
+ "stm_previous",
27591
+ "adjective",
27592
+ false
27593
+ ],
27484
27594
  [
27485
27595
  "tan_colors",
27486
27596
  "brown_colors",
@@ -27986,7 +28096,7 @@
27986
28096
  "text": "silver and black",
27987
28097
  "range": {
27988
28098
  "start": 0,
27989
- "end": 26
28099
+ "end": 15
27990
28100
  },
27991
28101
  "types": [
27992
28102
  "list",
@@ -30052,6 +30162,16 @@
30052
30162
  "adjective",
30053
30163
  false
30054
30164
  ],
30165
+ [
30166
+ "stm_current",
30167
+ "adjective",
30168
+ false
30169
+ ],
30170
+ [
30171
+ "stm_previous",
30172
+ "adjective",
30173
+ false
30174
+ ],
30055
30175
  [
30056
30176
  "tan_colors",
30057
30177
  "brown_colors",
@@ -30451,7 +30571,7 @@
30451
30571
  "end": 25
30452
30572
  },
30453
30573
  "dead": true,
30454
- "modifiers": [
30574
+ "conceptModifiers": [
30455
30575
  {
30456
30576
  "value": "brightness_colors",
30457
30577
  "number": "one",
@@ -32261,6 +32381,16 @@
32261
32381
  "adjective",
32262
32382
  false
32263
32383
  ],
32384
+ [
32385
+ "stm_current",
32386
+ "adjective",
32387
+ false
32388
+ ],
32389
+ [
32390
+ "stm_previous",
32391
+ "adjective",
32392
+ false
32393
+ ],
32264
32394
  [
32265
32395
  "tan_colors",
32266
32396
  "brown_colors",
@@ -32660,7 +32790,7 @@
32660
32790
  "end": 17
32661
32791
  },
32662
32792
  "dead": true,
32663
- "modifiers": [
32793
+ "conceptModifiers": [
32664
32794
  {
32665
32795
  "value": "hex",
32666
32796
  "unknown": true,
@@ -34677,6 +34807,16 @@
34677
34807
  "adjective",
34678
34808
  false
34679
34809
  ],
34810
+ [
34811
+ "stm_current",
34812
+ "adjective",
34813
+ false
34814
+ ],
34815
+ [
34816
+ "stm_previous",
34817
+ "adjective",
34818
+ false
34819
+ ],
34680
34820
  [
34681
34821
  "tan_colors",
34682
34822
  "brown_colors",
package/common/colors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const colors_tests = require('./colors.test.json')
4
- const colors_instance = require('./colors.instance.json')
4
+ const instance = require('./colors.instance.json')
5
5
  const hierarchy = require('./hierarchy')
6
6
 
7
7
  const template = {
@@ -59,9 +59,6 @@ knowledgeModule( {
59
59
  context: [defaultContextCheck()],
60
60
  }
61
61
  },
62
- template: {
63
- template,
64
- instance: colors_instance,
65
- },
66
-
62
+ instance,
63
+ template,
67
64
  })
@@ -223,6 +223,16 @@
223
223
  "adjective",
224
224
  false
225
225
  ],
226
+ [
227
+ "stm_current",
228
+ "adjective",
229
+ false
230
+ ],
231
+ [
232
+ "stm_previous",
233
+ "adjective",
234
+ false
235
+ ],
226
236
  [
227
237
  "that",
228
238
  "thisitthat",
@@ -352,7 +362,7 @@
352
362
  "end": 21
353
363
  },
354
364
  "dead": true,
355
- "modifiers": [
365
+ "conceptModifiers": [
356
366
  {
357
367
  "value": "sort",
358
368
  "unknown": true,
@@ -773,6 +783,16 @@
773
783
  "adjective",
774
784
  false
775
785
  ],
786
+ [
787
+ "stm_current",
788
+ "adjective",
789
+ false
790
+ ],
791
+ [
792
+ "stm_previous",
793
+ "adjective",
794
+ false
795
+ ],
776
796
  [
777
797
  "that",
778
798
  "thisitthat",
@@ -963,7 +983,7 @@
963
983
  "word": "ascending",
964
984
  "range": {
965
985
  "start": 0,
966
- "end": 27
986
+ "end": 8
967
987
  },
968
988
  "dead": true,
969
989
  "types": [
@@ -1602,6 +1622,16 @@
1602
1622
  "adjective",
1603
1623
  false
1604
1624
  ],
1625
+ [
1626
+ "stm_current",
1627
+ "adjective",
1628
+ false
1629
+ ],
1630
+ [
1631
+ "stm_previous",
1632
+ "adjective",
1633
+ false
1634
+ ],
1605
1635
  [
1606
1636
  "that",
1607
1637
  "thisitthat",
@@ -1792,7 +1822,7 @@
1792
1822
  "word": "descending",
1793
1823
  "range": {
1794
1824
  "start": 0,
1795
- "end": 28
1825
+ "end": 9
1796
1826
  },
1797
1827
  "dead": true,
1798
1828
  "types": [
@@ -4,7 +4,7 @@ const dialogues = require("./dialogues")
4
4
  const concept = require("./concept")
5
5
  const numbers = require("./numbers")
6
6
  const comparable_tests = require('./comparable.test.json')
7
- const comparable_instance = require('./comparable.instance.json')
7
+ const instance = require('./comparable.instance.json')
8
8
 
9
9
 
10
10
  const config = {
@@ -70,11 +70,8 @@ const template = {
70
70
  knowledgeModule({
71
71
  config,
72
72
  includes: [dialogues, numbers, concept],
73
- template: {
74
- template,
75
- instance: comparable_instance
76
- },
77
-
73
+ instance,
74
+ template,
78
75
  module,
79
76
  description: 'Comparable things',
80
77
  test: {
package/common/concept.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const { knowledgeModule, flatten, where, Digraph } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
2
+ const { defaultContextCheck, defaultContextCheckProperties } = require('./helpers')
3
3
  const { API }= require('./helpers/concept')
4
4
  const dialogues = require('./dialogues.js')
5
5
  const concept_tests = require('./concept.test.json')
@@ -27,7 +27,26 @@ config = {
27
27
  isA: ['verb'],
28
28
  words: [{ word: 'modifies', number: 'one', flatten: false }, { word: 'modify', number: 'many', flatten: true }],
29
29
  // bridge: "{ ...next(operator), modifiers: before, concept: after[0], flatten: true }"
30
- bridge: "{ ...next(operator), modifiers: before[0], concept: after[0] }"
30
+ bridge: "{ ...next(operator), conceptModifiers: before[0], concept: after[0] }",
31
+ semantic: {
32
+ notes: 'define a modifier',
33
+ where: where(),
34
+ apply: ({config, query, km, context}) => {
35
+ let modifiers
36
+ if (context.literally) {
37
+ literalModifiers = context.conceptModifiers[0]
38
+ // modifiers = literalModifiers.value.map(modifier => modifier.value)
39
+ modifiers = literalModifiers.value
40
+ modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
41
+ } else {
42
+ modifiers = context.conceptModifiers
43
+ // modifiers = context.modifiers.map(modifier => modifier.value)
44
+ }
45
+ // km('concept').api.kindOfConcept({ config, modifiers, object: context.concept.value || context.concept.marker })
46
+ km('concept').api.kindOfConcept({ config, modifiers, object: context.concept })
47
+ }
48
+ },
49
+ check: defaultContextCheckProperties(['concept', 'conceptModifiers']),
31
50
  },
32
51
  { id: "literally", bridge: "{ ...after[0], flatten: false, literally: true }" },
33
52
  { id: "concept" },
@@ -62,7 +81,7 @@ config = {
62
81
  },
63
82
  */
64
83
  where: where(),
65
- match: ({context}) => {
84
+ match: ({context, callId}) => {
66
85
  if (!context.paraphrase) {
67
86
  return
68
87
  }
@@ -103,39 +122,18 @@ config = {
103
122
  match: ({context}) => context.marker == 'modifies' && context.paraphrase,
104
123
  apply: async ({context, gp, gw}) => {
105
124
  const modifiers = []
106
- for (modifier of context.modifiers) {
125
+ for (modifier of context.conceptModifiers) {
107
126
  modifiers.push(await gp(modifier))
108
127
  }
109
128
  if (context.literally) {
110
- return `${modifiers.join(" ")} literally ${await gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${await gp(context.concept)}`
129
+ return `${modifiers.join(" ")} literally ${await gw(context, { number: context.conceptModifiers[context.conceptModifiers.length - 1] })} ${await gp(context.concept)}`
111
130
  } else {
112
- return `${modifiers.join(" ")} ${await gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${await gp(context.concept)}`
131
+ return `${modifiers.join(" ")} ${await gw(context, { number: context.conceptModifiers[context.conceptModifiers.length - 1] })} ${await gp(context.concept)}`
113
132
  }
114
133
  }
115
134
  // const chosen = chooseNumber(context, word.singular, word.plural)
116
135
  },
117
136
  ],
118
- semantics: [
119
- {
120
- notes: 'define a modifier',
121
- where: where(),
122
- match: ({context}) => context.marker == 'modifies',
123
- apply: ({config, query, km, context}) => {
124
- let modifiers
125
- if (context.literally) {
126
- literalModifiers = context.modifiers[0]
127
- // modifiers = literalModifiers.value.map(modifier => modifier.value)
128
- modifiers = literalModifiers.value
129
- modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
130
- } else {
131
- modifiers = context.modifiers
132
- // modifiers = context.modifiers.map(modifier => modifier.value)
133
- }
134
- // km('concept').api.kindOfConcept({ config, modifiers, object: context.concept.value || context.concept.marker })
135
- km('concept').api.kindOfConcept({ config, modifiers, object: context.concept })
136
- }
137
- },
138
- ],
139
137
  }
140
138
 
141
139
  knowledgeModule({