Akin.SubstringDoubleMetaphone (Akin v0.1.5) View Source
Tokenize the search terms into lists split by white space and compare the cartesian product of the lists.
Examples
iex> left = "Alice Liddel" iex> right = "Liddel, Alice" iex> Akin.compare_using("substring_double_metaphone", left, right) 1.0 iex> right = "Alice P Liddel" iex> Akin.compare_using("substring_double_metaphone", left, right) 1.0 iex> right = "Alice Hargreaves" iex> Akin.compare_using("substring_double_metaphone", left, right) 0.5 iex> right = "Alice's Adventures in Wonderland" iex> Akin.compare_using("substring_double_metaphone", left, right) 0.5
Link to this section Summary
Functions
Compares two lists of values phonetically and returns a boolean of whether they match reducing all possible matching levels.
Link to this section Functions
Specs
compare( %Akin.Corpus{ list: term(), original: term(), set: term(), stems: term(), string: term() }, %Akin.Corpus{ list: term(), original: term(), set: term(), stems: term(), string: term() }, Keyword.t() ) :: float()
Compares two lists of values phonetically and returns a boolean of whether they match reducing all possible matching levels.