File Coverage

blib/lib/Acme/CPANModules/Similarity.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Acme::CPANModules::Similarity;
2              
3 1     1   399611 use strict;
  1         2  
  1         34  
4 1     1   4 use warnings;
  1         1  
  1         55  
5              
6 1     1   426 use Acme::CPANModulesUtil::Misc;
  1         480  
  1         117  
7              
8             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
9             our $DATE = '2024-01-17'; # DATE
10             our $DIST = 'Acme-CPANModules-Similarity'; # DIST
11             our $VERSION = '0.001'; # VERSION
12              
13             my $text = <<'_';
14             ** Between arrays/bags/sets
15              
16             uses Algorithm::Diff to calculate similarity between
17             two arrays. It can also calculate similarity between two strings.
18              
19            
20              
21            
22              
23            
24              
25             provides several algorithms.
26              
27              
28             ** Between codes
29              
30            
31              
32              
33             ** Between colors
34              
35            
36              
37             provides `rgb_diff()` and `rgb_distance()` to calculate
38             difference between two RGB colors using one of several algorithms.
39              
40              
41             ** Between files
42              
43             uses file size and a modified soundex algorithm on the
44             filename to determine similarity.
45              
46              
47             ** Between graphs
48              
49            
50              
51              
52             ** Between HTML/XML documents
53              
54             calculates the structural similarity between two HTML
55             documents.
56              
57            
58              
59              
60             ** Between images
61              
62            
63              
64              
65             ** Between strings/texts
66              
67             Similarity between two text can be calculated using Levenshtein edit distance.
68             There are several levenshtein modules on CPAN, among others:
69             , ,
70             , , .
71             For more details, see .
72              
73             Soundex can also be used. Some example soundex moduless: ,
74             .
75              
76             uses Algorithm::Diff to calculate similarity between
77             two strings. It's roughly similar in speed to pure-perl Levenshtein modules, and
78             tend to be faster for longer strings. It can also calculate similarity between
79             two arrays.
80              
81            
82              
83            
84              
85            
86              
87            
88              
89            
90              
91              
92             ** Between vectors
93              
94            
95              
96              
97             ** Between words (semantic similarity)
98              
99            
100              
101            
102              
103              
104             ** Others
105              
106            
107              
108             _
109              
110             our $LIST = {
111             summary => 'List of modules to finding similarity between stuffs',
112             description => $text,
113             tags => ['task'],
114             };
115              
116             Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description;
117              
118             1;
119             # ABSTRACT: List of modules to finding similarity between stuffs
120              
121             __END__