It might be simpler to just have the `stopwords` filter call `.lower()` on the term it's checking before comparing it, rather than trying to account for all possibly variations of capitalization in the stop words list itself.

Also `stopwords` should be a `set`, not a `list`, since the only thing that's being done with it is existence checks.