View Source ExFuzzywuzzy.Algorithms.PartialMatch (ex_fuzzywuzzy v0.3.0)

Implementation for the partial matching algorithms used by the library interface. The model defined is linked to the calling ratio functions, making no sense to be used externally

Summary

Types

The position of a grapheme in a string

t()

The data collected applying partial matching algorithm

Functions

Calculates a list of string pairs which are the best matching substrings extracted from the provided ones

Types

@type index() :: non_neg_integer()

The position of a grapheme in a string

@type t() :: %ExFuzzywuzzy.Algorithms.PartialMatch{
  left_block: String.t(),
  left_starting_index: index(),
  length: non_neg_integer(),
  right_block: String.t(),
  right_starting_index: index()
}

The data collected applying partial matching algorithm

Functions

Link to this function

matching_blocks(left, right)

View Source
@spec matching_blocks(String.t(), String.t()) :: [t()]

Calculates a list of string pairs which are the best matching substrings extracted from the provided ones

Link to this function

matching_blocks(left, right, left_length, right_length)

View Source
@spec matching_blocks(String.t(), String.t(), index(), index()) :: [t()]