slackbuilds_ponce/perl/perl-String-Similarity
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
perl-String-Similarity.info
perl-String-Similarity.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
README
slack-desc

perl-String-Similarity

The similarity-function calculates the similarity index of its two
arguments. A value of 0 means that the strings are entirely different.
A value of 1 means that the strings are identical. Everything else
lies between 0 and 1 and describes the amount of similarity between
the strings.

It roughly works by looking at the smallest number of edits to change
one string into the other.

You can add an optional argument $limit (default 0) that gives the
minimum similarity the two strings must satisfy. similarity stops
analyzing the string as soon as the result drops below the given limit,
in which case the result will be invalid but lower than the given
$limit. You can use this to speed up the common case of searching for
the most similar string from a set by specifing the maximum similarity
found so far.