use super::{Lexicon, Phrases};
pub const ENGLISH: Lexicon = Lexicon {
symbols: SYMBOLS,
limit_symbols: &[
("→", "approaches"),
("↓", "decreases to"),
("↑", "increases to"),
],
set_symbols: &[("∈", "in")],
argument_symbols: &[("∣", "given")],
cardinals: &[
("1", "one"),
("2", "two"),
("3", "three"),
("4", "four"),
("5", "five"),
("6", "six"),
("7", "seven"),
("8", "eight"),
("9", "nine"),
],
fraction_denominators: &[
("2", "half", "halves"),
("3", "third", "thirds"),
("4", "quarter", "quarters"),
("5", "fifth", "fifths"),
("6", "sixth", "sixths"),
("7", "seventh", "sevenths"),
("8", "eighth", "eighths"),
("9", "ninth", "ninths"),
("10", "tenth", "tenths"),
],
ordinals: &[
("2", "second"),
("3", "third"),
("4", "fourth"),
("n", "n-th"),
("k", "k-th"),
],
silent_names: &[
("\u{2062}", "invisible times"),
("\u{2063}", "invisible separator"),
],
identifiers: IDENTIFIERS,
variants: &[
("bold", "bold"),
("bold-italic", "bold"),
("double-struck", "double-struck"),
("script", "script"),
("bold-script", "bold script"),
("fraktur", "fraktur"),
("bold-fraktur", "bold fraktur"),
("sans-serif", "sans-serif"),
("bold-sans-serif", "bold sans-serif"),
("sans-serif-italic", "sans-serif"),
("sans-serif-bold-italic", "bold sans-serif"),
("monospace", "monospace"),
],
powers: &[
("2", "squared"),
("−1", "inverse"),
("-1", "inverse"),
("T", "transpose"),
("⊤", "transpose"),
("∘", "degrees"),
("°", "degrees"),
("3", "cubed"),
("′", "prime"),
("″", "double prime"),
("‴", "triple prime"),
("*", "star"),
("∗", "star"),
("†", "dagger"),
],
root_indices: &[
("2", "square"),
("3", "cube"),
("4", "fourth"),
("5", "fifth"),
("6", "sixth"),
("7", "seventh"),
("8", "eighth"),
("9", "ninth"),
("10", "tenth"),
],
accents: ACCENTS,
large_operators: &[
("∑", "the sum", "over"),
("∏", "the product", "over"),
("∐", "the coproduct", "over"),
("∫", "the integral", "over"),
("∬", "the double integral", "over"),
("∭", "the triple integral", "over"),
("∮", "the contour integral", "over"),
("⋃", "the union", "over"),
("⋂", "the intersection", "over"),
("⋁", "the disjunction", "over"),
("⋀", "the conjunction", "over"),
("⨁", "the direct sum", "over"),
("⨂", "the tensor product", "over"),
("lim", "the limit", "as"),
("lim sup", "the limit superior", "as"),
("lim inf", "the limit inferior", "as"),
("max", "the maximum", "over"),
("min", "the minimum", "over"),
("sup", "the supremum", "over"),
("inf", "the infimum", "over"),
("arg max", "the arg max", "over"),
("arg min", "the arg min", "over"),
],
fences: &[
("|", "|", "the absolute value of {0}"),
("‖", "‖", "the norm of {0}"),
("⌊", "⌋", "the floor of {0}"),
("⌈", "⌉", "the ceiling of {0}"),
],
table_fences: &[
("(", ")", "matrix"),
("[", "]", "matrix"),
("|", "|", "determinant"),
],
enclosures: &[
("box", "{0} in a box"),
("roundedbox", "{0} in a rounded box"),
("circle", "{0} in a circle"),
("updiagonalstrike", "{0} crossed out"),
("downdiagonalstrike", "{0} crossed out"),
("horizontalstrike", "{0} crossed out"),
("verticalstrike", "{0} crossed out"),
("longdiv", "{0} under a long division sign"),
("actuarial", "{0} in an actuarial symbol"),
("radical", "the square root of {0}"),
("top", "{0} with a line above"),
("bottom", "{0} with a line below"),
("left", "{0} with a line on the left"),
("right", "{0} with a line on the right"),
],
phrases: Phrases {
blank: "blank",
space: "space",
capital: "capital {0}",
variant: "{0} {1}",
negative: "negative",
string: "the string {0}",
error: "error: {0}",
enclosed: "{0} enclosed",
common_fraction: "{0} {1}",
fraction_simple: "{0} over {1}",
fraction: "the fraction with numerator {0} and denominator {1}",
square_root: "the square root of {0}",
named_root: "the {0} root of {1}",
simple_root: "the {0}-th root of {1}",
root: "the root with index {0} of {1}",
named_power: "{0} {1}",
power_simple: "{0} to the {1}",
power: "{0} to the power {1}, end exponent",
subscript_simple: "{0} sub {1}",
subscript: "{0} sub {1}, end sub",
sub_named_power: "{0} sub {1} {2}",
sub_power: "{0} sub {1}, to the {2}",
large_operator_under: "{0} {1} {2}",
large_operator_over: "{0} to {1}",
large_operator_both: "{0} from {1} to {2}",
operand: "of",
binomial: "{0} choose {1}",
set: "the set {0}",
set_builder: "the set of all {0} such that {1}",
empty_set: "the empty set",
cases: "{0} cases; {1}; end cases",
case: "case {0}: {1}",
case_condition: "{0}, if {1}",
case_text: "{0}, {1}",
derivative: "derivative",
partial_derivative: "partial derivative",
ordinal_derivative: "{0} {1}",
derivative_of: "the {0} of {1} with respect to {2}",
derivative_operator: "the {0} with respect to {1}",
variable_separator: " and ",
accent: "{0} {1}",
under: "{0} with {1} below",
over: "{0} with {1} above",
under_over: "{0} with {1} below and {2} above",
multiscripts: "{0} with {1}",
list_separator: ", ",
post_subscript: "subscript {0}",
post_superscript: "superscript {0}",
pre_subscript: "presubscript {0}",
pre_superscript: "presuperscript {0}",
table: "the {0} by {1} {2}; {3}; end {2}",
empty_table: "an empty {0}",
table_kind: "table",
row_separator: "; ",
cell_separator: ", ",
row: "row {0}: {1}",
labeled_row: "row {0}, labeled {1}: {2}",
},
};
const SYMBOLS: &[(&str, &str)] = &[
("+", "plus"),
("-", "minus"),
("−", "minus"),
("±", "plus or minus"),
("∓", "minus or plus"),
("×", "times"),
("⋅", "times"),
("·", "times"),
("*", "times"),
("∗", "times"),
("÷", "divided by"),
("/", "divided by"),
("∕", "divided by"),
("!", "factorial"),
("%", "percent"),
("°", "degrees"),
("′", "prime"),
("″", "double prime"),
("‴", "triple prime"),
("∘", "composed with"),
("⊗", "tensor"),
("⊕", "direct sum"),
("√", "square root"),
("=", "equals"),
("≠", "does not equal"),
("<", "is less than"),
(">", "is greater than"),
("≤", "is less than or equal to"),
("≥", "is greater than or equal to"),
("⩽", "is less than or equal to"),
("⩾", "is greater than or equal to"),
("≪", "is much less than"),
("≫", "is much greater than"),
("≈", "is approximately equal to"),
("≃", "is asymptotically equal to"),
("≅", "is congruent to"),
("≡", "is equivalent to"),
("∼", "is similar to"),
("~", "is similar to"),
("∝", "is proportional to"),
("≔", "is defined as"),
(":=", "is defined as"),
("≜", "is defined as"),
("⊥", "is perpendicular to"),
("∥", "is parallel to"),
("∣", "divides"),
("∤", "does not divide"),
("→", "right arrow"),
("←", "left arrow"),
("↔", "left right arrow"),
("↦", "maps to"),
("⇒", "implies"),
("⟹", "implies"),
("⇐", "is implied by"),
("⟸", "is implied by"),
("⇔", "if and only if"),
("⟺", "if and only if"),
("∀", "for all"),
("∃", "there exists"),
("∄", "there does not exist"),
("¬", "not"),
("∧", "and"),
("∨", "or"),
("∴", "therefore"),
("∵", "because"),
("⊢", "proves"),
("⊨", "models"),
("∈", "is an element of"),
("∉", "is not an element of"),
("∋", "contains"),
("⊂", "is a subset of"),
("⊆", "is a subset of or equal to"),
("⊊", "is a proper subset of"),
("⊃", "is a superset of"),
("⊇", "is a superset of or equal to"),
("∪", "union"),
("∩", "intersection"),
("∖", "set minus"),
("∅", "the empty set"),
("∞", "infinity"),
("∂", "partial"),
("∇", "nabla"),
("∑", "the sum"),
("∏", "the product"),
("∫", "the integral"),
("∬", "the double integral"),
("∭", "the triple integral"),
("∮", "the contour integral"),
("ℏ", "h bar"),
("∠", "angle"),
("△", "triangle"),
("(", "open paren"),
(")", "close paren"),
("[", "open bracket"),
("]", "close bracket"),
("{", "open brace"),
("}", "close brace"),
("⟨", "open angle bracket"),
("⟩", "close angle bracket"),
("⌊", "left floor"),
("⌋", "right floor"),
("⌈", "left ceiling"),
("⌉", "right ceiling"),
("|", "vertical bar"),
("‖", "double vertical bar"),
(",", "comma"),
(";", "semicolon"),
(":", "colon"),
(".", "dot"),
("…", "dot dot dot"),
("⋯", "dot dot dot"),
("⋮", "vertical dots"),
("⋱", "diagonal dots"),
("\u{2061}", "of"),
("\u{2062}", ""),
("\u{2063}", ""),
("\u{2064}", "and"),
];
const IDENTIFIERS: &[(&str, &str)] = &[
("sin", "sine"),
("cos", "cosine"),
("tan", "tangent"),
("cot", "cotangent"),
("sec", "secant"),
("csc", "cosecant"),
("arcsin", "arc sine"),
("arccos", "arc cosine"),
("arctan", "arc tangent"),
("sinh", "hyperbolic sine"),
("cosh", "hyperbolic cosine"),
("tanh", "hyperbolic tangent"),
("coth", "hyperbolic cotangent"),
("log", "log"),
("lg", "log"),
("ln", "natural log"),
("exp", "exponential"),
("lim", "limit"),
("max", "maximum"),
("min", "minimum"),
("sup", "supremum"),
("inf", "infimum"),
("det", "determinant"),
("dim", "dimension"),
("ker", "kernel"),
("deg", "degree"),
("arg", "argument"),
("gcd", "g c d"),
("lcm", "l c m"),
("tr", "trace"),
("Tr", "trace"),
("Pr", "probability"),
("Re", "real part"),
("Im", "imaginary part"),
("mod", "mod"),
("α", "alpha"),
("β", "beta"),
("γ", "gamma"),
("δ", "delta"),
("ε", "epsilon"),
("ϵ", "epsilon"),
("ζ", "zeta"),
("η", "eta"),
("θ", "theta"),
("ϑ", "theta"),
("ι", "iota"),
("κ", "kappa"),
("λ", "lambda"),
("μ", "mu"),
("ν", "nu"),
("ξ", "xi"),
("ο", "omicron"),
("π", "pi"),
("ϖ", "pi"),
("ρ", "rho"),
("ϱ", "rho"),
("σ", "sigma"),
("ς", "sigma"),
("τ", "tau"),
("υ", "upsilon"),
("φ", "phi"),
("ϕ", "phi"),
("χ", "chi"),
("ψ", "psi"),
("ω", "omega"),
("ı", "dotless i"),
("ȷ", "dotless j"),
("ℓ", "ell"),
("℘", "Weierstrass p"),
("ℵ", "aleph"),
];
const ACCENTS: &[(&str, &str)] = &[
("^", "hat"),
("ˆ", "hat"),
("\u{302}", "hat"),
("¯", "bar"),
("‾", "bar"),
("_", "bar"),
("\u{304}", "bar"),
("\u{305}", "bar"),
("~", "tilde"),
("˜", "tilde"),
("\u{303}", "tilde"),
("→", "vector"),
("\u{20D7}", "vector"),
("˙", "dot"),
("\u{307}", "dot"),
("¨", "double dot"),
("\u{308}", "double dot"),
("ˇ", "check"),
("\u{30C}", "check"),
("˘", "breve"),
("\u{306}", "breve"),
("´", "acute"),
("\u{301}", "acute"),
("`", "grave"),
("\u{300}", "grave"),
("˚", "ring"),
("\u{30A}", "ring"),
("⏞", "overbrace"),
("⏟", "underbrace"),
("⎴", "overbracket"),
("⎵", "underbracket"),
];