Function findSimilar

  • Gets a list of names that are similar to a given name.

    Parameters

    • needle: string

      The name to be searched

    • haystack: Iterable<string>

      The names to search amongst

    • threshold: number = 0

      The similarity threshold

    Returns string[]

    The list of similar names in decreasing order of similarity