code: def test_shingle_stopwords():
      # Note that the stop list is None here
      ana = (
          analysis.RegexTokenizer()
          | analysis.StopFilter(stoplist=None, minsize=3)
          | analysis.ShingleFilter(size=3)
      )
  
      texts = [
          t.text
          for t in ana(
              u("some other stuff and then some things To Check     ")
          )
      ]
      assert texts == [
          "some-other-stuff",
          "other-stuff-and",
          "stuff-and-then",
          "and-then-some",
          "then-some-things",
          "some-things-Check",
      ]
  
      # Use a stop list here
      ana = (
          analysis.RegexTokenizer()
          | analysis.LowercaseFilter()
          | analysis.StopFilter()
          | analysis.ShingleFilter(size=3)
      )
  
      texts = [
          t.text
          for t in ana(
              u("some other stuff and then some things To Check     ")
          )
      ]
      assert texts == [
          "some-other-stuff",
          "other-stuff-then",
          "stuff-then-some",
          "then-some-things",
          "some-things-check",
      ]
  
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 30 for calling a global function with example usage: test_shingle_stopwords() without return types