Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / evaluateMarkers

Function: evaluateMarkers()

ts
function evaluateMarkers(text, patterns): LocaleMatch;

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

Apply a list of patterns to the supplied text and return the highest-confidence match (first match wins on ties). Surfaced for unit tests; the pipeline calls this internally.

Parameters

ParameterType
textstring
patternsreadonly LocalePatternEntry[]

Returns

LocaleMatch

Stable