From 43ff74265ca15088bfcde7ba5437327264e64f19 Mon Sep 17 00:00:00 2001 From: OneNewDev Date: Sat, 28 May 2022 15:15:55 +0200 Subject: [PATCH] ignore excluded words completely --- tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagger.py b/tagger.py index 41ddb26..3868e44 100644 --- a/tagger.py +++ b/tagger.py @@ -43,7 +43,7 @@ class FileScanner(HTMLParser): word = tag_name.lower() score = 10 if word in EXCLUDED_WORDS: - score = 0 + continue if word in title_words: score *= 4 if len(word) <= 3: