diff options
author | Nikos Giotis <nikos.giotis@gmail.com> | 2018-02-11 12:13:36 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-17 07:42:52 +0700 |
commit | bd3ce916361fb8f1954ea2d1a4739b931d7038f8 (patch) | |
tree | 68bf0ed81aaf2e83affafd3a173e8a9ab5db63f5 /perl/perl-String-Similarity/README | |
parent | cb9efc78d9c3cd41fd21754508f560f1a75f2187 (diff) | |
download | slackbuilds-bd3ce916361fb8f1954ea2d1a4739b931d7038f8.tar.gz slackbuilds-bd3ce916361fb8f1954ea2d1a4739b931d7038f8.tar.xz |
perl/perl-String-Similarity: Added (similarity of two strings).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-String-Similarity/README')
-rw-r--r-- | perl/perl-String-Similarity/README | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perl/perl-String-Similarity/README b/perl/perl-String-Similarity/README new file mode 100644 index 0000000000..12dc351f3b --- /dev/null +++ b/perl/perl-String-Similarity/README @@ -0,0 +1,18 @@ +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. |