1 package Text::Tradition::Collation::Reading::WordForm;
7 Text::Tradition::Collation::Reading::WordForm - represents a
8 language/lemma/morphology triplet that can be associated with a Reading.
12 Text::Tradition is a library for representation and analysis of collated
13 texts, particularly medieval ones. A word form is used for the analysis of
14 Reading objects; it consists of a lemma, a language, and a code to
15 represent its part of speech. In general the word forms for a particular
16 language should be read from / written to some morphological database.
22 Creates a new word form from the passed options.
26 Returns the language to which this word form belongs.
30 Returns the lemma for the word form.
34 Returns an array representing this word's morphology. The contents of the
35 array depend on the language being used.
45 # TODO do we need this?
60 isa => 'Lingua::Features::Structure',
66 Returns a string combination of language/lemma/morphology that can be used
67 in equivalence testing.
73 return join( '++', $self->language, $self->lemma, $self->morphology->to_string );
77 __PACKAGE__->meta->make_immutable;
83 This package is free software and is provided "as is" without express
84 or implied warranty. You can redistribute it and/or modify it under
85 the same terms as Perl itself.
89 Tara L Andrews E<lt>aurum@cpan.orgE<gt>