Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EnHybridDistanceConstructor

Constructs a distance metric that weighs between an English phonetic distance and string distance.

export
interface

EnHybridDistanceConstructor

Hierarchy

  • EnHybridDistanceConstructor

Index

Constructors

Constructors

constructor

  • new EnHybridDistanceConstructor(phoneticWeightPercentage: number): Distance<DistanceInput> & { phoneticWeightPercentage: number }
  • Create an English hybrid distance.

    memberof

    EnHybridDistanceConstructor

    Parameters

    • phoneticWeightPercentage: number

      Between 0 and 1. Weighting trade-off between the phonetic distance and the lexical distance scores. 1 meaning 100% phonetic score and 0% lexical score.

    Returns Distance<DistanceInput> & { phoneticWeightPercentage: number }

    )}

Generated using TypeDoc