1ExtractWords(3)       User Contributed Perl Documentation      ExtractWords(3)
2
3
4

NAME

6       Text::ExtractWords - Perl extension for extract words from strings
7

SYNOPSIS

9         use Text::ExtractWords qw(words_count words_list);
10
11         my %hash = ();
12         my %config = (
13           minwordlen => 2,
14           maxwordlen => 32,
15           locale     => "pt_PT.ISO_8859-1",
16         );
17         words_count(\%hash, "test the words_count function", \%config);
18
19         my @list = ();
20         words_list(\@list, "test the words_list function", \%config);
21

DESCRIPTION

23       The aim of this module is to extract the words from the texts or mails
24       to identify spam. But it can be used for another purpose.
25

METHODS

27   words_count(HASHREF, STRING, HASHREF)
28       Extract words from a string to hash reference and count the number of
29       occurrences for each word.
30
31   words_list(ARRAYREF, STRING, HASHREF)
32       Extract words from a string to array reference.
33

AUTHOR

35       Henrique Dias <hdias@aesbuc.pt>
36

SEE ALSO

38       perl(1).
39
40
41
42perl v5.30.0                      2019-07-26                   ExtractWords(3)
Impressum