From: Tara L Andrews Date: Tue, 6 Mar 2012 13:33:30 +0000 (+0100) Subject: hooks for morphology tagging X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd602649809892770f8d64c5ead048b094d44b50;p=scpubgit%2Fstemmatology.git hooks for morphology tagging --- diff --git a/lib/Text/Tradition/Collation/Reading.pm b/lib/Text/Tradition/Collation/Reading.pm index 4f02376..8a90092 100644 --- a/lib/Text/Tradition/Collation/Reading.pm +++ b/lib/Text/Tradition/Collation/Reading.pm @@ -118,6 +118,32 @@ has 'rank' => ( predicate => 'has_rank', clearer => 'clear_rank', ); + +## For morphological analysis + +has 'normal_form' => ( + is => 'rw', + isa => 'Str', + predicate => 'has_normal_form', + ); + +has 'lemma' => ( + is => 'rw', + isa => 'Str', + predicate => 'has_lemma', + ); + +has 'morphology' => ( + is => 'rw', + isa => 'Str', + predicate => 'has_morphology', + ); + +has 'morph_possibilities' => ( + is => 'ro', + isa => 'HashRef[Str]', + default => sub { {} }, + ); ## For prefix/suffix readings