NAME
HTML::Index::Stopwords - utility module for generating stopword lists words for indexing / searching using the HTML::Index modules.
SYNOPSIS
my $stopwords = HTML::Index::Stopwords->new( STOP_WORD_FILE => $swf );
if ( ! $stopwords->is_stopword( $word ) )
{
''''
}
DESCRIPTION
This is a simple utility module to manage stopword files for indexing / searching with the HTML::Index modules. The constructor takes a stopword file as an argument, which, if defined, should contain the path of a file with a newline seperated list of stopwords. The is_stopword method then acts as a filter, returning true / false depending on whether it's argument appears in the list. This operation is case insensitive. The interface supports calling the constructor without the STOP_WORD_FILE argument, in which case the is_stopword method is a noop (always returns false).
SEE ALSO
AUTHOR
Ave Wrigley <Ave.Wrigley@itn.co.uk>
COPYRIGHT
Copyright (c) 2001 Ave Wrigley. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.