Detailed breakdown of match score components.

export interface MatchScoreDetails {
/** Final calculated score (0-1). */
score: number;
/** Type of match that produced the score. */
matchType: "direct" | "word" | "legacy" | "none";
/** Individual component scores. */
components: {
directMatch: number;
wordMatch: number;
legacyMatch: number;
};
}
interface MatchScoreDetails {
    score: number;
    matchType: "direct" | "word" | "legacy" | "none";
    components: { directMatch: number; wordMatch: number; legacyMatch: number };
}

Properties

score: number

Final calculated score (0-1).

matchType: "direct" | "word" | "legacy" | "none"

Type of match that produced the score.

components: { directMatch: number; wordMatch: number; legacyMatch: number }

Individual component scores.