# HG changeset patch # User Igor Chubin # Date 1304274355 -7200 # Node ID 74e05d4436eef0318f8df9c5579c48e08a841a1d # Parent 4e931db74618878956d60815edc4f37020572c78 minifix: spanish + italian diff -r 4e931db74618 -r 74e05d4436ee new-words.py --- a/new-words.py Fri Mar 25 22:35:44 2011 +0200 +++ b/new-words.py Sun May 01 20:25:55 2011 +0200 @@ -29,7 +29,9 @@ stemmer_algorithm = { 'de' : 'german', 'en' : 'english', + 'es' : 'spanish', 'ru' : 'russian', + 'it' : 'italian', 'uk' : 'ukrainian', } self.stemmer = Stemmer.Stemmer(stemmer_algorithm[language]) @@ -60,12 +62,12 @@ key=lambda x:x[0], reverse=True))[0] + return best_match + suggestions = self.dictionary_suggestions(best_match) if len(suggestions) == 1: return best_match - #return best_match - verb = False corrected_best_match = best_match if best_match[-2:] == 'et':