stemmer algorithm exclusions

Ilya Obshadko <[email protected]>
Newsgroups gmane.comp.search.snowball
Message-ID <CAAT_KP+zOb_u45u9yqU9zreqnJfmyE8nYXcnV_k25Dvn7jJwmg@mail.gmail.com>
Hello,

I need to modify Russian grammar for Snowball so that I could handle
certain words that shouldn't be stemmed. For example, distributed Snowball
grammar file has the following definition for nouns:

    define noun as (
        [substring] among (
            '{a}' '{e}{v}' '{o}{v}' '{i}{e}' '{'}{e}' '{e}'
            '{i}{ia}{m}{i}' '{ia}{m}{i}' '{a}{m}{i}' '{e}{i}' '{i}{i}'
            '{i}' '{i}{e}{i`}' '{e}{i`}' '{o}{i`}' '{i}{i`}' '{i`}'
            '{i}{ia}{m}' '{ia}{m}' '{i}{e}{m}' '{e}{m}' '{a}{m}' '{o}{m}'
            '{o}' '{u}' '{a}{kh}' '{i}{ia}{kh}' '{ia}{kh}' '{y}' '{'}'
            '{i}{iu}' '{'}{iu}' '{iu}' '{i}{ia}' '{'}{ia}' '{ia}'
            '{e}{ts}' '{ts}{a}' '{ts}{y}' '{ts}{u}' '{ts}{e}' '{ts}{o}{m}'
'{ts}{o}{v}' '{ts}{a}{m}'
            '{e}{n}{i}' '{e}{n}{e}{m}' '{e}{n}{a}' '{e}{n}' '{e}{n}{a}{m}'
'{e}{n}{a}{m}{i}' '{e}{n}{a}{kh}'
                (delete)
        )
    )

I need to handle the word '{a}{d}{a}{m}' so it's left as is, without going
through this rule and being stemmed to '{a}{d}'.
There are probably more exclusions that should be handled like this one.
Could anyone suggest me how to do that?

Thanks in advance!

-- 
Ilya Obshadko

_______________________________________________
Snowball-discuss mailing list
[email protected]
http://lists.tartarus.org/mailman/listinfo/snowball-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.