Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / LocalePack

Interface: LocalePack

Defined in: packages/memory/src/conflict/locale-packs/types.ts:53

A LocalePack defines the regex sets Stage 3 and the predicate verb set Stage 4 use to evaluate a candidate fact pair against the existing conflicts.

The bundled English pack (enLocalePack) covers the most common personal-assistant change signals (relocation / job change / preference flip / relationship / health). Additional locales are registered through defineLocalePack.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
idreadonlystringStable lowercase identifier ('en', 'fr', …).packages/memory/src/conflict/locale-packs/types.ts:55
negationMarkersreadonlyreadonly LocalePatternEntry[]Patterns that negate the existing fact (treated as supersede in Stage 3).packages/memory/src/conflict/locale-packs/types.ts:59
predicateNormalisersreadonlyreadonly string[]Verbs (or verb particles) Stage 4 strips while normalising a predicate so e.g. 'lives in' and 'living in' collapse to the same key. Lowercase tokens.packages/memory/src/conflict/locale-packs/types.ts:65
subjectStopWordsreadonlyreadonly string[]Tokens dropped from the subject before comparison ('a', 'the', …).packages/memory/src/conflict/locale-packs/types.ts:67
supersedeMarkersreadonlyreadonly LocalePatternEntry[]Patterns that explicitly mark the candidate as superseding the existing fact.packages/memory/src/conflict/locale-packs/types.ts:57