tpmkms_4wp 8.9.0-beta.3 → 8.9.0-beta.4
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.
- package/common/countable.js +8 -2
- package/common/countable.test.json +586 -0
- package/common/hierarchy.js +5 -5
- package/common/hierarchy.test.json +1491 -0
- package/common/pipboy.instance.json +28 -28
- package/common/wp.instance.json +5986 -618
- package/common/wp.js +33 -3
- package/common/wp.test.json +1120 -0
- package/package.json +2 -2
package/common/countable.js
CHANGED
@@ -20,6 +20,7 @@ let config = {
|
|
20
20
|
"([more] (countable/*))",
|
21
21
|
"([less] (countable/*))",
|
22
22
|
"([all])",
|
23
|
+
"([every])",
|
23
24
|
// everything
|
24
25
|
],
|
25
26
|
bridges: [
|
@@ -56,7 +57,7 @@ let config = {
|
|
56
57
|
},
|
57
58
|
{
|
58
59
|
id: "quantifier",
|
59
|
-
children: ['number', 'all'],
|
60
|
+
children: ['number', 'all', 'every'],
|
60
61
|
},
|
61
62
|
{
|
62
63
|
id: "countable",
|
@@ -65,7 +66,12 @@ let config = {
|
|
65
66
|
{
|
66
67
|
id: "all",
|
67
68
|
generatorp: ({context}) => 'all',
|
68
|
-
bridge: "{ ...next(operator), number: 'many' }"
|
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' }"
|
69
75
|
},
|
70
76
|
],
|
71
77
|
|
@@ -4746,5 +4746,591 @@
|
|
4746
4746
|
"responses": [
|
4747
4747
|
""
|
4748
4748
|
]
|
4749
|
+
},
|
4750
|
+
{
|
4751
|
+
"associations": [
|
4752
|
+
[
|
4753
|
+
[
|
4754
|
+
"countable",
|
4755
|
+
0
|
4756
|
+
],
|
4757
|
+
[
|
4758
|
+
"every",
|
4759
|
+
0
|
4760
|
+
]
|
4761
|
+
]
|
4762
|
+
],
|
4763
|
+
"config": {
|
4764
|
+
},
|
4765
|
+
"contexts": [
|
4766
|
+
{
|
4767
|
+
"dead": true,
|
4768
|
+
"default": true,
|
4769
|
+
"instance": true,
|
4770
|
+
"level": 1,
|
4771
|
+
"marker": "countable",
|
4772
|
+
"modifiers": [
|
4773
|
+
"quantity"
|
4774
|
+
],
|
4775
|
+
"number": "one",
|
4776
|
+
"quantity": {
|
4777
|
+
"dead": true,
|
4778
|
+
"default": true,
|
4779
|
+
"level": 1,
|
4780
|
+
"marker": "every",
|
4781
|
+
"number": "one",
|
4782
|
+
"quantity": "every",
|
4783
|
+
"range": {
|
4784
|
+
"end": 4,
|
4785
|
+
"start": 0
|
4786
|
+
},
|
4787
|
+
"text": "every",
|
4788
|
+
"types": [
|
4789
|
+
"every"
|
4790
|
+
],
|
4791
|
+
"value": "every",
|
4792
|
+
"word": "every"
|
4793
|
+
},
|
4794
|
+
"range": {
|
4795
|
+
"end": 14,
|
4796
|
+
"start": 0
|
4797
|
+
},
|
4798
|
+
"text": "every countable",
|
4799
|
+
"topLevel": true,
|
4800
|
+
"types": [
|
4801
|
+
"countable"
|
4802
|
+
],
|
4803
|
+
"value": "countable",
|
4804
|
+
"word": "countable"
|
4805
|
+
}
|
4806
|
+
],
|
4807
|
+
"developerTest": false,
|
4808
|
+
"generatedParenthesized": [
|
4809
|
+
""
|
4810
|
+
],
|
4811
|
+
"metadata": {
|
4812
|
+
"opChoices": [
|
4813
|
+
{
|
4814
|
+
"counter": 1,
|
4815
|
+
"op": [
|
4816
|
+
"every",
|
4817
|
+
0
|
4818
|
+
],
|
4819
|
+
"ops": [
|
4820
|
+
[
|
4821
|
+
"countable",
|
4822
|
+
0
|
4823
|
+
],
|
4824
|
+
[
|
4825
|
+
"counting",
|
4826
|
+
0
|
4827
|
+
],
|
4828
|
+
[
|
4829
|
+
"every",
|
4830
|
+
0
|
4831
|
+
]
|
4832
|
+
]
|
4833
|
+
},
|
4834
|
+
{
|
4835
|
+
"counter": 2,
|
4836
|
+
"op": [
|
4837
|
+
"countable",
|
4838
|
+
0
|
4839
|
+
],
|
4840
|
+
"ops": [
|
4841
|
+
[
|
4842
|
+
"countable",
|
4843
|
+
0
|
4844
|
+
],
|
4845
|
+
[
|
4846
|
+
"counting",
|
4847
|
+
0
|
4848
|
+
]
|
4849
|
+
]
|
4850
|
+
},
|
4851
|
+
{
|
4852
|
+
"counter": 3,
|
4853
|
+
"op": [
|
4854
|
+
"counting",
|
4855
|
+
0
|
4856
|
+
],
|
4857
|
+
"ops": [
|
4858
|
+
[
|
4859
|
+
"counting",
|
4860
|
+
0
|
4861
|
+
]
|
4862
|
+
]
|
4863
|
+
}
|
4864
|
+
]
|
4865
|
+
},
|
4866
|
+
"objects": {
|
4867
|
+
"nameToUUID": {
|
4868
|
+
"articles": "articles2",
|
4869
|
+
"asking": "asking2",
|
4870
|
+
"concept": "concept2",
|
4871
|
+
"conjunction": "conjunction2",
|
4872
|
+
"countable": "countable1",
|
4873
|
+
"dialogues": "dialogues2",
|
4874
|
+
"evaluate": "evaluate2",
|
4875
|
+
"gdefaults": "gdefaults2",
|
4876
|
+
"hierarchy": "hierarchy2",
|
4877
|
+
"meta": "meta2",
|
4878
|
+
"negation": "negation2",
|
4879
|
+
"numbers": "numbers2",
|
4880
|
+
"pos": "pos2",
|
4881
|
+
"properties": "properties2",
|
4882
|
+
"punctuation": "punctuation2",
|
4883
|
+
"sdefaults": "sdefaults2",
|
4884
|
+
"stm": "stm2",
|
4885
|
+
"tokenize": "tokenize2"
|
4886
|
+
},
|
4887
|
+
"namespaced": {
|
4888
|
+
"articles2": {
|
4889
|
+
},
|
4890
|
+
"asking2": {
|
4891
|
+
},
|
4892
|
+
"concept2": {
|
4893
|
+
"defaultTypesForHierarchy": {
|
4894
|
+
},
|
4895
|
+
"valueToWords": [
|
4896
|
+
]
|
4897
|
+
},
|
4898
|
+
"conjunction2": {
|
4899
|
+
},
|
4900
|
+
"countable1": {
|
4901
|
+
},
|
4902
|
+
"dialogues2": {
|
4903
|
+
"idSuffix": "",
|
4904
|
+
"mentioned": [
|
4905
|
+
],
|
4906
|
+
"variables": {
|
4907
|
+
}
|
4908
|
+
},
|
4909
|
+
"evaluate2": {
|
4910
|
+
},
|
4911
|
+
"gdefaults2": {
|
4912
|
+
},
|
4913
|
+
"hierarchy2": {
|
4914
|
+
},
|
4915
|
+
"meta2": {
|
4916
|
+
},
|
4917
|
+
"negation2": {
|
4918
|
+
},
|
4919
|
+
"numbers2": {
|
4920
|
+
},
|
4921
|
+
"pos2": {
|
4922
|
+
},
|
4923
|
+
"properties2": {
|
4924
|
+
"children": {
|
4925
|
+
"adjective": [
|
4926
|
+
"stm_before"
|
4927
|
+
],
|
4928
|
+
"articlePOS": [
|
4929
|
+
"a",
|
4930
|
+
"the"
|
4931
|
+
],
|
4932
|
+
"canBeDoQuestion": [
|
4933
|
+
"have"
|
4934
|
+
],
|
4935
|
+
"canBeQuestion": [
|
4936
|
+
"have",
|
4937
|
+
"is"
|
4938
|
+
],
|
4939
|
+
"hierarchyAble": [
|
4940
|
+
"unknown"
|
4941
|
+
],
|
4942
|
+
"ifAble": [
|
4943
|
+
"orAble"
|
4944
|
+
],
|
4945
|
+
"object": [
|
4946
|
+
"what",
|
4947
|
+
"whose"
|
4948
|
+
],
|
4949
|
+
"preposition": [
|
4950
|
+
"between",
|
4951
|
+
"propertyOf",
|
4952
|
+
"to"
|
4953
|
+
],
|
4954
|
+
"pronoun": [
|
4955
|
+
"it",
|
4956
|
+
"this"
|
4957
|
+
],
|
4958
|
+
"punctuation": [
|
4959
|
+
"questionMark"
|
4960
|
+
],
|
4961
|
+
"queryable": [
|
4962
|
+
"xfx",
|
4963
|
+
"hierarchyAble",
|
4964
|
+
"readonly",
|
4965
|
+
"property",
|
4966
|
+
"object",
|
4967
|
+
"concept",
|
4968
|
+
"doubleQuote",
|
4969
|
+
"theAble",
|
4970
|
+
"unknown",
|
4971
|
+
"it",
|
4972
|
+
"what",
|
4973
|
+
"whatAble",
|
4974
|
+
"this",
|
4975
|
+
"reason",
|
4976
|
+
"thisitthat"
|
4977
|
+
],
|
4978
|
+
"theAble": [
|
4979
|
+
"property",
|
4980
|
+
"object",
|
4981
|
+
"concept",
|
4982
|
+
"unknown",
|
4983
|
+
"reason",
|
4984
|
+
"memorable",
|
4985
|
+
"noun"
|
4986
|
+
],
|
4987
|
+
"thisitthat": [
|
4988
|
+
"it",
|
4989
|
+
"this",
|
4990
|
+
"that"
|
4991
|
+
],
|
4992
|
+
"toAble": [
|
4993
|
+
"it"
|
4994
|
+
],
|
4995
|
+
"verb": [
|
4996
|
+
"modifies",
|
4997
|
+
"is",
|
4998
|
+
"remember",
|
4999
|
+
"evaluate"
|
5000
|
+
]
|
5001
|
+
},
|
5002
|
+
"concepts": [
|
5003
|
+
"properties",
|
5004
|
+
"unknown",
|
5005
|
+
"hierarchyAble",
|
5006
|
+
"what",
|
5007
|
+
"object",
|
5008
|
+
"xfx",
|
5009
|
+
"queryable",
|
5010
|
+
"between",
|
5011
|
+
"preposition",
|
5012
|
+
"readonly",
|
5013
|
+
"have",
|
5014
|
+
"canBeDoQuestion",
|
5015
|
+
"canBeQuestion",
|
5016
|
+
"property",
|
5017
|
+
"theAble",
|
5018
|
+
"propertyOf",
|
5019
|
+
"whose",
|
5020
|
+
"concept",
|
5021
|
+
"modifies",
|
5022
|
+
"verb",
|
5023
|
+
"doubleQuote",
|
5024
|
+
"it",
|
5025
|
+
"pronoun",
|
5026
|
+
"this",
|
5027
|
+
"questionMark",
|
5028
|
+
"punctuation",
|
5029
|
+
"a",
|
5030
|
+
"articlePOS",
|
5031
|
+
"the",
|
5032
|
+
"whatAble",
|
5033
|
+
"is",
|
5034
|
+
"toAble",
|
5035
|
+
"to",
|
5036
|
+
"reason",
|
5037
|
+
"memorable",
|
5038
|
+
"remember",
|
5039
|
+
"stm_before",
|
5040
|
+
"adjective",
|
5041
|
+
"orAble",
|
5042
|
+
"ifAble",
|
5043
|
+
"evaluate",
|
5044
|
+
"noun",
|
5045
|
+
"thisitthat",
|
5046
|
+
"that"
|
5047
|
+
],
|
5048
|
+
"parents": {
|
5049
|
+
"a": [
|
5050
|
+
"articlePOS"
|
5051
|
+
],
|
5052
|
+
"between": [
|
5053
|
+
"preposition"
|
5054
|
+
],
|
5055
|
+
"concept": [
|
5056
|
+
"theAble",
|
5057
|
+
"queryable"
|
5058
|
+
],
|
5059
|
+
"doubleQuote": [
|
5060
|
+
"queryable"
|
5061
|
+
],
|
5062
|
+
"evaluate": [
|
5063
|
+
"verb"
|
5064
|
+
],
|
5065
|
+
"have": [
|
5066
|
+
"canBeDoQuestion",
|
5067
|
+
"canBeQuestion"
|
5068
|
+
],
|
5069
|
+
"hierarchyAble": [
|
5070
|
+
"queryable"
|
5071
|
+
],
|
5072
|
+
"is": [
|
5073
|
+
"canBeQuestion",
|
5074
|
+
"verb"
|
5075
|
+
],
|
5076
|
+
"it": [
|
5077
|
+
"pronoun",
|
5078
|
+
"queryable",
|
5079
|
+
"toAble",
|
5080
|
+
"thisitthat"
|
5081
|
+
],
|
5082
|
+
"memorable": [
|
5083
|
+
"theAble"
|
5084
|
+
],
|
5085
|
+
"modifies": [
|
5086
|
+
"verb"
|
5087
|
+
],
|
5088
|
+
"noun": [
|
5089
|
+
"theAble"
|
5090
|
+
],
|
5091
|
+
"object": [
|
5092
|
+
"queryable",
|
5093
|
+
"theAble"
|
5094
|
+
],
|
5095
|
+
"orAble": [
|
5096
|
+
"ifAble"
|
5097
|
+
],
|
5098
|
+
"property": [
|
5099
|
+
"queryable",
|
5100
|
+
"theAble"
|
5101
|
+
],
|
5102
|
+
"propertyOf": [
|
5103
|
+
"preposition"
|
5104
|
+
],
|
5105
|
+
"questionMark": [
|
5106
|
+
"punctuation"
|
5107
|
+
],
|
5108
|
+
"readonly": [
|
5109
|
+
"queryable"
|
5110
|
+
],
|
5111
|
+
"reason": [
|
5112
|
+
"theAble",
|
5113
|
+
"queryable"
|
5114
|
+
],
|
5115
|
+
"remember": [
|
5116
|
+
"verb"
|
5117
|
+
],
|
5118
|
+
"stm_before": [
|
5119
|
+
"adjective"
|
5120
|
+
],
|
5121
|
+
"that": [
|
5122
|
+
"thisitthat"
|
5123
|
+
],
|
5124
|
+
"the": [
|
5125
|
+
"articlePOS"
|
5126
|
+
],
|
5127
|
+
"theAble": [
|
5128
|
+
"queryable"
|
5129
|
+
],
|
5130
|
+
"this": [
|
5131
|
+
"pronoun",
|
5132
|
+
"queryable",
|
5133
|
+
"thisitthat"
|
5134
|
+
],
|
5135
|
+
"thisitthat": [
|
5136
|
+
"queryable"
|
5137
|
+
],
|
5138
|
+
"to": [
|
5139
|
+
"preposition"
|
5140
|
+
],
|
5141
|
+
"unknown": [
|
5142
|
+
"hierarchyAble",
|
5143
|
+
"theAble",
|
5144
|
+
"queryable"
|
5145
|
+
],
|
5146
|
+
"what": [
|
5147
|
+
"object",
|
5148
|
+
"queryable"
|
5149
|
+
],
|
5150
|
+
"whatAble": [
|
5151
|
+
"queryable"
|
5152
|
+
],
|
5153
|
+
"whose": [
|
5154
|
+
"object"
|
5155
|
+
],
|
5156
|
+
"xfx": [
|
5157
|
+
"queryable"
|
5158
|
+
]
|
5159
|
+
},
|
5160
|
+
"properties": {
|
5161
|
+
"handlers": {
|
5162
|
+
},
|
5163
|
+
"initHandlers": [
|
5164
|
+
],
|
5165
|
+
"root": {
|
5166
|
+
"a": {
|
5167
|
+
},
|
5168
|
+
"adjective": {
|
5169
|
+
},
|
5170
|
+
"articlePOS": {
|
5171
|
+
},
|
5172
|
+
"between": {
|
5173
|
+
},
|
5174
|
+
"canBeDoQuestion": {
|
5175
|
+
},
|
5176
|
+
"canBeQuestion": {
|
5177
|
+
},
|
5178
|
+
"concept": {
|
5179
|
+
},
|
5180
|
+
"doubleQuote": {
|
5181
|
+
},
|
5182
|
+
"evaluate": {
|
5183
|
+
},
|
5184
|
+
"have": {
|
5185
|
+
},
|
5186
|
+
"hierarchyAble": {
|
5187
|
+
},
|
5188
|
+
"ifAble": {
|
5189
|
+
},
|
5190
|
+
"is": {
|
5191
|
+
},
|
5192
|
+
"it": {
|
5193
|
+
},
|
5194
|
+
"memorable": {
|
5195
|
+
},
|
5196
|
+
"modifies": {
|
5197
|
+
},
|
5198
|
+
"noun": {
|
5199
|
+
},
|
5200
|
+
"object": {
|
5201
|
+
},
|
5202
|
+
"orAble": {
|
5203
|
+
},
|
5204
|
+
"preposition": {
|
5205
|
+
},
|
5206
|
+
"pronoun": {
|
5207
|
+
},
|
5208
|
+
"property": {
|
5209
|
+
},
|
5210
|
+
"propertyOf": {
|
5211
|
+
},
|
5212
|
+
"punctuation": {
|
5213
|
+
},
|
5214
|
+
"queryable": {
|
5215
|
+
},
|
5216
|
+
"questionMark": {
|
5217
|
+
},
|
5218
|
+
"readonly": {
|
5219
|
+
},
|
5220
|
+
"reason": {
|
5221
|
+
},
|
5222
|
+
"remember": {
|
5223
|
+
},
|
5224
|
+
"stm_before": {
|
5225
|
+
},
|
5226
|
+
"that": {
|
5227
|
+
},
|
5228
|
+
"the": {
|
5229
|
+
},
|
5230
|
+
"theAble": {
|
5231
|
+
},
|
5232
|
+
"this": {
|
5233
|
+
},
|
5234
|
+
"thisitthat": {
|
5235
|
+
},
|
5236
|
+
"to": {
|
5237
|
+
},
|
5238
|
+
"toAble": {
|
5239
|
+
},
|
5240
|
+
"unknown": {
|
5241
|
+
},
|
5242
|
+
"verb": {
|
5243
|
+
},
|
5244
|
+
"what": {
|
5245
|
+
},
|
5246
|
+
"whatAble": {
|
5247
|
+
},
|
5248
|
+
"whose": {
|
5249
|
+
},
|
5250
|
+
"xfx": {
|
5251
|
+
}
|
5252
|
+
}
|
5253
|
+
},
|
5254
|
+
"property": {
|
5255
|
+
},
|
5256
|
+
"relations": [
|
5257
|
+
],
|
5258
|
+
"valueToWords": {
|
5259
|
+
}
|
5260
|
+
},
|
5261
|
+
"punctuation2": {
|
5262
|
+
},
|
5263
|
+
"sdefaults2": {
|
5264
|
+
},
|
5265
|
+
"stm2": {
|
5266
|
+
"mentioned": [
|
5267
|
+
],
|
5268
|
+
"variables": {
|
5269
|
+
}
|
5270
|
+
},
|
5271
|
+
"tokenize2": {
|
5272
|
+
}
|
5273
|
+
},
|
5274
|
+
"processed": [
|
5275
|
+
{
|
5276
|
+
"context": {
|
5277
|
+
"dead": true,
|
5278
|
+
"default": true,
|
5279
|
+
"instance": true,
|
5280
|
+
"level": 1,
|
5281
|
+
"marker": "countable",
|
5282
|
+
"modifiers": [
|
5283
|
+
"quantity"
|
5284
|
+
],
|
5285
|
+
"number": "one",
|
5286
|
+
"quantity": {
|
5287
|
+
"dead": true,
|
5288
|
+
"default": true,
|
5289
|
+
"level": 1,
|
5290
|
+
"marker": "every",
|
5291
|
+
"number": "one",
|
5292
|
+
"quantity": "every",
|
5293
|
+
"range": {
|
5294
|
+
"end": 4,
|
5295
|
+
"start": 0
|
5296
|
+
},
|
5297
|
+
"text": "every",
|
5298
|
+
"types": [
|
5299
|
+
"every"
|
5300
|
+
],
|
5301
|
+
"value": "every",
|
5302
|
+
"word": "every"
|
5303
|
+
},
|
5304
|
+
"range": {
|
5305
|
+
"end": 14,
|
5306
|
+
"start": 0
|
5307
|
+
},
|
5308
|
+
"text": "every countable",
|
5309
|
+
"topLevel": true,
|
5310
|
+
"types": [
|
5311
|
+
"countable"
|
5312
|
+
],
|
5313
|
+
"value": "countable",
|
5314
|
+
"word": "countable"
|
5315
|
+
},
|
5316
|
+
"generatedParenthesized": "",
|
5317
|
+
"paraphrases": "every countable",
|
5318
|
+
"paraphrasesParenthesized": "((every) (countable))",
|
5319
|
+
"responses": [
|
5320
|
+
""
|
5321
|
+
]
|
5322
|
+
}
|
5323
|
+
]
|
5324
|
+
},
|
5325
|
+
"paraphrases": [
|
5326
|
+
"every countable"
|
5327
|
+
],
|
5328
|
+
"paraphrasesParenthesized": [
|
5329
|
+
"((every) (countable))"
|
5330
|
+
],
|
5331
|
+
"query": "every countable",
|
5332
|
+
"responses": [
|
5333
|
+
""
|
5334
|
+
]
|
4749
5335
|
}
|
4750
5336
|
]
|
package/common/hierarchy.js
CHANGED
@@ -252,9 +252,9 @@ let config = {
|
|
252
252
|
const twoConcepts = asList(context.same);
|
253
253
|
for (let oneConcept of oneConcepts.value) {
|
254
254
|
for (let twoConcept of twoConcepts.value) {
|
255
|
-
|
256
|
-
|
257
|
-
api.rememberIsA(
|
255
|
+
oneConceptId = api.makeObject({config, context: oneConcept})
|
256
|
+
twoConceptId = api.makeObject({config, context: twoConcept})
|
257
|
+
api.rememberIsA(oneConceptId, twoConceptId)
|
258
258
|
context.sameWasProcessed = true
|
259
259
|
}
|
260
260
|
}
|
@@ -305,8 +305,8 @@ knowledgeModule( {
|
|
305
305
|
checks: {
|
306
306
|
objects: ['children', 'concept', 'parents', 'properties'],
|
307
307
|
checks: {
|
308
|
-
|
309
|
-
|
308
|
+
context: defaultContextCheck(),
|
309
|
+
},
|
310
310
|
|
311
311
|
},
|
312
312
|
includes: {
|