Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit 702b865

Browse files
committed
Removes superfluous depends=[]
1 parent 86095aa commit 702b865

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

revscoring/languages/english.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def stem_word_process():
5959
def stem_word(word):
6060
return STEMMER.stem(word).lower()
6161
return stem_word
62-
stem_word = LanguageUtility("stem_word", stem_word_process, depends_on=[])
62+
stem_word = LanguageUtility("stem_word", stem_word_process)
6363

6464

6565
def is_badword_process():
@@ -74,21 +74,21 @@ def is_informal_word(word):
7474
return bool(INFORMAL_REGEX.match(word.lower()))
7575
return is_informal_word
7676
is_informal_word = LanguageUtility("is_informal_word",
77-
is_informal_word_process, depends_on=[])
77+
is_informal_word_process)
78+
7879

7980
def is_misspelled_process():
8081
def is_misspelled(word):
8182
return not DICTIONARY.check(word)
8283
return is_misspelled
8384

84-
is_misspelled = LanguageUtility("is_misspelled", is_misspelled_process,
85-
depends_on=[])
85+
is_misspelled = LanguageUtility("is_misspelled", is_misspelled_process)
8686

8787
def is_stopword_process():
8888
def is_stopword(word):
8989
return word.lower() in STOPWORDS
9090
return is_stopword
91-
is_stopword = LanguageUtility("is_stopword", is_stopword_process, depends_on=[])
91+
is_stopword = LanguageUtility("is_stopword", is_stopword_process)
9292

9393
english = Language("revscoring.languages.english",
9494
[stem_word, is_badword, is_misspelled, is_stopword, is_informal_word])

0 commit comments

Comments
 (0)