UNPKG

fuzzy-rater

Version:

Tooling for fuzzily rating text according to some query

19 lines 965 B
import { IFuzzyWordMatch } from "./wordMatcher/_types/IFuzzyWordMatch"; import { IQueryWord } from "./_types/IQueryWord"; import { IMatchGroup } from "./_types/IMatchGroup"; /** * Adds the alteration data to the given collection of match groups * @param groups The groups to add the data to * @param alterations The alteration data to be added * @param queryWord The query word that these alterations are for * @returns The groups with the new alterations added */ export declare function addAlterationData(groups: IMatchGroup[], alterations: IFuzzyWordMatch[], queryWord: IQueryWord): IMatchGroup[]; /** * Splits a match group in half, at the given location * @param group The group to be split * @param index The index to split it at * @returns The split group */ export declare function splitGroup(group: IMatchGroup, index: number): [IMatchGroup | undefined, IMatchGroup | undefined]; //# sourceMappingURL=addAlterationData.d.ts.map