cockatoo.js
Version:
Fuzzy search library based based on Damerau Levenshtein distance algorithm for Node.js
12 lines (11 loc) • 829 B
TypeScript
import { CockatooOptions } from './cockatooOptions';
import { Match } from './match';
export declare function getCompleteness(search: string, pattern: string, score: number): number;
export declare function applySensitiveness(text: string | undefined, options: CockatooOptions): string;
export declare function removeAccents(text: string): string;
export declare function orderMatches<T>(matches: Match<T>[]): Match<T>[];
export declare function getMaxScoreDif(a: Match<any>, b: Match<any>): number;
export declare function getMinScoreDif(a: Match<any>, b: Match<any>): number;
export declare function getCompletenessDif(a: Match<any>, b: Match<any>): number;
export declare function getTokenCompletenessDif(a: Match<any>, b: Match<any>): number;
export declare function getTokenMatchesDif(a: Match<any>, b: Match<any>): number;