UNPKG

@palasimi/ipa-cluster

Version:

Cluster words with similar IPA transcriptions together

10 lines 430 B
export interface Sequence { [key: number]: unknown; length: number; } export type CostFunctionOptions = { [key: string | number]: unknown; }; export type CostFunction<T> = (s: T, t: T, i: number, j: number, options?: CostFunctionOptions) => number; export declare function levenshtein<T extends Sequence>(s: T, t: T, cost?: CostFunction<T>, options?: CostFunctionOptions): number; //# sourceMappingURL=metrics.d.ts.map