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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | string | Stable lowercase identifier ('en', 'fr', …). | packages/memory/src/conflict/locale-packs/types.ts:55 |
negationMarkers | readonly | readonly LocalePatternEntry[] | Patterns that negate the existing fact (treated as supersede in Stage 3). | packages/memory/src/conflict/locale-packs/types.ts:59 |
predicateNormalisers | readonly | readonly 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 |
subjectStopWords | readonly | readonly string[] | Tokens dropped from the subject before comparison ('a', 'the', …). | packages/memory/src/conflict/locale-packs/types.ts:67 |
supersedeMarkers | readonly | readonly LocalePatternEntry[] | Patterns that explicitly mark the candidate as superseding the existing fact. | packages/memory/src/conflict/locale-packs/types.ts:57 |