DiceCoefficient algorithm. The DiceCoefficient algorithm is a method for finding the similarity between two strings.

Implements

Constructors

Properties

options: AlgorithmOptions = ...

Methods

  • Calculate the similarity between two strings.

    Parameters

    • startText: string

      The initial string.

    • endText: string

      The resulting string.

    Returns number

    a number between 0 and 1 that represents the similarity between two strings.

  • Calculate the similarity between two strings.

    Parameters

    • startText: string

      The initial string.

    • endText: string

      The resulting string.

    Returns number

    a number between 0 and 1 that represents the similarity between two strings.