tpmkms_4wp 8.0.0-beta.76 → 8.0.0-beta.77

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
  "descending is a sort ordering",
6
6
  {
7
7
  "operators": [
8
- "((comparable/*) [sortOrdering] (<sort_ordering/*))"
8
+ "((comparable/*) [sortOrdering] (sort_ordering/*))"
9
9
  ],
10
10
  "bridges": [
11
11
  {
@@ -1552,7 +1552,7 @@
1552
1552
  {
1553
1553
  "extraConfig": true,
1554
1554
  "operators": [
1555
- "((comparable/*) [sortOrdering] (<sort_ordering/*))"
1555
+ "((comparable/*) [sortOrdering] (sort_ordering/*))"
1556
1556
  ],
1557
1557
  "bridges": [
1558
1558
  {
@@ -53,7 +53,7 @@ const template = {
53
53
  "descending is a sort ordering",
54
54
  {
55
55
  operators: [
56
- "((comparable/*) [sortOrdering] (<sort_ordering/*))",
56
+ "((comparable/*) [sortOrdering] (sort_ordering/*))",
57
57
  ],
58
58
  bridges: [
59
59
  {
@@ -896,5 +896,763 @@
896
896
  "responses": [
897
897
  ""
898
898
  ]
899
+ },
900
+ {
901
+ "associations": [
902
+ [
903
+ [
904
+ "ascending",
905
+ 0
906
+ ],
907
+ [
908
+ "unknown",
909
+ 0
910
+ ]
911
+ ],
912
+ [
913
+ [
914
+ "ascending",
915
+ 0
916
+ ],
917
+ [
918
+ "unknown",
919
+ 1
920
+ ]
921
+ ]
922
+ ],
923
+ "config": {
924
+ },
925
+ "contexts": [
926
+ {
927
+ "dead": true,
928
+ "level": 2,
929
+ "marker": "unknown",
930
+ "ordering": "ascending",
931
+ "postModifiers": [
932
+ "sortOrder"
933
+ ],
934
+ "range": {
935
+ "end": 14,
936
+ "start": 0
937
+ },
938
+ "sortOrder": {
939
+ "dead": true,
940
+ "level": 1,
941
+ "marker": "ascending",
942
+ "number": "one",
943
+ "range": {
944
+ "end": 14,
945
+ "start": 6
946
+ },
947
+ "text": "ascending",
948
+ "types": [
949
+ "ascending"
950
+ ],
951
+ "value": "ascending",
952
+ "word": "ascending"
953
+ },
954
+ "text": "email ascending",
955
+ "topLevel": true,
956
+ "types": [
957
+ "comparable",
958
+ "unknown"
959
+ ],
960
+ "unknown": true,
961
+ "value": "email",
962
+ "word": "email"
963
+ }
964
+ ],
965
+ "developerTest": false,
966
+ "generatedParenthesized": [
967
+ ""
968
+ ],
969
+ "metadata": {
970
+ "opChoices": [
971
+ {
972
+ "counter": 1,
973
+ "op": [
974
+ "unknown",
975
+ 0
976
+ ],
977
+ "ops": [
978
+ [
979
+ "ascending",
980
+ 0
981
+ ],
982
+ [
983
+ "sortOrdering",
984
+ 0
985
+ ],
986
+ [
987
+ "unknown",
988
+ 0
989
+ ]
990
+ ]
991
+ },
992
+ {
993
+ "counter": 2,
994
+ "op": [
995
+ "ascending",
996
+ 0
997
+ ],
998
+ "ops": [
999
+ [
1000
+ "ascending",
1001
+ 0
1002
+ ],
1003
+ [
1004
+ "sortOrdering",
1005
+ 0
1006
+ ]
1007
+ ]
1008
+ },
1009
+ {
1010
+ "counter": 3,
1011
+ "op": [
1012
+ "sortOrdering",
1013
+ 0
1014
+ ],
1015
+ "ops": [
1016
+ [
1017
+ "sortOrdering",
1018
+ 0
1019
+ ]
1020
+ ]
1021
+ }
1022
+ ]
1023
+ },
1024
+ "objects": {
1025
+ "nameToUUID": {
1026
+ "articles": "articles2",
1027
+ "comparable": "comparable1",
1028
+ "concept": "concept2",
1029
+ "dialogues": "dialogues2",
1030
+ "evaluate": "evaluate2",
1031
+ "gdefaults": "gdefaults2",
1032
+ "meta": "meta2",
1033
+ "negation": "negation2",
1034
+ "numbers": "numbers2",
1035
+ "pos": "pos2",
1036
+ "punctuation": "punctuation2",
1037
+ "sdefaults": "sdefaults2",
1038
+ "stm": "stm2",
1039
+ "tokenize": "tokenize2"
1040
+ },
1041
+ "namespaced": {
1042
+ "articles2": {
1043
+ },
1044
+ "comparable1": {
1045
+ },
1046
+ "concept2": {
1047
+ "defaultTypesForHierarchy": {
1048
+ },
1049
+ "valueToWords": [
1050
+ ]
1051
+ },
1052
+ "dialogues2": {
1053
+ "idSuffix": "",
1054
+ "mentioned": [
1055
+ ],
1056
+ "variables": {
1057
+ }
1058
+ },
1059
+ "evaluate2": {
1060
+ },
1061
+ "gdefaults2": {
1062
+ },
1063
+ "meta2": {
1064
+ },
1065
+ "negation2": {
1066
+ },
1067
+ "numbers2": {
1068
+ },
1069
+ "pos2": {
1070
+ },
1071
+ "punctuation2": {
1072
+ },
1073
+ "sdefaults2": {
1074
+ },
1075
+ "stm2": {
1076
+ "mentioned": [
1077
+ {
1078
+ "dead": true,
1079
+ "fromSTM": true,
1080
+ "level": 1,
1081
+ "marker": "descending",
1082
+ "number": "one",
1083
+ "pullFromContext": false,
1084
+ "range": {
1085
+ "end": 28,
1086
+ "start": 0
1087
+ },
1088
+ "stm": {
1089
+ "id": 4
1090
+ },
1091
+ "text": "descending",
1092
+ "types": [
1093
+ "unknown"
1094
+ ],
1095
+ "unknown": true,
1096
+ "value": {
1097
+ "atomic": true,
1098
+ "concept": true,
1099
+ "dead": true,
1100
+ "determiner": {
1101
+ "default": true,
1102
+ "level": 0,
1103
+ "marker": "a",
1104
+ "range": {
1105
+ "end": 14,
1106
+ "start": 14
1107
+ },
1108
+ "text": "a",
1109
+ "word": "a"
1110
+ },
1111
+ "instance": true,
1112
+ "level": 1,
1113
+ "marker": "sort_ordering",
1114
+ "modifier_sort": {
1115
+ "level": 0,
1116
+ "marker": "sort",
1117
+ "number": "one",
1118
+ "range": {
1119
+ "end": 19,
1120
+ "start": 16
1121
+ },
1122
+ "text": "sort",
1123
+ "types": [
1124
+ "sort"
1125
+ ],
1126
+ "value": "sort",
1127
+ "word": "sort"
1128
+ },
1129
+ "modifiers": [
1130
+ "determiner",
1131
+ "modifier_sort"
1132
+ ],
1133
+ "number": "one",
1134
+ "pullFromContext": false,
1135
+ "range": {
1136
+ "end": 28,
1137
+ "start": 14
1138
+ },
1139
+ "text": "a sort ordering",
1140
+ "types": [
1141
+ "ordering",
1142
+ "sort_ordering"
1143
+ ],
1144
+ "value": "sort_ordering",
1145
+ "wantsValue": true,
1146
+ "word": "ordering"
1147
+ },
1148
+ "word": "descending"
1149
+ },
1150
+ {
1151
+ "fromSTM": true,
1152
+ "marker": "descending",
1153
+ "pullFromContext": false,
1154
+ "stm": {
1155
+ "id": 3
1156
+ },
1157
+ "value": {
1158
+ "atomic": true,
1159
+ "concept": true,
1160
+ "dead": true,
1161
+ "determiner": {
1162
+ "default": true,
1163
+ "level": 0,
1164
+ "marker": "a",
1165
+ "range": {
1166
+ "end": 14,
1167
+ "start": 14
1168
+ },
1169
+ "text": "a",
1170
+ "word": "a"
1171
+ },
1172
+ "instance": true,
1173
+ "level": 1,
1174
+ "marker": "sort_ordering",
1175
+ "modifier_sort": {
1176
+ "level": 0,
1177
+ "marker": "sort",
1178
+ "number": "one",
1179
+ "range": {
1180
+ "end": 19,
1181
+ "start": 16
1182
+ },
1183
+ "text": "sort",
1184
+ "types": [
1185
+ "sort"
1186
+ ],
1187
+ "value": "sort",
1188
+ "word": "sort"
1189
+ },
1190
+ "modifiers": [
1191
+ "determiner",
1192
+ "modifier_sort"
1193
+ ],
1194
+ "number": "one",
1195
+ "pullFromContext": false,
1196
+ "range": {
1197
+ "end": 28,
1198
+ "start": 14
1199
+ },
1200
+ "text": "a sort ordering",
1201
+ "types": [
1202
+ "ordering",
1203
+ "sort_ordering"
1204
+ ],
1205
+ "value": "sort_ordering",
1206
+ "wantsValue": true,
1207
+ "word": "ordering"
1208
+ }
1209
+ },
1210
+ {
1211
+ "dead": true,
1212
+ "fromSTM": true,
1213
+ "level": 1,
1214
+ "marker": "ascending",
1215
+ "number": "one",
1216
+ "pullFromContext": false,
1217
+ "range": {
1218
+ "end": 27,
1219
+ "start": 0
1220
+ },
1221
+ "stm": {
1222
+ "id": 2
1223
+ },
1224
+ "text": "ascending",
1225
+ "types": [
1226
+ "unknown"
1227
+ ],
1228
+ "unknown": true,
1229
+ "value": {
1230
+ "atomic": true,
1231
+ "concept": true,
1232
+ "dead": true,
1233
+ "determiner": {
1234
+ "default": true,
1235
+ "level": 0,
1236
+ "marker": "a",
1237
+ "range": {
1238
+ "end": 13,
1239
+ "start": 13
1240
+ },
1241
+ "text": "a",
1242
+ "word": "a"
1243
+ },
1244
+ "instance": true,
1245
+ "level": 1,
1246
+ "marker": "sort_ordering",
1247
+ "modifier_sort": {
1248
+ "level": 0,
1249
+ "marker": "sort",
1250
+ "number": "one",
1251
+ "range": {
1252
+ "end": 18,
1253
+ "start": 15
1254
+ },
1255
+ "text": "sort",
1256
+ "types": [
1257
+ "sort"
1258
+ ],
1259
+ "value": "sort",
1260
+ "word": "sort"
1261
+ },
1262
+ "modifiers": [
1263
+ "determiner",
1264
+ "modifier_sort"
1265
+ ],
1266
+ "number": "one",
1267
+ "pullFromContext": false,
1268
+ "range": {
1269
+ "end": 27,
1270
+ "start": 13
1271
+ },
1272
+ "text": "a sort ordering",
1273
+ "types": [
1274
+ "ordering",
1275
+ "sort_ordering"
1276
+ ],
1277
+ "value": "sort_ordering",
1278
+ "wantsValue": true,
1279
+ "word": "ordering"
1280
+ },
1281
+ "word": "ascending"
1282
+ },
1283
+ {
1284
+ "fromSTM": true,
1285
+ "marker": "ascending",
1286
+ "pullFromContext": false,
1287
+ "stm": {
1288
+ "id": 1
1289
+ },
1290
+ "value": {
1291
+ "atomic": true,
1292
+ "concept": true,
1293
+ "dead": true,
1294
+ "determiner": {
1295
+ "default": true,
1296
+ "level": 0,
1297
+ "marker": "a",
1298
+ "range": {
1299
+ "end": 13,
1300
+ "start": 13
1301
+ },
1302
+ "text": "a",
1303
+ "word": "a"
1304
+ },
1305
+ "instance": true,
1306
+ "level": 1,
1307
+ "marker": "sort_ordering",
1308
+ "modifier_sort": {
1309
+ "level": 0,
1310
+ "marker": "sort",
1311
+ "number": "one",
1312
+ "range": {
1313
+ "end": 18,
1314
+ "start": 15
1315
+ },
1316
+ "text": "sort",
1317
+ "types": [
1318
+ "sort"
1319
+ ],
1320
+ "value": "sort",
1321
+ "word": "sort"
1322
+ },
1323
+ "modifiers": [
1324
+ "determiner",
1325
+ "modifier_sort"
1326
+ ],
1327
+ "number": "one",
1328
+ "pullFromContext": false,
1329
+ "range": {
1330
+ "end": 27,
1331
+ "start": 13
1332
+ },
1333
+ "text": "a sort ordering",
1334
+ "types": [
1335
+ "ordering",
1336
+ "sort_ordering"
1337
+ ],
1338
+ "value": "sort_ordering",
1339
+ "wantsValue": true,
1340
+ "word": "ordering"
1341
+ }
1342
+ }
1343
+ ],
1344
+ "variables": {
1345
+ }
1346
+ },
1347
+ "tokenize2": {
1348
+ }
1349
+ },
1350
+ "processed": [
1351
+ {
1352
+ "context": {
1353
+ "dead": true,
1354
+ "level": 2,
1355
+ "marker": "unknown",
1356
+ "ordering": "ascending",
1357
+ "postModifiers": [
1358
+ "sortOrder"
1359
+ ],
1360
+ "range": {
1361
+ "end": 14,
1362
+ "start": 0
1363
+ },
1364
+ "sortOrder": {
1365
+ "dead": true,
1366
+ "level": 1,
1367
+ "marker": "ascending",
1368
+ "number": "one",
1369
+ "range": {
1370
+ "end": 14,
1371
+ "start": 6
1372
+ },
1373
+ "text": "ascending",
1374
+ "types": [
1375
+ "ascending"
1376
+ ],
1377
+ "value": "ascending",
1378
+ "word": "ascending"
1379
+ },
1380
+ "text": "email ascending",
1381
+ "topLevel": true,
1382
+ "types": [
1383
+ "comparable",
1384
+ "unknown"
1385
+ ],
1386
+ "unknown": true,
1387
+ "value": "email",
1388
+ "word": "email"
1389
+ },
1390
+ "generatedParenthesized": "",
1391
+ "paraphrases": "email ascending",
1392
+ "paraphrasesParenthesized": "((email) (ascending))",
1393
+ "responses": [
1394
+ ""
1395
+ ]
1396
+ },
1397
+ {
1398
+ "context": {
1399
+ "dead": true,
1400
+ "level": 2,
1401
+ "marker": "is",
1402
+ "number": "one",
1403
+ "one": {
1404
+ "dead": true,
1405
+ "level": 1,
1406
+ "marker": "unknown",
1407
+ "number": "one",
1408
+ "range": {
1409
+ "end": 28,
1410
+ "start": 0
1411
+ },
1412
+ "text": "descending",
1413
+ "types": [
1414
+ "unknown"
1415
+ ],
1416
+ "unknown": true,
1417
+ "value": "descending",
1418
+ "word": "descending"
1419
+ },
1420
+ "range": {
1421
+ "end": 28,
1422
+ "start": 0
1423
+ },
1424
+ "text": "descending is a sort ordering",
1425
+ "topLevel": true,
1426
+ "touchedBy": [
1427
+ "comparable#call2",
1428
+ "instance2#comparable#call2"
1429
+ ],
1430
+ "two": {
1431
+ "atomic": true,
1432
+ "concept": true,
1433
+ "dead": true,
1434
+ "determiner": {
1435
+ "default": true,
1436
+ "level": 0,
1437
+ "marker": "a",
1438
+ "range": {
1439
+ "end": 14,
1440
+ "start": 14
1441
+ },
1442
+ "text": "a",
1443
+ "word": "a"
1444
+ },
1445
+ "instance": true,
1446
+ "level": 1,
1447
+ "marker": "sort_ordering",
1448
+ "modifier_sort": {
1449
+ "level": 0,
1450
+ "marker": "sort",
1451
+ "number": "one",
1452
+ "range": {
1453
+ "end": 19,
1454
+ "start": 16
1455
+ },
1456
+ "text": "sort",
1457
+ "types": [
1458
+ "sort"
1459
+ ],
1460
+ "value": "sort",
1461
+ "word": "sort"
1462
+ },
1463
+ "modifiers": [
1464
+ "determiner",
1465
+ "modifier_sort"
1466
+ ],
1467
+ "number": "one",
1468
+ "pullFromContext": false,
1469
+ "range": {
1470
+ "end": 28,
1471
+ "start": 14
1472
+ },
1473
+ "text": "a sort ordering",
1474
+ "types": [
1475
+ "ordering",
1476
+ "sort_ordering"
1477
+ ],
1478
+ "value": "sort_ordering",
1479
+ "wantsValue": true,
1480
+ "word": "ordering"
1481
+ },
1482
+ "word": "is"
1483
+ },
1484
+ "generatedParenthesized": [
1485
+ ],
1486
+ "paraphrases": "descending is a sort ordering",
1487
+ "paraphrasesParenthesized": [
1488
+ ],
1489
+ "responses": [
1490
+ ""
1491
+ ]
1492
+ },
1493
+ {
1494
+ "context": {
1495
+ "dead": true,
1496
+ "level": 2,
1497
+ "marker": "is",
1498
+ "number": "one",
1499
+ "one": {
1500
+ "dead": true,
1501
+ "level": 1,
1502
+ "marker": "unknown",
1503
+ "number": "one",
1504
+ "range": {
1505
+ "end": 27,
1506
+ "start": 0
1507
+ },
1508
+ "text": "ascending",
1509
+ "types": [
1510
+ "unknown"
1511
+ ],
1512
+ "unknown": true,
1513
+ "value": "ascending",
1514
+ "word": "ascending"
1515
+ },
1516
+ "range": {
1517
+ "end": 27,
1518
+ "start": 0
1519
+ },
1520
+ "text": "ascending is a sort ordering",
1521
+ "topLevel": true,
1522
+ "touchedBy": [
1523
+ "comparable#call2",
1524
+ "instance1#comparable#call2"
1525
+ ],
1526
+ "two": {
1527
+ "atomic": true,
1528
+ "concept": true,
1529
+ "dead": true,
1530
+ "determiner": {
1531
+ "default": true,
1532
+ "level": 0,
1533
+ "marker": "a",
1534
+ "range": {
1535
+ "end": 13,
1536
+ "start": 13
1537
+ },
1538
+ "text": "a",
1539
+ "word": "a"
1540
+ },
1541
+ "instance": true,
1542
+ "level": 1,
1543
+ "marker": "sort_ordering",
1544
+ "modifier_sort": {
1545
+ "level": 0,
1546
+ "marker": "sort",
1547
+ "number": "one",
1548
+ "range": {
1549
+ "end": 18,
1550
+ "start": 15
1551
+ },
1552
+ "text": "sort",
1553
+ "types": [
1554
+ "sort"
1555
+ ],
1556
+ "value": "sort",
1557
+ "word": "sort"
1558
+ },
1559
+ "modifiers": [
1560
+ "determiner",
1561
+ "modifier_sort"
1562
+ ],
1563
+ "number": "one",
1564
+ "pullFromContext": false,
1565
+ "range": {
1566
+ "end": 27,
1567
+ "start": 13
1568
+ },
1569
+ "text": "a sort ordering",
1570
+ "types": [
1571
+ "ordering",
1572
+ "sort_ordering"
1573
+ ],
1574
+ "value": "sort_ordering",
1575
+ "wantsValue": true,
1576
+ "word": "ordering"
1577
+ },
1578
+ "word": "is"
1579
+ },
1580
+ "generatedParenthesized": [
1581
+ ],
1582
+ "paraphrases": "ascending is a sort ordering",
1583
+ "paraphrasesParenthesized": [
1584
+ ],
1585
+ "responses": [
1586
+ ""
1587
+ ]
1588
+ },
1589
+ {
1590
+ "context": {
1591
+ "concept": {
1592
+ "dead": true,
1593
+ "level": 1,
1594
+ "marker": "unknown",
1595
+ "range": {
1596
+ "end": 21,
1597
+ "start": 14
1598
+ },
1599
+ "text": "ordering",
1600
+ "unknown": true,
1601
+ "value": "ordering",
1602
+ "word": "ordering"
1603
+ },
1604
+ "dead": true,
1605
+ "flatten": false,
1606
+ "level": 1,
1607
+ "marker": "modifies",
1608
+ "modifiers": [
1609
+ {
1610
+ "dead": true,
1611
+ "level": 1,
1612
+ "marker": "unknown",
1613
+ "range": {
1614
+ "end": 3,
1615
+ "start": 0
1616
+ },
1617
+ "text": "sort",
1618
+ "unknown": true,
1619
+ "value": "sort",
1620
+ "word": "sort"
1621
+ }
1622
+ ],
1623
+ "number": "one",
1624
+ "range": {
1625
+ "end": 21,
1626
+ "start": 0
1627
+ },
1628
+ "text": "sort modifies ordering",
1629
+ "topLevel": true,
1630
+ "touchedBy": [
1631
+ "comparable#call2",
1632
+ "instance0#comparable#call2"
1633
+ ],
1634
+ "word": "modifies"
1635
+ },
1636
+ "generatedParenthesized": [
1637
+ ],
1638
+ "paraphrases": "sort modifies ordering",
1639
+ "paraphrasesParenthesized": [
1640
+ ],
1641
+ "responses": [
1642
+ ""
1643
+ ]
1644
+ }
1645
+ ]
1646
+ },
1647
+ "paraphrases": [
1648
+ "email ascending"
1649
+ ],
1650
+ "paraphrasesParenthesized": [
1651
+ "((email) (ascending))"
1652
+ ],
1653
+ "query": "email ascending",
1654
+ "responses": [
1655
+ ""
1656
+ ]
899
1657
  }
900
1658
  ]
@@ -9,7 +9,7 @@ const punctuation = require('./punctuation.js')
9
9
  const stm = require('./stm.js')
10
10
  const _ = require('lodash')
11
11
  const { API } = require('./helpers/dialogues')
12
- const { isMany, propertyToArray } = require('./helpers')
12
+ const { isMany, propertyToArray, words } = require('./helpers')
13
13
  const dialogues_tests = require('./dialogues.test.json')
14
14
  const { defaultContextCheck, indent, focus } = require('./helpers')
15
15
  const pluralize = require('pluralize')
@@ -929,6 +929,11 @@ const initializer = ({objects, config, isModule}) => {
929
929
  toScopedId: (context) => {
930
930
  return api('dialogues').toScopedId(context)
931
931
  },
932
+ addWords: (id, word, additional) => {
933
+ for (let props of words(word, additional)) {
934
+ config.addWord(id, props)
935
+ }
936
+ }
932
937
  }))
933
938
  objects.mentioned = []
934
939
  objects.variables = {
package/common/helpers.js CHANGED
@@ -33,8 +33,8 @@ const getCount = (context) => {
33
33
  }
34
34
  }
35
35
 
36
- const words = (base, additional = {}) => {
37
- return [{ word: pluralize.singular(base), number: 'one', ...additional }, { word: pluralize.plural(base), number: 'many', ...additional }]
36
+ const words = (word, additional = {}) => {
37
+ return [{ word: pluralize.singular(word), number: 'one', ...additional }, { word: pluralize.plural(word), number: 'many', ...additional }]
38
38
  }
39
39
 
40
40
  const isMany = (context) => {
package/package.json CHANGED
@@ -295,8 +295,8 @@
295
295
  "table": "^6.7.1",
296
296
  "base-64": "^1.0.0",
297
297
  "argparse": "^2.0.1",
298
- "theprogrammablemind_4wp": "8.0.0-beta.76"
298
+ "theprogrammablemind_4wp": "8.0.0-beta.77"
299
299
  },
300
- "version": "8.0.0-beta.76",
300
+ "version": "8.0.0-beta.77",
301
301
  "license": "UNLICENSED"
302
302
  }