parameters: (value)
return_statement: return re.sub('[-\s]+', '-', value)
docstring: Normalizes string, converts to lowercase, removes non-alpha characters,
      and converts spaces to hyphens.
docstring_summary: Normalizes string, converts to lowercase, removes non-alpha characters,
      and converts spaces to hyphens.
docstring_tokens: Normalizes string converts to lowercase removes non - alpha characters and converts spaces to hyphens .
function: def slugify(value):
      """
      Normalizes string, converts to lowercase, removes non-alpha characters,
      and converts spaces to hyphens.
      """
      value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
      value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
      return re.sub('[-\s]+', '-', value)
function_tokens: def slugify ( value ) : value = unicodedata . normalize ( 'NFKD' , value ) . encode ( 'ascii' , 'ignore' ) value = unicode ( re . sub ( '[^\w\s-]' , '' , value ) . strip ( ) . lower ( ) ) return re . sub ( '[-\s]+' , '-' , value )