GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEXT::EXTRACTWORDS (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



  use Text::ExtractWords qw(words_count words_list);

  my %hash = ();
  my %config = (
    minwordlen => 2,
    maxwordlen => 32,
    locale     => "pt_PT.ISO_8859-1",
  );
  words_count(\%hash, "test the words_count function", \%config);

  my @list = ();
  words_list(\@list, "test the words_list function", \%config);



DESCRIPTION

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

METHODS

    words_count(HASHREF, STRING, HASHREF)

Extract words from a string to hash reference and count the number of occurrences for each word.

    words_list(ARRAYREF, STRING, HASHREF)

Extract words from a string to array reference.

AUTHOR

Henrique Dias <hdias@aesbuc.pt>

SEE ALSO

perl(1).
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EXTRACTWORDS (3) 2003-10-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.