docs: def slugify(value, allow_unicode=False):
      """Normalizes string, converts to lowercase, removes non-alpha characters,
      and converts spaces to hyphens.
  
      :param value: string
      :param allow_unicode: allow utf8 characters
      :type allow_unicode: bool
      :return: slugified string
      :rtype: str
  
      :Example:
          >>> slugify('pekná líščička')
          'pekna-liscicka'
      """
      value = str(value)
  
      if allow_unicode:
          value = unicodedata.normalize('NFKC', value)
          value = re.sub(r'[^\w\s-]', '', value, flags=re.U).strip().lower()
          return re.sub(r'[-\s]+', '-', value, flags=re.U)
      else:
          value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
          value = re.sub(r'[^\w\s-]', '', value).strip().lower()
          return re.sub('[-\s]+', '-', value)