use Moose;
use JSON ();
use Module::Load;
+use Text::Tradition::Collation::Reading::WordForm;
+use Text::Tradition::Error;
=head1 NAME
'matching_forms' => 'elements',
'matching_form' => 'get',
'add_matching_form' => 'push',
+ 'clear_matching_forms' => 'clear',
},
+ default => sub { [] },
);
has 'is_disambiguated' => (
$hash->{'wordform_matchlist'} = [ $self->matching_forms ] if $self->matches;
return $hash;
}
+
+sub throw {
+ Text::Tradition::Error->throw(
+ 'ident' => 'Lexeme error',
+ 'message' => $_[0],
+ );
+}
+
no Moose;
__PACKAGE__->meta->make_immutable;