code: def test_biword_stopwords():
      # Note that the stop list is None here
      ana = (
          analysis.RegexTokenizer()
          | analysis.StopFilter(stoplist=None, minsize=3)
          | analysis.BiWordFilter()
      )
  
      texts = [t.text for t in ana(u("stuff and then some"))]
      assert texts == ["stuff-and", "and-then", "then-some"]
  
      # Use a stop list here
      ana = (
          analysis.RegexTokenizer()
          | analysis.LowercaseFilter()
          | analysis.StopFilter()
          | analysis.BiWordFilter()
      )
  
      texts = [t.text for t in ana(u("stuff and then some"))]
      assert texts == ["stuff-then", "then-some"]
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 31 for calling a global function with example usage: test_biword_stopwords() without return types