def stem(word, lang):
     """Return WORD stemmed according to language LANG (e.g. 'en')."""
     if lang and is_stemmer_available_for_language(lang):
         return _stemmers[get_ident()][lang].stemWord(word)
     elif lang == 'el':
         #TODO: first we have to capitalize the word
         # and remove accents from the vowels
         return greek_stemmer().stem_word(word)
     else:
         return word
 def stem(word, lang):
     """Return WORD stemmed according to language LANG (e.g. 'en')."""
     if lang and is_stemmer_available_for_language(lang):
         return _stemmers[get_ident()][lang].stemWord(word)
     elif lang == 'el':
         #TODO: first we have to capitalize the word
         # and remove accents from the vowels
         return greek_stemmer().stem_word(word)
     else:
         return word
 def stem(word, lang):
     """Return WORD stemmed according to language LANG (e.g. 'en')."""
     if lang == 'en' and _stemmers and _stemmers.has_key(get_ident()):
         #make sure _stemmers[get_ident()] is avail..
         return _stemmers[get_ident()].stem(word, 0, len(word)-1)
     elif lang == 'el':
         #TODO: first we have to capitalize the word
         # and remove accents from the vowels
         return greek_stemmer().stem_word(word)
     else:
         return word
 def stem(word, lang):
     """Return WORD stemmed according to language LANG (e.g. 'en')."""
     if lang == 'en' and _stemmers and _stemmers.has_key(get_ident()):
         #make sure _stemmers[get_ident()] is avail..
         return _stemmers[get_ident()].stem(word, 0, len(word) - 1)
     elif lang == 'el':
         #TODO: first we have to capitalize the word
         # and remove accents from the vowels
         return greek_stemmer().stem_word(word)
     else:
         return word