Text comparison algorithms
Text comparison algorithms take two strings and calculate a value between 0
and 1
, where 0
indicates the strings could not be more similar, and 1
indicates they could not be more different.
Constants | ||
---|---|---|
public
|
SAME = 1
|
# |
public
|
CONTAINS = 2
|
# |
public
|
LEVENSHTEIN = 4
|
# |
public
|
SIMILAR_TEXT = 8
|
# |
public
|
NGRAM_SIMILARITY = 16
|
# |
public
|
NGRAM_INTERSECTION = 32
|
# |