ChemPal Documentation - v1.7.0
    Preparing search index...

    Type Alias FuzzScorerFn

    FuzzScorerFn: (str1: string, str2: string) => number

    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.

    Type declaration

      • (str1: string, str2: string): number
      • Parameters

        • str1: string
        • str2: string

        Returns number

    export type FuzzScorerFn = (str1: string, str2: string) => number;