tpmkms_4wp 9.4.4-beta.0 → 9.4.4-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.
@@ -89995,6 +89995,24 @@
89995
89995
  0
89996
89996
  ]
89997
89997
  ],
89998
+ [
89999
+ [
90000
+ "list",
90001
+ 1
90002
+ ],
90003
+ [
90004
+ "modifies",
90005
+ 0
90006
+ ],
90007
+ [
90008
+ "strawberry",
90009
+ 0
90010
+ ],
90011
+ [
90012
+ "unknown",
90013
+ 0
90014
+ ]
90015
+ ],
89998
90016
  [
89999
90017
  [
90000
90018
  "list",
@@ -97405,6 +97423,24 @@
97405
97423
  1
97406
97424
  ]
97407
97425
  ],
97426
+ [
97427
+ [
97428
+ "countable",
97429
+ 0
97430
+ ],
97431
+ [
97432
+ "is",
97433
+ 0
97434
+ ],
97435
+ [
97436
+ "list",
97437
+ 1
97438
+ ],
97439
+ [
97440
+ "strawberry",
97441
+ 0
97442
+ ]
97443
+ ],
97408
97444
  [
97409
97445
  [
97410
97446
  "countable",
@@ -110486,6 +110522,24 @@
110486
110522
  0
110487
110523
  ]
110488
110524
  ],
110525
+ [
110526
+ [
110527
+ "ingredient",
110528
+ 0
110529
+ ],
110530
+ [
110531
+ "is",
110532
+ 0
110533
+ ],
110534
+ [
110535
+ "list",
110536
+ 1
110537
+ ],
110538
+ [
110539
+ "smoothie",
110540
+ 0
110541
+ ]
110542
+ ],
110489
110543
  [
110490
110544
  [
110491
110545
  "ingredient",
@@ -347843,6 +347897,24 @@
347843
347897
  0
347844
347898
  ]
347845
347899
  ],
347900
+ [
347901
+ [
347902
+ "breakfast",
347903
+ 0
347904
+ ],
347905
+ [
347906
+ "is",
347907
+ 0
347908
+ ],
347909
+ [
347910
+ "list",
347911
+ 1
347912
+ ],
347913
+ [
347914
+ "meal",
347915
+ 0
347916
+ ]
347917
+ ],
347846
347918
  [
347847
347919
  [
347848
347920
  "is",
@@ -362033,6 +362105,48 @@
362033
362105
  0
362034
362106
  ]
362035
362107
  ],
362108
+ [
362109
+ [
362110
+ "bacon",
362111
+ 0
362112
+ ],
362113
+ [
362114
+ "cod",
362115
+ 0
362116
+ ],
362117
+ [
362118
+ "comma",
362119
+ 0
362120
+ ],
362121
+ [
362122
+ "deluxe",
362123
+ 0
362124
+ ],
362125
+ [
362126
+ "homestyle",
362127
+ 0
362128
+ ],
362129
+ [
362130
+ "is",
362131
+ 0
362132
+ ],
362133
+ [
362134
+ "list",
362135
+ 0
362136
+ ],
362137
+ [
362138
+ "meal",
362139
+ 0
362140
+ ],
362141
+ [
362142
+ "premium",
362143
+ 0
362144
+ ],
362145
+ [
362146
+ "spicy",
362147
+ 0
362148
+ ]
362149
+ ],
362036
362150
  [
362037
362151
  [
362038
362152
  "cod",
@@ -362169,6 +362283,20 @@
362169
362283
  1
362170
362284
  ]
362171
362285
  ],
362286
+ [
362287
+ [
362288
+ "is",
362289
+ 0
362290
+ ],
362291
+ [
362292
+ "list",
362293
+ 1
362294
+ ],
362295
+ [
362296
+ "meal",
362297
+ 0
362298
+ ]
362299
+ ],
362172
362300
  [
362173
362301
  [
362174
362302
  "is",
@@ -397699,6 +397827,20 @@
397699
397827
  0
397700
397828
  ]
397701
397829
  ],
397830
+ [
397831
+ [
397832
+ "is",
397833
+ 0
397834
+ ],
397835
+ [
397836
+ "list",
397837
+ 1
397838
+ ],
397839
+ [
397840
+ "pop",
397841
+ 0
397842
+ ]
397843
+ ],
397702
397844
  [
397703
397845
  [
397704
397846
  "is",
@@ -573451,6 +573593,24 @@
573451
573593
  0
573452
573594
  ]
573453
573595
  ],
573596
+ [
573597
+ [
573598
+ "is",
573599
+ 0
573600
+ ],
573601
+ [
573602
+ "kid",
573603
+ 0
573604
+ ],
573605
+ [
573606
+ "list",
573607
+ 1
573608
+ ],
573609
+ [
573610
+ "meal",
573611
+ 0
573612
+ ]
573613
+ ],
573454
573614
  [
573455
573615
  [
573456
573616
  "is",
@@ -596089,6 +596249,24 @@
596089
596249
  1
596090
596250
  ]
596091
596251
  ],
596252
+ [
596253
+ [
596254
+ "is",
596255
+ 0
596256
+ ],
596257
+ [
596258
+ "list",
596259
+ 1
596260
+ ],
596261
+ [
596262
+ "meal",
596263
+ 0
596264
+ ],
596265
+ [
596266
+ "value",
596267
+ 0
596268
+ ]
596269
+ ],
596092
596270
  [
596093
596271
  [
596094
596272
  "is",
@@ -610176,6 +610354,48 @@
610176
610354
  0
610177
610355
  ]
610178
610356
  ],
610357
+ [
610358
+ [
610359
+ "bacon",
610360
+ 0
610361
+ ],
610362
+ [
610363
+ "cod",
610364
+ 0
610365
+ ],
610366
+ [
610367
+ "comma",
610368
+ 0
610369
+ ],
610370
+ [
610371
+ "deluxe",
610372
+ 0
610373
+ ],
610374
+ [
610375
+ "homestyle",
610376
+ 0
610377
+ ],
610378
+ [
610379
+ "is",
610380
+ 0
610381
+ ],
610382
+ [
610383
+ "list",
610384
+ 0
610385
+ ],
610386
+ [
610387
+ "meal",
610388
+ 0
610389
+ ],
610390
+ [
610391
+ "premium",
610392
+ 0
610393
+ ],
610394
+ [
610395
+ "spicy",
610396
+ 0
610397
+ ]
610398
+ ],
610179
610399
  [
610180
610400
  [
610181
610401
  "bacon",
@@ -611570,6 +611790,24 @@
611570
611790
  0
611571
611791
  ]
611572
611792
  ],
611793
+ [
611794
+ [
611795
+ "breakfast",
611796
+ 0
611797
+ ],
611798
+ [
611799
+ "is",
611800
+ 0
611801
+ ],
611802
+ [
611803
+ "list",
611804
+ 1
611805
+ ],
611806
+ [
611807
+ "meal",
611808
+ 0
611809
+ ]
611810
+ ],
611573
611811
  [
611574
611812
  [
611575
611813
  "breakfast",
@@ -613056,6 +613294,24 @@
613056
613294
  0
613057
613295
  ]
613058
613296
  ],
613297
+ [
613298
+ [
613299
+ "countable",
613300
+ 0
613301
+ ],
613302
+ [
613303
+ "is",
613304
+ 0
613305
+ ],
613306
+ [
613307
+ "list",
613308
+ 1
613309
+ ],
613310
+ [
613311
+ "strawberry",
613312
+ 0
613313
+ ]
613314
+ ],
613059
613315
  [
613060
613316
  [
613061
613317
  "double",
@@ -613498,6 +613754,24 @@
613498
613754
  0
613499
613755
  ]
613500
613756
  ],
613757
+ [
613758
+ [
613759
+ "ingredient",
613760
+ 0
613761
+ ],
613762
+ [
613763
+ "is",
613764
+ 0
613765
+ ],
613766
+ [
613767
+ "list",
613768
+ 1
613769
+ ],
613770
+ [
613771
+ "smoothie",
613772
+ 0
613773
+ ]
613774
+ ],
613501
613775
  [
613502
613776
  [
613503
613777
  "ingredient",
@@ -613560,6 +613834,24 @@
613560
613834
  0
613561
613835
  ]
613562
613836
  ],
613837
+ [
613838
+ [
613839
+ "is",
613840
+ 0
613841
+ ],
613842
+ [
613843
+ "kid",
613844
+ 0
613845
+ ],
613846
+ [
613847
+ "list",
613848
+ 1
613849
+ ],
613850
+ [
613851
+ "meal",
613852
+ 0
613853
+ ]
613854
+ ],
613563
613855
  [
613564
613856
  [
613565
613857
  "is",
@@ -613742,6 +614034,20 @@
613742
614034
  0
613743
614035
  ]
613744
614036
  ],
614037
+ [
614038
+ [
614039
+ "is",
614040
+ 0
614041
+ ],
614042
+ [
614043
+ "list",
614044
+ 1
614045
+ ],
614046
+ [
614047
+ "meal",
614048
+ 0
614049
+ ]
614050
+ ],
613745
614051
  [
613746
614052
  [
613747
614053
  "is",
@@ -613760,6 +614066,38 @@
613760
614066
  0
613761
614067
  ]
613762
614068
  ],
614069
+ [
614070
+ [
614071
+ "is",
614072
+ 0
614073
+ ],
614074
+ [
614075
+ "list",
614076
+ 1
614077
+ ],
614078
+ [
614079
+ "meal",
614080
+ 0
614081
+ ],
614082
+ [
614083
+ "value",
614084
+ 0
614085
+ ]
614086
+ ],
614087
+ [
614088
+ [
614089
+ "is",
614090
+ 0
614091
+ ],
614092
+ [
614093
+ "list",
614094
+ 1
614095
+ ],
614096
+ [
614097
+ "pop",
614098
+ 0
614099
+ ]
614100
+ ],
613763
614101
  [
613764
614102
  [
613765
614103
  "is",
@@ -614092,6 +614430,24 @@
614092
614430
  0
614093
614431
  ]
614094
614432
  ],
614433
+ [
614434
+ [
614435
+ "list",
614436
+ 1
614437
+ ],
614438
+ [
614439
+ "modifies",
614440
+ 0
614441
+ ],
614442
+ [
614443
+ "strawberry",
614444
+ 0
614445
+ ],
614446
+ [
614447
+ "unknown",
614448
+ 0
614449
+ ]
614450
+ ],
614095
614451
  [
614096
614452
  [
614097
614453
  "list",
@@ -248,7 +248,15 @@ const initializer = ({config}) => {
248
248
  return args.gp(context[key])
249
249
  }
250
250
  }
251
- return await helpers.processTemplateString(interpolate, evaluator)
251
+ if (Array.isArray(interpolate)) {
252
+ const strings = []
253
+ for (const element of interpolate) {
254
+ strings.push(await args.g(element))
255
+ }
256
+ return strings.join(" ")
257
+ } else {
258
+ return await helpers.processTemplateString(interpolate, evaluator)
259
+ }
252
260
  }
253
261
  }
254
262
  })
@@ -20,11 +20,6 @@ const config = {
20
20
  words: {
21
21
  "literals": {
22
22
  "=": [{"id": "assignment", "initial": "{ value: 1 }" }],
23
- /*
24
- " ([0-9]+)": [{"id": "number", "initial": "{ value: int(group[0]) }" }],
25
- "one": [{"id": "number", "initial": "{ value: 1 }" }],
26
- "ten": [{"id": "number", "initial": "{ value: 10 }" }],
27
- */
28
23
  }
29
24
  },
30
25
 
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,72 @@
1
+ const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
+ const { defaultContextCheck } = require('./helpers')
3
+ const gdefaults = require("./gdefaults")
4
+ const latin_tests = require('./latin.test.json')
5
+
6
+ /*
7
+ marcus est vir
8
+ marcus vir est
9
+
10
+ estne
11
+ marcus quintus iuliaque
12
+ */
13
+ const config = {
14
+ name: 'latin',
15
+ operators: [
16
+ "((*) [queryMarker])",
17
+ "([hierarchiable])",
18
+ "((hierarchiable) [hierarchy|] (hierarchiable))",
19
+ "((hierarchiable) (hierarchiable) [hierarchy|])",
20
+ "([hierarchy|] (hierarchiable) (hierarchiable))",
21
+ ],
22
+ bridges: [
23
+ {
24
+ id: "queryMarker",
25
+ bridge: "{ ...next(before[0]), question: true }",
26
+ before: ['hierarchy'],
27
+ },
28
+ { id: "hierarchiable" },
29
+ {
30
+ id: "hierarchy",
31
+ localHierarchy: [['unknown', 'hierarchiable']],
32
+ bridge: "{ ...next(operator), child: arguments[0], parent: arguments[1], question: less_than(indexes.operator, indexes.arguments[0]), interpolate: all }",
33
+ words: [
34
+ { word: 'sum', number: 'singular', person: 'first' },
35
+ { word: 'es', number: 'singular', person: 'second' },
36
+ { word: 'est', number: 'singular', person: 'third' },
37
+ { word: 'sumus', number: 'plural', person: 'first' },
38
+ { word: 'estis', number: 'plural', person: 'second' },
39
+ { word: 'sunt', number: 'plural', person: 'third' },
40
+ ]
41
+ },
42
+ ],
43
+ words: {
44
+ literals: {
45
+ "ne": [{ id: 'queryMarker', initial: { value: 'queryMarker' } }],
46
+ },
47
+ patterns: [
48
+ { "pattern": ["ne"], defs: [
49
+ {
50
+ id: "queryMarker",
51
+ uuid: '1',
52
+ initial: { value: 'greg' }
53
+ }
54
+ ]},
55
+ ],
56
+ },
57
+ };
58
+
59
+ knowledgeModule( {
60
+ config,
61
+ includes: [gdefaults],
62
+
63
+ module,
64
+ description: 'latin',
65
+ test: {
66
+ name: './latin.test.json',
67
+ contents: latin_tests,
68
+ checks: {
69
+ context: [defaultContextCheck()],
70
+ },
71
+ },
72
+ })