I really like your idea and it would work very well if I were dealing with texts languages that all had a stemming module. I am seriously considering writing one for French. Currently, I am working with Italian, which does have Lingua::Stem::It, but my dictionary has word forms as well. The huge advantage of working with a stemmer is that it is also capable of stemming novel constructions (like stemage), which the dictionary does not account for. It would be a very interesting modification to create a dictionary of stem forms, but it would also be a lot more work checking its accuracy.
What would really be cool is a stemming module that defined all affixes via a hash of some kind, so that tense, mode/mood, plural, person, etc. could be looked up like
my %hash_of_verb_suffixes = (
future => qw([ei]rò [ei]rai [ei]rà [ei]remo [ei]rete [ei]ranno),
conditional => qw([ei]rei [ei]resti [ei]rebbe [ei]remmo [ei]reste [
+ei]rebbero)
)
and so on.
Oh, wait. That's a POS tagger;)
In any case, I can see we think along similar lines. Thanks!
--
Allolex
|