diff --git a/whole_app/spell.py b/whole_app/spell.py index a11d534..d4b11bd 100644 --- a/whole_app/spell.py +++ b/whole_app/spell.py @@ -35,7 +35,7 @@ def prepare( if request_payload.exclude_urls: for one_url in self._url_extractor.find_urls(self._input_text): self._exclusion_words.extend( - [word.lower() for word in re.split(SEPARATORS_TO_SPLIT_URL_BY_WORDS, one_url)] + {word.lower() for word in re.split(SEPARATORS_TO_SPLIT_URL_BY_WORDS, one_url)} ) self._spellcheck_engine = SpellChecker(request_payload.language)