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.


fun standard(language: String): List<MatchGuard>

standard for an ISO 639 language code, using the shipped Vocabularies pack.

val cache = SemanticCache(embedder, guards = MatchGuards.standard("it"))

On the JVM there is an overload taking a java.util.Locale.

Throws

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