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
| Parameter | Type |
|---|---|
text | string |
patterns | readonly LocalePatternEntry[] |