AnswerAnchorGuard

constructor(stopwords: Set<String> = Vocabulary.STOPWORDS, maxSubstitutions: Int = 2)

Parameters

stopwords

function words removed before the prompts are compared.

maxSubstitutions

how many positions the prompts may differ in and still count as a substitution rather than a rewording. Two, so that a second home against a primary residence is one substitution of a two-word term; at three the guard starts attributing meaning to prompts that were simply reworded.