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

    Options for scoreAstMatch.

    interface AstEvalOptions {
        scorer: FuzzScorerFn;
        threshold: number;
        fuzzyWords?: boolean;
    }
    Index

    Properties

    scorer: FuzzScorerFn

    Scorer used for a matched leaf's relevance (ranking only, not the gate).

    threshold: number

    Relevance floor (0–100) applied to a matched leaf's score.

    fuzzyWords?: boolean

    When true, a phrase word that isn't a literal substring of the title may still count as present if it fuzzily matches (≥ FUZZY_WORD_CUTOFF), giving mild typo tolerance. When false (or omitted), only exact case-insensitive substring presence counts.