docs: def search(pattern):
      """Get words whose pronunciation matches a regular expression.
  
      This function Searches the CMU dictionary for pronunciations matching a
      given regular expression. (Word boundary anchors are automatically added
      before and after the pattern.)
  
      .. doctest::
  
          >>> import pronouncing
          >>> 'interpolate' in pronouncing.search('ER1 P AH0')
          True
  
      :param pattern: a string containing a regular expression
      :returns: a list of matching words
      """
      init_cmu()
      regexp = re.compile(r"\b" + pattern + r"\b")
      return [word
              for word, phones in pronunciations
              if regexp.search(phones)]