Dave Rolsky > Thesaurus-0.23 > Thesaurus

Download:
Thesaurus-0.23.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.23   Source  

NAME ^

Thesaurus - Maintains lists of associated items

SYNOPSIS ^

 use Thesaurus;

 my $th = Thesaurus->new( -files => [ 'file1', 'file2' ],
                          -ignore_case => 1 );

 @words = $th->find('vegan');

 %words = $th->find( 'Faye' );

 foreach $word ( @{ $words{Faye} } )
 {
     #something ...
 }

 $th->add_file( 'file1', 'file2' );

 $th->add( [ 'tofu', 'mock duck' ] );

 $th->delete( 'meat', 'vivisection' );

DESCRIPTION ^

Thesaurus is a module that allows you to create lists of related things. It was created in order to facilitate searches of a database of Chinese names in Anglicized form. Because there are various schemes to create phonetic representations of Chinese words, the following can all represent the same Chinese character:

 Woo
 Wu
 Ng

Thesaurus can be used for anything that fits into a scalar by using the new method with no parameters and then calling the add method to add data.

Thesaurus also acts as the parent class to several child classes which implement various forms of persistence for the data structure. This module can be used on its own to instantiate an object that lives for the life of its scope.

METHODS ^

AUTHOR ^

Dave Rolsky, <autarch@urth.org>

COPYRIGHT ^

Copyright (c) 1999-2003 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO ^

Thesaurus::CSV, Thesaurus::BerkeleyDB

syntax highlighting: