standard

The default set: one guard per way a near-miss slips past a similarity threshold, wired to the English GuardVocabulary.

Ordered cheapest and most decisive first, since dev.kmemo.SemanticCache stops at the first rejection.


standard, but reading every marker from vocabulary — the way to run the guards against a non-English language, or a customized marker set. NumericGuard is language-agnostic and takes no markers; every other guard is fed from the pack.


standard for a locale's language, using the shipped Vocabularies pack.

val cache = SemanticCache(embedder, guards = MatchGuards.standard(Locale.ITALIAN))

Throws

if no pack ships for the locale's language — see Vocabularies.forLocale for the supported set. Pass a GuardVocabulary directly to use your own.