From 702b8654bd87869715db42a68c7521050ae64a18 Mon Sep 17 00:00:00 2001 From: halfak Date: Thu, 16 Jul 2015 22:55:48 -0500 Subject: [PATCH] Removes superfluous depends=[] --- revscoring/languages/english.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/revscoring/languages/english.py b/revscoring/languages/english.py index ec9a57bd..fc0b16fd 100644 --- a/revscoring/languages/english.py +++ b/revscoring/languages/english.py @@ -59,7 +59,7 @@ def stem_word_process(): def stem_word(word): return STEMMER.stem(word).lower() return stem_word -stem_word = LanguageUtility("stem_word", stem_word_process, depends_on=[]) +stem_word = LanguageUtility("stem_word", stem_word_process) def is_badword_process(): @@ -74,21 +74,21 @@ def is_informal_word(word): return bool(INFORMAL_REGEX.match(word.lower())) return is_informal_word is_informal_word = LanguageUtility("is_informal_word", - is_informal_word_process, depends_on=[]) + is_informal_word_process) + def is_misspelled_process(): def is_misspelled(word): return not DICTIONARY.check(word) return is_misspelled -is_misspelled = LanguageUtility("is_misspelled", is_misspelled_process, - depends_on=[]) +is_misspelled = LanguageUtility("is_misspelled", is_misspelled_process) def is_stopword_process(): def is_stopword(word): return word.lower() in STOPWORDS return is_stopword -is_stopword = LanguageUtility("is_stopword", is_stopword_process, depends_on=[]) +is_stopword = LanguageUtility("is_stopword", is_stopword_process) english = Language("revscoring.languages.english", [stem_word, is_badword, is_misspelled, is_stopword, is_informal_word])