class_docstr: Marks "stop" words (words too common to index) in the stream (and by
  default removes them).
  
  Make sure you precede this filter with a :class:`LowercaseFilter`.
  
  >>> stopper = RegexTokenizer() | StopFilter()
  >>> [token.text for token in stopper(u"this is a test")]
  ["test"]
  >>> es_stopper = RegexTokenizer() | StopFilter(lang="es")
  >>> [token.text for token in es_stopper(u"el lapiz es en la mesa")]
  ["lapiz", "mesa"]
  
  The list of available languages is in `whoosh.lang.languages`.
  You can use :func:`whoosh.lang.has_stopwords` to check if a given language
  has a stop word list available.
class_docstr_tok: ["Marks","``","stop","''","words","(","words","too","common","to","index",")","in","the","stream","(","and","by","default","removes","them",")",".","Make","sure","you","precede","this","filter","with","a",":","class",":","`","LowercaseFilter","`",".",">",">",">","stopper","=","RegexTokenizer","(",")","|","StopFilter","(",")",">",">",">","[","token.text","for","token","in","stopper","(","u","''","this","is","a","test","''",")","]","[","``","test","''","]",">",">",">","es_stopper","=","RegexTokenizer","(",")","|","StopFilter","(","lang=","''","es","''",")",">",">",">","[","token.text","for","token","in","es_stopper","(","u","''","el","lapiz","es","en","la","mesa","''",")","]","[","``","lapiz","''",",","``","mesa","''","]","The","list","of","available","languages","is","in","`","whoosh.lang.languages","`",".","You","can","use",":","func",":","`","whoosh.lang.has_stopwords","`","to","check","if","a","given","language","has","a","stop","word","list","available","."]
docstr: :param stoplist: A collection of words to remove from the stream.
      This is converted to a frozenset. The default is a list of
      common English stop words.
  :param minsize: The minimum length of token texts. Tokens with
      text smaller than this will be stopped. The default is 2.
  :param maxsize: The maximum length of token texts. Tokens with text
      larger than this will be stopped. Use None to allow any length.
  :param renumber: Change the 'pos' attribute of unstopped tokens
      to reflect their position with the stopped words removed.
  :param lang: Automatically get a list of stop words for the given
      language
code: def __init__(
      self,
      stoplist=STOP_WORDS,
      minsize=2,
      maxsize=None,
      renumber=True,
      lang=None,
  ):
      """
      :param stoplist: A collection of words to remove from the stream.
          This is converted to a frozenset. The default is a list of
          common English stop words.
      :param minsize: The minimum length of token texts. Tokens with
          text smaller than this will be stopped. The default is 2.
      :param maxsize: The maximum length of token texts. Tokens with text
          larger than this will be stopped. Use None to allow any length.
      :param renumber: Change the 'pos' attribute of unstopped tokens
          to reflect their position with the stopped words removed.
      :param lang: Automatically get a list of stop words for the given
          language
      """
  
      stops = set()
      if stoplist:
          stops.update(stoplist)
      if lang:
          from whoosh.lang import stopwords_for_language
  
          stops.update(stopwords_for_language(lang))
  
      self.stops = frozenset(stops)
      self.min = minsize
      self.max = maxsize
      self.renumber = renumber
  
imports: from itertools import chain
  from whoosh.compat import next
  from whoosh.analysis.acore import Composable
  from whoosh.util.text import rcompile
label_desc: Use image node_id 1 to create a new StopFilter object from inherited base classes: Filter with example: obj = StopFilter(stoplist, minsize, maxsize, renumber, lang)