GuardVocabulary
constructor(stopwords: Set<String>, sentenceOpeners: Set<String>, nonEntityCapitals: Set<String>, negationMarkers: Set<String>, antonyms: Set<Pair<String, String>>, temporalMarkers: Set<String>, scopeMarkers: Set<String>, directionalCues: Set<String>, units: Map<String, MeasurementUnit>)
Parameters
stopwords
function words removed before comparison; read by most guards.
sentenceOpeners
words that may open a sentence without naming anything (the entity guard).
nonEntityCapitals
words capitalized by grammar, not reference (the entity guard).
negationMarkers
words that negate (the negation guard).
antonyms
symmetric pairs that flip an answer (the antonym guard).
temporalMarkers
absolute time references (the temporal guard).
scopeMarkers
words describing the shape of the answer — format, length, depth (the scope guard).
directionalCues
cues that make argument order significant — comparisons, conversions (the direction guard).
units
unit and currency tokens mapped to a canonical MeasurementUnit (the unit & substitution guards).