Daniel Perrett > WordLists > WordLists::Dict

Download:
WordLists-0.013.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

WordLists::Dict

SYNOPSIS ^

        my $dict = WordLists::Dict->new({name=>'MyDictionary'});
        $dict->add_sense($sense); 
        # $sense->get('dict') now returns 'MyDictionary'
        my @senses = $dict->get_senses_for('head', 'verb');

DESCRIPTION ^

A dictionary is a list of senses, rather like a wordlist, with the exception that adding a sense to a dictionary marks it as belonging to that dictionary. This is useful when creating wordlists derived from several dictionaries, as you can then clearly see which belongs to which - if you remember to output dict, of course!

BUGS ^

Please use the Github issues tracker.

LICENSE ^

Copyright 2011-2012 © Cambridge University Press. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: