tpmkms
Version:
Reusable libraries for Entodicton, a natural language to json converter
2,648 lines (2,647 loc) • 944 kB
JSON
{
"configs": [
"setidsuffix _colors",
"dark and light are brightness",
"red, pink, orange, yellow, purple, green, blue, brown, white and gray are colors",
"crimson is a red",
"gold and khaki is a yellow",
"lavender, violet, magenta and indigo is a purple",
"lime, chartruese, olive and teal are a green",
"aqua, cyan, aquamarine, turquoise and navy are a blue",
"tan, sienna and maroon are a brown",
"snow, azure, beige and ivory are a white",
"silver and black are a gray",
"brightness modifies colors",
"hex modifies color",
{
"words": {
"patterns": [
{
"pattern": [
"#",
{
"type": "hexDigit"
},
{
"repeat": true,
"exactly": 6
}
],
"allow_partial_matches": false,
"defs": [
{
"id": "hexColor",
"uuid": "1",
"initial": "{ value: text, instance: true }"
}
]
}
],
"hierarchy": [
{
"child": "0",
"parent": "hexDigit"
},
{
"child": "1",
"parent": "hexDigit"
},
{
"child": "2",
"parent": "hexDigit"
},
{
"child": "3",
"parent": "hexDigit"
},
{
"child": "4",
"parent": "hexDigit"
},
{
"child": "5",
"parent": "hexDigit"
},
{
"child": "6",
"parent": "hexDigit"
},
{
"child": "7",
"parent": "hexDigit"
},
{
"child": "8",
"parent": "hexDigit"
},
{
"child": "9",
"parent": "hexDigit"
},
{
"child": "a",
"parent": "hexDigit"
},
{
"child": "b",
"parent": "hexDigit"
},
{
"child": "c",
"parent": "hexDigit"
},
{
"child": "d",
"parent": "hexDigit"
},
{
"child": "e",
"parent": "hexDigit"
},
{
"child": "f",
"parent": "hexDigit"
},
{
"child": "A",
"parent": "hexDigit"
},
{
"child": "B",
"parent": "hexDigit"
},
{
"child": "C",
"parent": "hexDigit"
},
{
"child": "D",
"parent": "hexDigit"
},
{
"child": "E",
"parent": "hexDigit"
},
{
"child": "F",
"parent": "hexDigit"
}
]
}
},
"resetIdSuffix"
],
"resultss": [
{
"hierarchy": [
[
"a",
"article",
false
],
[
"adjective",
"adjective",
false
],
[
"article",
"article",
false
],
[
"between",
"preposition",
false
],
[
"canBeDoQuestion",
"canBeDoQuestion",
false
],
[
"canBeQuestion",
"canBeQuestion",
false
],
[
"concept",
"queryable",
false
],
[
"concept",
"theAble",
false
],
[
"distributable",
"queryable",
false
],
[
"doubleQuote",
"queryable",
false
],
[
"each",
"article",
false
],
[
"evaluate",
"verb",
false
],
[
"every",
"article",
false
],
[
"have",
"canBeDoQuestion",
false
],
[
"have",
"canBeQuestion",
false
],
[
"hierarchyAble",
"queryable",
false
],
[
"ifAble",
"ifAble",
false
],
[
"is",
"canBeQuestion",
false
],
[
"is",
"verb",
false
],
[
"isQuery",
"verb",
false
],
[
"it",
"pronoun",
false
],
[
"it",
"queryable",
false
],
[
"it",
"thisitthat",
false
],
[
"it",
"toAble",
false
],
[
"listable",
"theAble",
false
],
[
"memorable",
"theAble",
false
],
[
"modifies",
"verb",
false
],
[
"negatable",
"queryable",
false
],
[
"noun",
"theAble",
false
],
[
"object",
"listable",
false
],
[
"object",
"queryable",
false
],
[
"object",
"theAble",
false
],
[
"orAble",
"ifAble",
false
],
[
"preposition",
"preposition",
false
],
[
"pronoun",
"pronoun",
false
],
[
"property",
"queryable",
false
],
[
"property",
"theAble",
false
],
[
"propertyOf",
"preposition",
false
],
[
"punctuation",
"punctuation",
false
],
[
"queryable",
"listable",
false
],
[
"questionMark",
"punctuation",
false
],
[
"readonly",
"queryable",
false
],
[
"reason",
"queryable",
false
],
[
"reason",
"theAble",
false
],
[
"remember",
"verb",
false
],
[
"stm_before",
"adjective",
false
],
[
"that",
"thisitthat",
false
],
[
"the",
"article",
false
],
[
"theAble",
"queryable",
false
],
[
"this",
"pronoun",
false
],
[
"this",
"queryable",
false
],
[
"this",
"thisitthat",
false
],
[
"thisitthat",
"queryable",
false
],
[
"to",
"preposition",
false
],
[
"toAble",
"toAble",
false
],
[
"type",
"property",
false
],
[
"type",
"whatAble",
false
],
[
"unknown",
"hierarchyAble",
false
],
[
"verb",
"verb",
false
],
[
"what",
"object",
false
],
[
"what",
"queryable",
false
],
[
"whatAble",
"queryable",
false
],
[
"whose",
"object",
false
],
[
"xfx",
"queryable",
false
]
],
"metadata": {
"opChoices": [
{
"op": [
"unknown",
0
],
"ops": [
[
"setIdSuffix",
0
],
[
"unknown",
0
]
],
"counter": 1
},
{
"op": [
"setIdSuffix",
0
],
"ops": [
[
"setIdSuffix",
0
]
],
"counter": 2
}
]
},
"trace": "undefined",
"contexts": [
{
"marker": "setIdSuffix",
"value": "setIdSuffix",
"default": true,
"text": "setidsuffix _colors",
"word": "setidsuffix",
"range": {
"start": 0,
"end": 18
},
"dead": true,
"suffix": {
"value": "_colors",
"unknown": true,
"text": "_colors",
"marker": "unknown",
"word": "_colors",
"range": {
"start": 12,
"end": 18
},
"dead": true,
"level": 0
},
"level": 1,
"context_index": 1,
"topLevel": true,
"context_id": 2,
"touchedBy": [
"colors#call2"
]
}
],
"generated": [
""
],
"paraphrases": [
"setidsuffix _colors"
],
"paraphrasesParenthesized": [],
"generatedParenthesized": [],
"responses": [
""
],
"associations": [
[
[
"setIdSuffix",
0
],
[
"unknown",
0
]
]
],
"summaries": [
{
"summaries": [
{
"operators": [
{
"marker": [
"setIdSuffix",
0
],
"range": {
"start": 0,
"end": 10
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 12,
"end": 18
}
}
],
"counter": 1
},
{
"operators": [
{
"marker": [
"setIdSuffix",
0
],
"range": {
"start": 0,
"end": 10
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 12,
"end": 18
}
}
],
"counter": 2
},
{
"operators": [
{
"marker": [
"setIdSuffix",
1
],
"range": {
"start": 0,
"end": 18
}
}
],
"counter": 3
}
],
"length": 1
}
],
"learned_contextual_priorities": [],
"query": "setidsuffix _colors",
"key": {
"query": "setidsuffix _colors"
}
},
{
"hierarchy": [
[
"a",
"article",
false
],
[
"adjective",
"adjective",
false
],
[
"article",
"article",
false
],
[
"between",
"preposition",
false
],
[
"canBeDoQuestion",
"canBeDoQuestion",
false
],
[
"canBeQuestion",
"canBeQuestion",
false
],
[
"concept",
"queryable",
false
],
[
"concept",
"theAble",
false
],
[
"distributable",
"queryable",
false
],
[
"doubleQuote",
"queryable",
false
],
[
"each",
"article",
false
],
[
"evaluate",
"verb",
false
],
[
"every",
"article",
false
],
[
"have",
"canBeDoQuestion",
false
],
[
"have",
"canBeQuestion",
false
],
[
"hierarchyAble",
"queryable",
false
],
[
"ifAble",
"ifAble",
false
],
[
"is",
"canBeQuestion",
false
],
[
"is",
"verb",
false
],
[
"isQuery",
"verb",
false
],
[
"it",
"pronoun",
false
],
[
"it",
"queryable",
false
],
[
"it",
"thisitthat",
false
],
[
"it",
"toAble",
false
],
[
"listable",
"theAble",
false
],
[
"memorable",
"theAble",
false
],
[
"modifies",
"verb",
false
],
[
"negatable",
"queryable",
false
],
[
"noun",
"theAble",
false
],
[
"object",
"listable",
false
],
[
"object",
"queryable",
false
],
[
"object",
"theAble",
false
],
[
"orAble",
"ifAble",
false
],
[
"preposition",
"preposition",
false
],
[
"pronoun",
"pronoun",
false
],
[
"property",
"queryable",
false
],
[
"property",
"theAble",
false
],
[
"propertyOf",
"preposition",
false
],
[
"punctuation",
"punctuation",
false
],
[
"queryable",
"listable",
false
],
[
"questionMark",
"punctuation",
false
],
[
"readonly",
"queryable",
false
],
[
"reason",
"queryable",
false
],
[
"reason",
"theAble",
false
],
[
"remember",
"verb",
false
],
[
"stm_before",
"adjective",
false
],
[
"that",
"thisitthat",
false
],
[
"the",
"article",
false
],
[
"theAble",
"queryable",
false
],
[
"this",
"pronoun",
false
],
[
"this",
"queryable",
false
],
[
"this",
"thisitthat",
false
],
[
"thisitthat",
"queryable",
false
],
[
"to",
"preposition",
false
],
[
"toAble",
"toAble",
false
],
[
"type",
"property",
false
],
[
"type",
"whatAble",
false
],
[
"unknown",
"hierarchyAble",
false
],
[
"verb",
"verb",
false
],
[
"what",
"object",
false
],
[
"what",
"queryable",
false
],
[
"whatAble",
"queryable",
false
],
[
"whose",
"object",
false
],
[
"xfx",
"queryable",
false
]
],
"metadata": {
"opChoices": [
{
"op": [
"unknown",
0
],
"ops": [
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 1
},
{
"op": [
"unknown",
0
],
"ops": [
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 2
},
{
"op": [
"unknown",
0
],
"ops": [
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
]
],
"counter": 3
},
{
"op": [
"list",
0
],
"ops": [
[
"is",
0
],
[
"list",
0
]
],
"counter": 4
},
{
"op": [
"is",
0
],
"ops": [
[
"is",
0
]
],
"counter": 5
},
{
"op": [
"is",
1
],
"ops": [
[
"is",
1
]
],
"counter": 6
}
]
},
"trace": "undefined",
"contexts": [
{
"number": "many",
"text": "dark and light are brightness",
"marker": "is",
"word": "are",
"range": {
"start": 0,
"end": 28
},
"one": {
"number": "many",
"marker": "list",
"default": true,
"word": "and",
"text": "dark and light",
"range": {
"start": 0,
"end": 28
},
"types": [
"list",
"unknown"
],
"listable": true,
"isList": true,
"value": [
{
"value": "dark",
"unknown": true,
"text": "dark",
"marker": "unknown",
"word": "dark",
"range": {
"start": 0,
"end": 3
},
"types": [
"unknown"
],
"dead": true,
"level": 0
},
{
"value": "light",
"unknown": true,
"text": "light",
"marker": "unknown",
"word": "light",
"range": {
"start": 9,
"end": 13
},
"types": [
"unknown"
],
"dead": true,
"level": 0
}
],
"level": 1
},
"two": {
"value": "brightness",
"unknown": true,
"text": "brightness",
"marker": "unknown",
"word": "brightness",
"range": {
"start": 19,
"end": 28
},
"dead": true,
"types": [
"unknown"
],
"level": 0,
"concept": true
},
"dead": true,
"level": 2,
"context_index": 1,
"topLevel": true,
"context_id": 2,
"touchedBy": [
"colors#call2"
]
}
],
"generated": [
""
],
"paraphrases": [
"dark and light are brightness"
],
"paraphrasesParenthesized": [],
"generatedParenthesized": [],
"responses": [
""
],
"associations": [
[
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
]
],
[
[
"is",
0
],
[
"list",
1
],
[
"unknown",
0
]
]
],
"summaries": [
{
"summaries": [
{
"operators": [
{
"marker": [
"unknown",
0
],
"range": {
"start": 0,
"end": 3
}
},
{
"marker": [
"list",
0
],
"range": {
"start": 5,
"end": 7
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 9,
"end": 13
}
},
{
"marker": [
"is",
0
],
"range": {
"start": 15,
"end": 17
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 19,
"end": 28
}
}
],
"counter": 1
},
{
"operators": [
{
"marker": [
"unknown",
0
],
"range": {
"start": 0,
"end": 3
}
},
{
"marker": [
"list",
0
],
"range": {
"start": 5,
"end": 7
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 9,
"end": 13
}
},
{
"marker": [
"is",
0
],
"range": {
"start": 15,
"end": 17
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 19,
"end": 28
}
}
],
"counter": 2
},
{
"operators": [
{
"marker": [
"unknown",
0
],
"range": {
"start": 0,
"end": 3
}
},
{
"marker": [
"list",
0
],
"range": {
"start": 5,
"end": 7
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 9,
"end": 13
}
},
{
"marker": [
"is",
0
],
"range": {
"start": 15,
"end": 17
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 19,
"end": 28
}
}
],
"counter": 3
},
{
"operators": [
{
"marker": [
"unknown",
0
],
"range": {
"start": 0,
"end": 3
}
},
{
"marker": [
"list",
0
],
"range": {
"start": 5,
"end": 7
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 9,
"end": 13
}
},
{
"marker": [
"is",
0
],
"range": {
"start": 15,
"end": 17
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 19,
"end": 28
}
}
],
"counter": 4
},
{
"operators": [
{
"marker": [
"list",
1
],
"range": {
"start": 0,
"end": 13
}
},
{
"marker": [
"is",
0
],
"range": {
"start": 15,
"end": 17
}
},
{
"marker": [
"unknown",
0
],
"range": {
"start": 19,
"end": 28
}
}
],
"counter": 5
},
{
"operators": [
{
"marker": [
"is",
1
],
"range": {
"start": 0,
"end": 28
}
}
],
"counter": 6
},
{
"operators": [
{
"marker": [
"is",
2
],
"range": {
"start": 0,
"end": 28
}
}
],
"counter": 7
}
],
"length": 1
}
],
"learned_contextual_priorities": [],
"query": "dark and light are brightness",
"key": {
"query": "dark and light are brightness"
}
},
{
"hierarchy": [
[
"a",
"article",
false
],
[
"adjective",
"adjective",
false
],
[
"article",
"article",
false
],
[
"between",
"preposition",
false
],
[
"brightness_colors",
"hierarchyAble",
false
],
[
"brightness_colors",
"isEdee",
false
],
[
"brightness_colors",
"isEder",
false
],
[
"brightness_colors",
"object",
false
],
[
"brightness_colors",
"property",
false
],
[
"brightness_colors",
"queryable",
false
],
[
"brightness_colors",
"theAble",
false
],
[
"canBeDoQuestion",
"canBeDoQuestion",
false
],
[
"canBeQuestion",
"canBeQuestion",
false
],
[
"concept",
"queryable",
false
],
[
"concept",
"theAble",
false
],
[
"dark_colors",
"brightness_colors",
false
],
[
"dark_colors",
"hierarchyAble",
false
],
[
"dark_colors",
"isEdee",
false
],
[
"dark_colors",
"isEder",
false
],
[
"dark_colors",
"object",
false
],
[
"dark_colors",
"property",
false
],
[
"dark_colors",
"queryable",
false
],
[
"dark_colors",
"theAble",
false
],
[
"distributable",
"queryable",
false
],
[
"doubleQuote",
"queryable",
false
],
[
"each",
"article",
false
],
[
"evaluate",
"verb",
false
],
[
"every",
"article",
false
],
[
"have",
"canBeDoQuestion",
false
],
[
"have",
"canBeQuestion",
false
],
[
"hierarchyAble",
"queryable",
false
],
[
"ifAble",
"ifAble",
false
],
[
"is",
"canBeQuestion",
false
],
[
"is",
"verb",
false
],
[
"isEdee",
"isEdee",
false
],
[
"isEder",
"isEder",
false
],
[
"isQuery",
"verb",
false
],
[
"it",
"pronoun",
false
],
[
"it",
"queryable",
false
],
[
"it",
"thisitthat",
false
],
[
"it",
"toAble",
false
],
[
"light_colors",
"brightness_colors",
false
],
[
"light_colors",
"hierarchyAble",
false
],
[
"light_colors",
"isEdee",
false
],
[
"light_colors",
"isEder",
false
],
[
"light_colors",
"object",
false
],
[
"light_colors",
"property",
false
],
[
"light_colors",
"queryable",
false
],
[
"light_colors",
"theAble",
false
],
[
"listable",
"theAble",
false
],
[
"memorable",
"theAble",
false
],
[
"modifies",
"verb",
false
],
[
"negatable",
"queryable",
false
],
[
"noun",
"theAble",
false
],
[
"object",
"listable",
false
],
[
"object",
"queryable",
false
],
[
"object",
"theAble",
false
],
[
"orAble",
"ifAble",
false
],
[
"preposition",
"preposition",
false
],
[
"pronoun",
"pronoun",
false
],
[
"property",
"queryable",
false
],
[
"property",
"theAble",
false
],
[
"propertyOf",
"preposition",
false
],
[
"punctuation",
"punctuation",
false
],
[
"queryable",
"listable",
false
],
[
"questionMark",
"punctuation",
false
],
[
"readonly",
"queryable",
false
],
[
"reason",
"queryable",
false
],
[
"reason",
"theAble",
false
],
[
"remember",
"verb",
false
],
[
"stm_before",
"adjective",
false
],
[
"that",
"thisitthat",
false
],
[
"the",
"article",
false
],
[
"theAble",
"queryable",
false
],
[
"this",
"pronoun",
false
],
[
"this",
"queryable",
false
],
[
"this",
"thisitthat",
false
],
[
"thisitthat",
"queryable",
false
],
[
"to",
"preposition",
false
],
[
"toAble",
"toAble",
false
],
[
"type",
"property",
false
],
[
"type",
"whatAble",
false
],
[
"unknown",
"hierarchyAble",
false
],
[
"verb",
"verb",
false
],
[
"what",
"object",
false
],
[
"what",
"queryable",
false
],
[
"whatAble",
"queryable",
false
],
[
"whose",
"object",
false
],
[
"xfx",
"queryable",
false
]
],
"metadata": {
"opChoices": [
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 1
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 2
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 3
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 4
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 5
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 6
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 7
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 8
},
{
"op": [
"unknown",
0
],
"ops": [
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"comma",
0
],
[
"is",
0
],
[
"list",
0
],
[
"unknown",
0
],
[
"unknown",
0
],
[
"unknown",
0
]
],
"counter": 9
},
{
"op": [
"unknown",