README 835 B

12345678910111213141516171819
  1. perl-String-Similarity
  2. The similarity-function calculates the similarity index of its two
  3. arguments. A value of 0 means that the strings are entirely different.
  4. A value of 1 means that the strings are identical. Everything else
  5. lies between 0 and 1 and describes the amount of similarity between
  6. the strings.
  7. It roughly works by looking at the smallest number of edits to change
  8. one string into the other.
  9. You can add an optional argument $limit (default 0) that gives the
  10. minimum similarity the two strings must satisfy. similarity stops
  11. analyzing the string as soon as the result drops below the given limit,
  12. in which case the result will be invalid but lower than the given
  13. $limit. You can use this to speed up the common case of searching for
  14. the most similar string from a set by specifing the maximum similarity
  15. found so far.