ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Module constants/fuzzScorers

    Constants Fuzz-match scorer registry shared between `SupplierBase.fuzzyFilter` and the Advanced drawer section's override selector. Keys are stored in `userSettings.fuzzScorerOverride`; when present at search time they replace each supplier's per-class `fuzzScorer` default. `distance` is intentionally excluded — it's an edit distance (lower = more similar), while all other scorers return 0–100 (higher = more similar), so it doesn't plug into the same cutoff/filter flow.

    FuzzScorerFn

    Functions

    isFuzzScorerName

    Type guard — narrows an arbitrary string (e.g. out of userSettings) to a valid scorer key, so callers can safely index FUZZ_SCORERS[name].

    Type Aliases

    FuzzScorerName

    Variables

    FUZZ_SCORERS
    FUZZ_SCORER_NAMES

    Ordered list of scorer names for UI option rendering. Kept as a tuple so the select menu preserves the "simple → compound" visual ordering we use in the comparison log.