lengthSimilarity property
double
get
lengthSimilarity
Returns the similarity in length between two terms, defined as:
lengthSimilarity = 1 minus the log of the ratio between the term lengths,
with a floor at 0.0:
1-(log(this.length/other.length))
Returns:
- 1.0 if this and other are the same length; and
- 0.0 if the ratio between term lengths is more than 10 or less than 0.1.
The two strings are converted to lower-case and trimmed for the comparison.
Not case sensitive.
Implementation
double get lengthSimilarity;