math-stratum / lexicon /en.json
tailot's picture
publish math-stratum bundle
e9dac18 verified
Raw History Blame Contribute Delete
6.53 kB
{
"lang": "en",
"name": "English",
"script": "latin",
"noise_chars": "",
"prefixes": [],
"kinds": {
"evaluate": {
"verbs": ["evaluate", "compute", "calculate", "what is", "value"],
"neutral": true,
"patterns": ["evaluate {T}", "compute {T}", "calculate {T}", "what is {T}", "what is the value of {T}", "the value of {T}"],
"frame": {"sequences": [[]]}
},
"prove": {
"verbs": ["prove", "show", "verify"],
"patterns": ["prove that {F}", "prove {F}", "show that {F}", "verify that {F}"],
"frame": {"sequences": [[]]}
},
"provez": {
"verbs": ["prove", "show", "verify"],
"patterns": ["prove that {F} over the integers", "prove {F} over the integers", "show that {F} over the integers"],
"frame": {"sequences": [["over_z"]]}
},
"solve": {
"verbs": ["solve", "find"],
"patterns": ["solve {F} for {V}", "for {V} solve {F}", "solve {F} with respect to {V}"],
"frame": {"sequences": [["for"], ["wrt"]]}
},
"solvez": {
"verbs": ["solve", "find"],
"patterns": ["solve {F} for {V} over the integers", "solve {F} for {V} over the set of integers"],
"frame": {"sequences": [["for", "over_z"]]}
},
"derivative": {
"verbs": ["derivative", "differentiate"],
"patterns": ["the derivative of {T}", "derivative of {T}", "differentiate {T}", "the derivative of {T} with respect to {V}", "differentiate {T} with respect to {V}"],
"frame": {"sequences": [[], ["wrt"]]}
},
"integral": {
"verbs": ["integral", "integrate"],
"patterns": ["the integral of {T} from {A} to {B}", "integrate {T} from {A} to {B}", "compute the integral of {T} from {A} to {B}", "integrate {T} from {A} to {B} with respect to {V}"],
"frame": {"sequences": [["from", "to"], ["from", "to", "wrt"], ["wrt", "from", "to"]]}
},
"det": {
"verbs": ["determinant", "det"],
"patterns": ["the determinant of {M}", "determinant of {M}", "det {M}", "what is the determinant of {M}"],
"frame": {"sequences": [[]]}
},
"rank": {
"verbs": ["rank"],
"patterns": ["the rank of {M}", "rank of {M}", "what is the rank of {M}"],
"frame": {"sequences": [[]]}
},
"inverse": {
"verbs": ["inverse", "invert"],
"patterns": ["the inverse of {M}", "inverse of {M}", "invert {M}", "what is the inverse of {M}"],
"frame": {"sequences": [[]]}
},
"maximize": {
"verbs": ["maximize", "maximum"],
"patterns": ["maximize {T} subject to {F}", "maximize {T} under the constraints {F}", "the maximum of {T} subject to {F}"],
"frame": {"sequences": [["subject_to"]]}
},
"minimize": {
"verbs": ["minimize", "minimum"],
"patterns": ["minimize {T} subject to {F}", "minimize {T} under the constraints {F}", "the minimum of {T} subject to {F}"],
"frame": {"sequences": [["subject_to"]]}
}
},
"connectives": {
"and": ["and"],
"or": ["or"],
"not": ["not"],
"ge": ["at least", "greater than or equal to", "no less than"],
"le": ["at most", "less than or equal to", "no more than"],
"gt": ["greater than", "more than", "strictly greater than"],
"lt": ["less than", "fewer than", "strictly less than"],
"eq": ["equal to", "equals"],
"ne": ["not equal to", "different from", "distinct from"]
},
"markers": {
"for": ["for"],
"over_z": ["over the integers", "over the set of integers", "on the integers"],
"subject_to": ["subject to", "under the constraints", "given the constraints"],
"from": ["from"],
"to": ["to"],
"wrt": ["wrt", "with respect to"]
},
"noise": ["the", "a", "an", "of", "is", "are", "what", "please", "tell", "me", "us", "that", "this", "it", "does"],
"labels": {
"understood": "Problem as understood",
"status": "Status",
"assurance": "level {n} of 3",
"answer": "Answer",
"reading": "Reading",
"math_layer": "math layer",
"notes": "Notes",
"examples": "Sentences this layer understands",
"question": "Ask again in one of these forms",
"check": "SMT check of the layer : {a} of {b} envelopes confirmed",
"kind_of": "kind"
},
"reading": {
"AGREED": "agreed: two independent readers plus the SMT constraint",
"PASSTHROUGH": "sentence already written in the math language, not translated",
"DISPUTED": "disputed: the two readers propose different sentences",
"NOT COVERED": "outside what this language variety covers",
"AMBIGUOUS": "ambiguous: more than one reading is possible",
"TAMPERED": "tampered: the sentence sent to the math layer is not the agreed reading",
"SINGLE": "a single reading: the other reader did not recognise the sentence",
"NONE": "no reading"
},
"reasons": {
"unknown_word": "the word {word} is not one of the words this English covers",
"no_verb": "no word announces the kind of problem in this English",
"two_verbs": "the sentence announces more than one kind of problem: {kinds}",
"no_pattern": "the shape of the sentence matches no shape this English covers",
"no_frame": "the connectives do not match any shape of the kind {kind}",
"multiple": "the sentence has two different readings: {first} and {second}",
"disagree": "the two readers propose two different sentences of the math language",
"markers": "the connectives of the sentence are not the ones the kind expects",
"bad_variable": "{slot} is not a single variable of the math language",
"bad_matrix": "{slot} is not a matrix written between double square brackets",
"unbalanced": "a bracket or a square bracket is not closed",
"no_math": "the mathematics is not written with the symbols of the math language",
"literal_count": "the numbers of the sentence are not the same in the two readers",
"math_unknown": "the math layer does not accept the sentence: {detail}",
"boundary": "the sentence sent to the math layer is not the agreed one",
"referee": "the SMT referee does not confirm {detail}",
"domain_letter": "write the domain in words (for example: over the integers), not as a lone letter",
"other": "the reading did not reach a sentence of the math language"
},
"examples": [
"evaluate 1/2 + 1/3",
"prove that x^2 + 1 > 0",
"solve x^2 - 5*x + 6 = 0 for x",
"what is the determinant of [[1, 2], [3, 4]]",
"integrate 3*x^2 from 0 to 2",
"solve n mod 3 = 1 for n over the integers",
"maximize 3*x + 4*y subject to x + y <= 10"
]
}