/** * Security and Technical Term Synonyms for Improved Recall * * This module provides comprehensive synonym mappings to improve * paraphrase detection in drift detection. Synonyms are bidirectional * and include abbreviations, alternative phrasings, and related terms. */ /** * Security vulnerability synonyms. * Each entry maps a canonical term to all equivalent expressions. */ export declare const SECURITY_SYNONYMS: Record; /** * Limitation/constraint synonyms. */ export declare const LIMITATION_SYNONYMS: Record; /** * Behavioral assertion synonyms. */ export declare const BEHAVIOR_SYNONYMS: Record; /** * Build a reverse lookup map from any synonym to its canonical term. */ export declare function buildSynonymLookup(synonymMap: Record): Map; /** * Expand a text by adding canonical terms for any synonyms found. * This improves keyword overlap for paraphrases. */ export declare function expandWithSynonyms(text: string, type?: 'security' | 'limitation' | 'behavior'): string; /** * Check if two texts share a canonical security term. * Returns the matching term(s) or empty array if no match. * * NOTE: Generic terms like "vulnerability" are excluded since they would * cause false matches between completely different vulnerability types. */ export declare function findSharedSecurityTerms(text1: string, text2: string): string[]; /** * Calculate semantic similarity boost from synonyms. * Returns 0-100 indicating how much two texts share canonical terms. */ export declare function calculateSynonymSimilarity(text1: string, text2: string, type?: 'security' | 'limitation' | 'behavior'): number; /** * Time unit normalization for comparing timeouts. * Converts all time expressions to milliseconds. */ export declare function normalizeTimeToMs(text: string): number | null; /** * Check if two time expressions are equivalent. */ export declare function timeExpressionsEqual(text1: string, text2: string): boolean; /** * Abbreviation expansions for common security terms. */ export declare const ABBREVIATIONS: Record; /** * Expand abbreviations in text. */ export declare function expandAbbreviations(text: string): string; //# sourceMappingURL=synonyms.d.ts.map