ekms 8.0.0 → 8.1.0
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/animals.instance.json +3003 -1651
- package/common/animals.js +17 -20
- package/common/articles.js +103 -0
- package/common/articles.test.json +310 -0
- package/common/asking.instance.json +2 -0
- package/common/asking.js +253 -0
- package/common/asking.test.json +2290 -0
- package/common/avatar.js +6 -10
- package/common/characters.js +23 -30
- package/common/colors.instance.json +25513 -0
- package/common/colors.js +67 -0
- package/common/colors.test.json +4425 -0
- package/common/comparable.instance.json +1750 -0
- package/common/comparable.js +36 -28
- package/common/comparable.test.json +1196 -2
- package/common/concept.js +121 -119
- package/common/conjunction.instance.json +2 -0
- package/common/conjunction.js +104 -0
- package/common/conjunction.test.json +322 -0
- package/common/countable.js +20 -14
- package/common/countable.test.json +1050 -0
- package/common/crew.instance.json +16855 -9731
- package/common/crew.js +39 -42
- package/common/crew.test.json +714 -452
- package/common/currency.js +28 -46
- package/common/dialogues.js +177 -426
- package/common/dialogues.test.json +684 -450
- package/common/dimension.instance.json +508 -289
- package/common/dimension.js +22 -24
- package/common/dimension.test.json +727 -1944
- package/common/edible.instance.json +20548 -10848
- package/common/edible.js +4 -9
- package/common/emotions.instance.json +255 -123
- package/common/emotions.js +36 -39
- package/common/evaluate.instance.json +2 -0
- package/common/evaluate.js +53 -0
- package/common/evaluate.test.json +574 -0
- package/common/events.js +11 -15
- package/common/fastfood.instance.json +223039 -113390
- package/common/fastfood.js +77 -87
- package/common/fastfood.test.json +8205 -3733
- package/common/formulas.instance.json +444 -244
- package/common/formulas.js +20 -27
- package/common/formulas.test.json +1027 -955
- package/common/gdefaults.js +40 -27
- package/common/help.js +9 -14
- package/common/help.test.json +71 -18
- package/common/helpers/concept.js +33 -10
- package/common/helpers/dialogues.js +22 -4
- package/common/helpers/formulas.js +0 -14
- package/common/helpers/meta.js +0 -1
- package/common/helpers/properties.js +72 -76
- package/common/helpers.js +35 -24
- package/common/hierarchy.js +17 -25
- package/common/javascript.js +12 -19
- package/common/kirk.instance.json +586 -298
- package/common/kirk.js +6 -9
- package/common/length.instance.json +9158 -5124
- package/common/length.js +5 -9
- package/common/listener.js +48 -0
- package/common/listener.test.json +104 -0
- package/common/math.instance.json +409 -1202
- package/common/math.js +17 -21
- package/common/meta.js +24 -50
- package/common/nameable.instance.json +2 -0
- package/common/nameable.js +144 -0
- package/common/nameable.test.json +3191 -0
- package/common/negation.instance.json +2 -0
- package/common/negation.js +38 -0
- package/common/negation.test.json +308 -0
- package/common/numbers.js +28 -32
- package/common/ordering.instance.json +449 -273
- package/common/ordering.js +81 -87
- package/common/ordinals.instance.json +2 -0
- package/common/ordinals.js +60 -0
- package/common/ordinals.test.json +306 -0
- package/common/people.instance.json +2176 -1141
- package/common/people.js +9 -14
- package/common/percentages.instance.json +2 -0
- package/common/percentages.js +53 -0
- package/common/percentages.test.json +751 -0
- package/common/pipboy.instance.json +12120 -6879
- package/common/pipboy.js +53 -62
- package/common/pipboy.test.json +2835 -0
- package/common/pokemon.instance.json +4415 -2351
- package/common/pokemon.js +8 -21
- package/common/pos.js +16 -14
- package/common/pressure.instance.json +2348 -1373
- package/common/pressure.js +5 -9
- package/common/properties.instance.json +151 -87
- package/common/properties.js +156 -167
- package/common/properties.test.json +17605 -4030
- package/common/punctuation.js +24 -8
- package/common/punctuation.test.json +233 -5
- package/common/reports.instance.json +1027 -551
- package/common/reports.js +77 -103
- package/common/reports.test.json +15623 -10458
- package/common/scorekeeper.js +19 -31
- package/common/sdefaults.js +17 -8
- package/common/sizeable.js +13 -12
- package/common/spock.instance.json +585 -297
- package/common/spock.js +6 -9
- package/common/stgame.js +20 -20
- package/common/stm.js +182 -29
- package/common/stm.test.json +1734 -1
- package/common/tell.js +15 -19
- package/common/temperature.instance.json +2480 -1493
- package/common/temperature.js +5 -9
- package/common/tester.js +15 -4
- package/common/testing.js +8 -13
- package/common/time.js +21 -26
- package/common/tokenize.js +8 -8
- package/common/tokenize.test.json +86 -1
- package/common/ui.instance.json +151 -460
- package/common/ui.js +22 -34
- package/common/ui.test.json +641 -5357
- package/common/weight.instance.json +8072 -4490
- package/common/weight.js +5 -9
- package/common/weight.test.json +242 -238
- package/common/yesno.js +6 -6
- package/main.js +68 -45
- package/package.json +44 -6
package/common/concept.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
const {
|
1
|
+
const { knowledgeModule, flatten, where, Digraph } = require('./runtime').theprogrammablemind
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
3
|
const { API }= require('./helpers/concept')
|
4
4
|
const dialogues = require('./dialogues.js')
|
@@ -14,140 +14,142 @@ const concept_instance = require('./concept.instance.json')
|
|
14
14
|
plain and regular fries mean the same thing
|
15
15
|
*/
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
{
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
"word": "water"
|
52
|
-
},
|
53
|
-
"marker": "water_type",
|
54
|
-
"modifiers": [
|
55
|
-
"water"
|
56
|
-
],
|
57
|
-
"types": [
|
58
|
-
"water_type"
|
59
|
-
],
|
60
|
-
"value": "water_type",
|
61
|
-
"word": "type",
|
62
|
-
"paraphrase": true
|
17
|
+
config = {
|
18
|
+
name: 'concept',
|
19
|
+
operators: [
|
20
|
+
"((context.punctuation != true)* [modifies|] (concept))",
|
21
|
+
"([concept])",
|
22
|
+
"([literally] (modifies/0))",
|
23
|
+
],
|
24
|
+
bridges: [
|
25
|
+
{
|
26
|
+
id: "modifies",
|
27
|
+
isA: ['verb'],
|
28
|
+
words: [{ word: 'modifies', number: 'one', flatten: false }, { word: 'modify', number: 'many', flatten: true }],
|
29
|
+
// bridge: "{ ...next(operator), modifiers: before, concept: after[0], flatten: true }"
|
30
|
+
bridge: "{ ...next(operator), modifiers: before, concept: after[0] }"
|
31
|
+
},
|
32
|
+
{ id: "literally", bridge: "{ ...after[0], flatten: false, literally: true }" },
|
33
|
+
{ id: "concept", bridge: "{ ...next(operator) }" },
|
34
|
+
],
|
35
|
+
priorities: [
|
36
|
+
{ "context": [['literally', 0], ['modifies', 0], ], "choose": [0] },
|
37
|
+
],
|
38
|
+
hierarchy: [
|
39
|
+
['concept', 'theAble'],
|
40
|
+
['concept', 'queryable'],
|
41
|
+
],
|
42
|
+
generators: [
|
43
|
+
{
|
44
|
+
notes: '"fire type, water type and earth type" to "fire water and earth type"',
|
45
|
+
/*
|
46
|
+
{
|
47
|
+
"water": {
|
48
|
+
"marker": "water",
|
49
|
+
"value": "water",
|
50
|
+
"word": "water"
|
63
51
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
if ((context.value || []).length < 2) {
|
75
|
-
return
|
76
|
-
}
|
77
|
-
if (!context.value[0].word) {
|
78
|
-
return
|
79
|
-
}
|
80
|
-
const word = context.value[0].word
|
81
|
-
|
82
|
-
for (let value of context.value) {
|
83
|
-
if (!(value.modifiers && value.modifiers.length == 1 && value.word == word)) {
|
84
|
-
return
|
85
|
-
}
|
86
|
-
}
|
87
|
-
return true
|
52
|
+
"marker": "water_type",
|
53
|
+
"modifiers": [
|
54
|
+
"water"
|
55
|
+
],
|
56
|
+
"types": [
|
57
|
+
"water_type"
|
58
|
+
],
|
59
|
+
"value": "water_type",
|
60
|
+
"word": "type",
|
61
|
+
"paraphrase": true
|
88
62
|
},
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
context.modifier = {
|
95
|
-
marker: 'list',
|
96
|
-
paraphrase: true,
|
97
|
-
value: modifiers
|
98
|
-
}
|
99
|
-
context.paraphrase = true
|
100
|
-
return g(context)
|
63
|
+
*/
|
64
|
+
where: where(),
|
65
|
+
match: ({context}) => {
|
66
|
+
if (!context.paraphrase) {
|
67
|
+
return
|
101
68
|
}
|
102
|
-
|
103
|
-
|
104
|
-
where: where(),
|
105
|
-
match: ({context}) => context.marker == 'modifies' && context.paraphrase,
|
106
|
-
apply: ({context, gp, gw}) => {
|
107
|
-
if (context.literally) {
|
108
|
-
return `${context.modifiers.map(gp).join(" ")} literally ${gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${gp(context.concept)}`
|
109
|
-
} else {
|
110
|
-
return `${context.modifiers.map(gp).join(" ")} ${gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${gp(context.concept)}`
|
111
|
-
}
|
69
|
+
if (context.marker !== 'list') {
|
70
|
+
return
|
112
71
|
}
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
literalModifiers = context.modifiers[0]
|
125
|
-
modifiers = literalModifiers.value.map(modifier => modifier.value)
|
126
|
-
modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
|
127
|
-
} else {
|
128
|
-
modifiers = context.modifiers.map(modifier => modifier.value)
|
72
|
+
if ((context.value || []).length < 2) {
|
73
|
+
return
|
74
|
+
}
|
75
|
+
if (!context.value[0].word) {
|
76
|
+
return
|
77
|
+
}
|
78
|
+
const word = context.value[0].word
|
79
|
+
|
80
|
+
for (let value of context.value) {
|
81
|
+
if (!(value.modifiers && value.modifiers.length == 1 && value.word == word)) {
|
82
|
+
return
|
129
83
|
}
|
130
|
-
km('concept').api.kindOfConcept({ config, modifiers, object: context.concept.value || context.concept.marker })
|
131
84
|
}
|
85
|
+
return true
|
132
86
|
},
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
87
|
+
apply: async ({g, context}) => {
|
88
|
+
const modifiers = context.value.map( (p) => p[p.modifiers[0]] )
|
89
|
+
context.word = context.value[0].word
|
90
|
+
context.value = null
|
91
|
+
context.modifiers = ['modifier']
|
92
|
+
context.modifier = {
|
93
|
+
marker: 'list',
|
94
|
+
paraphrase: true,
|
95
|
+
value: modifiers
|
96
|
+
}
|
97
|
+
context.paraphrase = true
|
98
|
+
return await g(context)
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
where: where(),
|
103
|
+
match: ({context}) => context.marker == 'modifies' && context.paraphrase,
|
104
|
+
apply: async ({context, gp, gw}) => {
|
105
|
+
const modifiers = []
|
106
|
+
for (modifier of context.modifiers) {
|
107
|
+
modifiers.push(await gp(modifier))
|
108
|
+
}
|
109
|
+
if (context.literally) {
|
110
|
+
return `${modifiers.join(" ")} literally ${await gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${await gp(context.concept)}`
|
111
|
+
} else {
|
112
|
+
return `${modifiers.join(" ")} ${await gw(context, { number: context.modifiers[context.modifiers.length - 1] })} ${await gp(context.concept)}`
|
113
|
+
}
|
114
|
+
}
|
115
|
+
// const chosen = chooseNumber(context, word.singular, word.plural)
|
116
|
+
},
|
117
|
+
],
|
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
|
+
],
|
140
139
|
}
|
141
140
|
|
142
141
|
knowledgeModule({
|
142
|
+
config,
|
143
|
+
includes: [dialogues],
|
144
|
+
api: () => new API(),
|
145
|
+
|
143
146
|
module,
|
144
147
|
description: 'The idea of a concept whatever that might end up being',
|
145
|
-
createConfig,
|
146
148
|
test: {
|
147
149
|
name: './concept.test.json',
|
148
150
|
contents: concept_tests,
|
149
151
|
checks: {
|
150
|
-
context: defaultContextCheck,
|
152
|
+
context: defaultContextCheck(),
|
151
153
|
objects: [],
|
152
154
|
}
|
153
155
|
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
const { knowledgeModule, where } = require('./runtime').theprogrammablemind
|
2
|
+
const gdefaults = require('./gdefaults.js')
|
3
|
+
const conjunction_tests = require('./conjunction.test.json')
|
4
|
+
const { defaultContextCheck } = require('./helpers')
|
5
|
+
|
6
|
+
let config = {
|
7
|
+
name: 'conjunction',
|
8
|
+
operators: [
|
9
|
+
"(x [list|and] y)",
|
10
|
+
],
|
11
|
+
bridges: [
|
12
|
+
// context.instance == variables.instance (unification)
|
13
|
+
{
|
14
|
+
id: "list",
|
15
|
+
level: 0,
|
16
|
+
selector: {
|
17
|
+
match: "same",
|
18
|
+
left: [ { pattern: '($type && context.instance == variables.instance)' } ],
|
19
|
+
right: [ { pattern: '($type && context.instance == variables.instance)' } ],
|
20
|
+
// left: [ { pattern: '($type)' } ],
|
21
|
+
// right: [ { pattern: '($type)' } ],
|
22
|
+
passthrough: true
|
23
|
+
},
|
24
|
+
bridge: "{ ...next(operator), listable: true, isList: true, value: append(before, after) }"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
id: "list",
|
28
|
+
level: 1,
|
29
|
+
selector: {
|
30
|
+
match: "same",
|
31
|
+
left: [ { pattern: '($type && context.instance == variables.instance)' } ],
|
32
|
+
passthrough: true
|
33
|
+
},
|
34
|
+
bridge: "{ ...operator, value: append(before, operator.value) }"
|
35
|
+
},
|
36
|
+
],
|
37
|
+
generators: [
|
38
|
+
{
|
39
|
+
where: where(),
|
40
|
+
notes: 'handle lists with yes no',
|
41
|
+
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
42
|
+
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
43
|
+
match: ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value && context.value.length > 0 && context.value[0].marker == 'yesno',
|
44
|
+
apply: async ({context, g, gs}) => {
|
45
|
+
return `${await g(context.value[0])} ${await gs(context.value.slice(1), ', ', ' and ')}`
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
{
|
50
|
+
where: where(),
|
51
|
+
notes: 'handle lists',
|
52
|
+
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
53
|
+
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
54
|
+
match: ({context, hierarchy}) => context.marker == 'list' && context.value,
|
55
|
+
apply: async ({context, gs}) => {
|
56
|
+
if (context.newLinesOnly) {
|
57
|
+
return await gs(context.value, '\n')
|
58
|
+
} else {
|
59
|
+
return await gs(context.value, ', ', ' and ')
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
],
|
64
|
+
};
|
65
|
+
|
66
|
+
const initializer = ({objects, config, isModule}) => {
|
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') {
|
80
|
+
return v
|
81
|
+
}
|
82
|
+
return v
|
83
|
+
},
|
84
|
+
}))
|
85
|
+
}
|
86
|
+
|
87
|
+
knowledgeModule( {
|
88
|
+
config,
|
89
|
+
includes: [gdefaults],
|
90
|
+
initializer,
|
91
|
+
|
92
|
+
module,
|
93
|
+
description: 'framework for conjunction',
|
94
|
+
newWay: true,
|
95
|
+
test: {
|
96
|
+
name: './conjunction.test.json',
|
97
|
+
contents: conjunction_tests,
|
98
|
+
checks: {
|
99
|
+
objects: ['idSuffix'],
|
100
|
+
context: defaultContextCheck(),
|
101
|
+
},
|
102
|
+
|
103
|
+
},
|
104
|
+
})
|
@@ -0,0 +1,322 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"associations": [
|
4
|
+
[
|
5
|
+
[
|
6
|
+
"list",
|
7
|
+
0
|
8
|
+
],
|
9
|
+
[
|
10
|
+
"unknown",
|
11
|
+
0
|
12
|
+
]
|
13
|
+
],
|
14
|
+
[
|
15
|
+
[
|
16
|
+
"list",
|
17
|
+
0
|
18
|
+
],
|
19
|
+
[
|
20
|
+
"unknown",
|
21
|
+
0
|
22
|
+
],
|
23
|
+
[
|
24
|
+
"unknown",
|
25
|
+
1
|
26
|
+
]
|
27
|
+
],
|
28
|
+
[
|
29
|
+
[
|
30
|
+
"list",
|
31
|
+
0
|
32
|
+
],
|
33
|
+
[
|
34
|
+
"unknown",
|
35
|
+
1
|
36
|
+
]
|
37
|
+
],
|
38
|
+
[
|
39
|
+
[
|
40
|
+
"list",
|
41
|
+
1
|
42
|
+
],
|
43
|
+
[
|
44
|
+
"unknown",
|
45
|
+
1
|
46
|
+
]
|
47
|
+
]
|
48
|
+
],
|
49
|
+
"config": {
|
50
|
+
},
|
51
|
+
"contexts": [
|
52
|
+
{
|
53
|
+
"default": true,
|
54
|
+
"isList": true,
|
55
|
+
"level": 1,
|
56
|
+
"listable": true,
|
57
|
+
"marker": "list",
|
58
|
+
"range": {
|
59
|
+
"end": 8,
|
60
|
+
"start": 0
|
61
|
+
},
|
62
|
+
"text": "1 2 and 3",
|
63
|
+
"topLevel": true,
|
64
|
+
"types": [
|
65
|
+
"list",
|
66
|
+
"unknown"
|
67
|
+
],
|
68
|
+
"value": [
|
69
|
+
{
|
70
|
+
"dead": true,
|
71
|
+
"level": 1,
|
72
|
+
"marker": "unknown",
|
73
|
+
"range": {
|
74
|
+
"end": 0,
|
75
|
+
"start": 0
|
76
|
+
},
|
77
|
+
"text": "1",
|
78
|
+
"types": [
|
79
|
+
"unknown"
|
80
|
+
],
|
81
|
+
"unknown": true,
|
82
|
+
"value": "1",
|
83
|
+
"word": "1"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"dead": true,
|
87
|
+
"level": 1,
|
88
|
+
"marker": "unknown",
|
89
|
+
"range": {
|
90
|
+
"end": 2,
|
91
|
+
"start": 2
|
92
|
+
},
|
93
|
+
"text": "2",
|
94
|
+
"types": [
|
95
|
+
"unknown"
|
96
|
+
],
|
97
|
+
"unknown": true,
|
98
|
+
"value": "2",
|
99
|
+
"word": "2"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"dead": true,
|
103
|
+
"level": 1,
|
104
|
+
"marker": "unknown",
|
105
|
+
"range": {
|
106
|
+
"end": 8,
|
107
|
+
"start": 8
|
108
|
+
},
|
109
|
+
"text": "3",
|
110
|
+
"types": [
|
111
|
+
"unknown"
|
112
|
+
],
|
113
|
+
"unknown": true,
|
114
|
+
"value": "3",
|
115
|
+
"word": "3"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"word": "and"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"developerTest": false,
|
122
|
+
"generatedParenthesized": [
|
123
|
+
""
|
124
|
+
],
|
125
|
+
"metadata": {
|
126
|
+
"opChoices": [
|
127
|
+
{
|
128
|
+
"counter": 1,
|
129
|
+
"op": [
|
130
|
+
"unknown",
|
131
|
+
0
|
132
|
+
],
|
133
|
+
"ops": [
|
134
|
+
[
|
135
|
+
"list",
|
136
|
+
0
|
137
|
+
],
|
138
|
+
[
|
139
|
+
"unknown",
|
140
|
+
0
|
141
|
+
],
|
142
|
+
[
|
143
|
+
"unknown",
|
144
|
+
0
|
145
|
+
],
|
146
|
+
[
|
147
|
+
"unknown",
|
148
|
+
0
|
149
|
+
]
|
150
|
+
]
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"counter": 2,
|
154
|
+
"op": [
|
155
|
+
"unknown",
|
156
|
+
0
|
157
|
+
],
|
158
|
+
"ops": [
|
159
|
+
[
|
160
|
+
"list",
|
161
|
+
0
|
162
|
+
],
|
163
|
+
[
|
164
|
+
"unknown",
|
165
|
+
0
|
166
|
+
],
|
167
|
+
[
|
168
|
+
"unknown",
|
169
|
+
0
|
170
|
+
]
|
171
|
+
]
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"counter": 3,
|
175
|
+
"op": [
|
176
|
+
"unknown",
|
177
|
+
0
|
178
|
+
],
|
179
|
+
"ops": [
|
180
|
+
[
|
181
|
+
"list",
|
182
|
+
0
|
183
|
+
],
|
184
|
+
[
|
185
|
+
"unknown",
|
186
|
+
0
|
187
|
+
]
|
188
|
+
]
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"counter": 4,
|
192
|
+
"op": [
|
193
|
+
"list",
|
194
|
+
0
|
195
|
+
],
|
196
|
+
"ops": [
|
197
|
+
[
|
198
|
+
"list",
|
199
|
+
0
|
200
|
+
]
|
201
|
+
]
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"counter": 5,
|
205
|
+
"op": [
|
206
|
+
"list",
|
207
|
+
1
|
208
|
+
],
|
209
|
+
"ops": [
|
210
|
+
[
|
211
|
+
"list",
|
212
|
+
1
|
213
|
+
]
|
214
|
+
]
|
215
|
+
}
|
216
|
+
]
|
217
|
+
},
|
218
|
+
"objects": {
|
219
|
+
"nameToUUID": {
|
220
|
+
"conjunction": "conjunction1",
|
221
|
+
"gdefaults": "gdefaults2",
|
222
|
+
"tokenize": "tokenize2"
|
223
|
+
},
|
224
|
+
"namespaced": {
|
225
|
+
"conjunction1": {
|
226
|
+
},
|
227
|
+
"gdefaults2": {
|
228
|
+
},
|
229
|
+
"tokenize2": {
|
230
|
+
}
|
231
|
+
},
|
232
|
+
"processed": [
|
233
|
+
{
|
234
|
+
"context": {
|
235
|
+
"default": true,
|
236
|
+
"isList": true,
|
237
|
+
"level": 1,
|
238
|
+
"listable": true,
|
239
|
+
"marker": "list",
|
240
|
+
"range": {
|
241
|
+
"end": 8,
|
242
|
+
"start": 0
|
243
|
+
},
|
244
|
+
"text": "1 2 and 3",
|
245
|
+
"topLevel": true,
|
246
|
+
"types": [
|
247
|
+
"list",
|
248
|
+
"unknown"
|
249
|
+
],
|
250
|
+
"value": [
|
251
|
+
{
|
252
|
+
"dead": true,
|
253
|
+
"level": 1,
|
254
|
+
"marker": "unknown",
|
255
|
+
"range": {
|
256
|
+
"end": 0,
|
257
|
+
"start": 0
|
258
|
+
},
|
259
|
+
"text": "1",
|
260
|
+
"types": [
|
261
|
+
"unknown"
|
262
|
+
],
|
263
|
+
"unknown": true,
|
264
|
+
"value": "1",
|
265
|
+
"word": "1"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"dead": true,
|
269
|
+
"level": 1,
|
270
|
+
"marker": "unknown",
|
271
|
+
"range": {
|
272
|
+
"end": 2,
|
273
|
+
"start": 2
|
274
|
+
},
|
275
|
+
"text": "2",
|
276
|
+
"types": [
|
277
|
+
"unknown"
|
278
|
+
],
|
279
|
+
"unknown": true,
|
280
|
+
"value": "2",
|
281
|
+
"word": "2"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"dead": true,
|
285
|
+
"level": 1,
|
286
|
+
"marker": "unknown",
|
287
|
+
"range": {
|
288
|
+
"end": 8,
|
289
|
+
"start": 8
|
290
|
+
},
|
291
|
+
"text": "3",
|
292
|
+
"types": [
|
293
|
+
"unknown"
|
294
|
+
],
|
295
|
+
"unknown": true,
|
296
|
+
"value": "3",
|
297
|
+
"word": "3"
|
298
|
+
}
|
299
|
+
],
|
300
|
+
"word": "and"
|
301
|
+
},
|
302
|
+
"generatedParenthesized": "",
|
303
|
+
"paraphrases": "1, 2 and 3",
|
304
|
+
"paraphrasesParenthesized": "((1), (2) and (3))",
|
305
|
+
"responses": [
|
306
|
+
""
|
307
|
+
]
|
308
|
+
}
|
309
|
+
]
|
310
|
+
},
|
311
|
+
"paraphrases": [
|
312
|
+
"1, 2 and 3"
|
313
|
+
],
|
314
|
+
"paraphrasesParenthesized": [
|
315
|
+
"((1), (2) and (3))"
|
316
|
+
],
|
317
|
+
"query": "1 2 and 3",
|
318
|
+
"responses": [
|
319
|
+
""
|
320
|
+
]
|
321
|
+
}
|
322
|
+
]
|