Special Input Forms

Much of AutoMathic's vocabulary is stored in external data files.  However, some of its linguistic knowledge is embedded in the program itself.  In most cases, language was embedded when the meaning of a common word could not be determined with a simple, context-free translation driven by its data files.  Below are some tables of special input forms that are handled by AutoMathic's embedded translations:

Items appearing in the Special Input Form tables:

Item Definition Examples
__ Anything
X Anything (labeled "X")
article Article "a", "an", "the", "each", "any", "all", "some"
int Integer 1, 13, 42, -17
real Non-integer, real number 7.32, -0.125
num An integer or real number 58, 6.957, -0.33
quantity Word denoting a quantity "number", "amount", "fraction", "quantity", "part", "portion", "multiple"
np A complete noun or noun-phrase representing something "mass", "the height", "prices"
has A common verb denoting possession or containment
"has", "have", "had", "contain", "contains", "contained"
is A verb or verb phrase of the form "to be" "is", "are", "was", "were", "might have been"
that A connective "that", "which", "who"
percent Percent "%", "percent", "pct", "hundredth", "hundredths"
+ A synonym of "+" "more than", "greater than", "plus"
- A synonym of "-" "less than", "fewer than", "minus"
oper A mathematical operator (or synonym) "+", "-", "/", "plus", "added to", "from", "times", "divided by", "over"

Special Input Forms:

The "Lexicon and Sample Input" section will include examples of the use of these special input forms.

Special Input Form "and":

Pattern Meaning Translation
X, and Y Conjunction X . Y
sum of X and Y Addition X + Y
difference between X and Y Subtraction X - Y
X and Y Addition X + Y

Special Input Form "as":

Pattern Meaning Translation
times as much X as Y Division X / Y
times as many X as Y Division X / Y
as much X as Y Division X / Y
as many X as Y Division X / Y
X as Y Equality X = Y

Special Input Form article:

Pattern Meaning Translation
np article __ Division np / __
article np Nothing np

Special Input Form "of":

Pattern Meaning Translation
X percentage of Y Division X / (100) Y
int of np __ Preposition int __
X how many of np Y Preposition X  Y
article of __ Preposition __
quantity of __ Multiplication quantity * __
X how much of Y Multiplication X what amount * Y
real of __ Multiplication real __
np of article num __ Division num np / __
np of num. Multiplication num np
np of num oper __ Multiplication num np oper __
np of num __ Division num np / __
X of Y Division X / Y

Special Input Form has:

Pattern Meaning Translation
X has num Y Multiplication X * num = Y
X has Y Equality X = Y

Special Input Form is:

Pattern Meaning Translation
What is X Nothing X
How much is X Nothing X
How many is X Nothing X
X is what? Nothing X
X is how much? Nothing X
X is how many? Nothing X
X is? Nothing X
X np that is Y Special X Y
X is to Y Division X / Y
X is in article Y Division X / Y
X is on article Y Division X / Y
X is Y Equality X = Y

Special Input Form percent:

Pattern Meaning Translation
X percent of Y Special X / (100) Y
X percent + Y Special X / (100) Y + Y
X percent - Y Special - X / (100) Y + Y