KeywordRule interface

Last updated: 2026-03-02T15:32:34.984Z

Metrics

LOC: 11 Complexity: 1 Params: 0

Signature

interface KeywordRule

Source Code

interface KeywordRule {
  /** Normalized substrings (or whole-word tokens) to look for */
  patterns: string[];
  /** FieldType to assign when matched */
  type: FieldType;
  /**
   * When true, each pattern must appear as a complete word (not a substring
   * of another word). Use for short codes like "rg", "obs", "cep".
   */
  wholeWord?: boolean;
}

No outgoing dependencies.

No incoming dependencies.