parameters: (text, language='en')
return_statement: return text
docstring: Parameter:  String (unicode or bytes).
      Returns:    The `text`, with each SmartyPants character translated to
                  its ASCII counterpart.
  
      Example input:  “Hello — world.”
      Example output: "Hello -- world."
docstring_summary: Parameter:  String (unicode or bytes).
      Returns:    The `text`, with each SmartyPants character translated to
                  its ASCII counterpart.
docstring_tokens: Parameter : String ( unicode or bytes ) . Returns : The text with each SmartyPants character translated to its ASCII counterpart .
function: def stupefyEntities(text, language='en'):
      """
      Parameter:  String (unicode or bytes).
      Returns:    The `text`, with each SmartyPants character translated to
                  its ASCII counterpart.
  
      Example input:  “Hello — world.”
      Example output: "Hello -- world."
      """
      smart = smartchars(language)
  
      text = re.sub(smart.endash, "-", text)  # en-dash
      text = re.sub(smart.emdash, "--", text) # em-dash
  
      text = re.sub(smart.osquote, "'", text)  # open single quote
      text = re.sub(smart.csquote, "'", text)  # close single quote
  
      text = re.sub(smart.opquote, '"', text)  # open double quote
      text = re.sub(smart.cpquote, '"', text)  # close double quote
  
      text = re.sub(smart.ellipsis, '...', text)# ellipsis
  
      return text
function_tokens: def stupefyEntities ( text , language = 'en' ) : smart = smartchars ( language ) text = re . sub ( smart . endash , "-" , text ) # en-dash text = re . sub ( smart . emdash , "--" , text ) # em-dash text = re . sub ( smart . osquote , "'" , text ) # open single quote text = re . sub ( smart . csquote , "'" , text ) # close single quote text = re . sub ( smart . opquote , '"' , text ) # open double quote text = re . sub ( smart . cpquote , '"' , text ) # close double quote text = re . sub ( smart . ellipsis , '...' , text ) # ellipsis return text