How to: Text Processing
_Libraries for parsing and manipulating plain texts._

- General
  - [chardet](https://github.com/chardet/chardet) - Python 2/3 compatible character encoding detector.
  - [difflib](https://docs.python.org/3/library/difflib.html) - (Python standard library) Helpers for computing deltas.
  - [ftfy](https://github.com/LuminosoInsight/python-ftfy) - Makes Unicode text less broken and more consistent automagically.
  - [fuzzywuzzy](https://github.com/seatgeek/fuzzywuzzy) - Fuzzy String Matching.
  - [Levenshtein](https://github.com/ztane/python-Levenshtein/) - Fast computation of Levenshtein distance and string similarity.
  - [pangu.py](https://github.com/vinta/pangu.py) - Paranoid text spacing.
  - [pyfiglet](https://github.com/pwaller/pyfiglet) - An implementation of figlet written in Python.
  - [pypinyin](https://github.com/mozillazg/python-pinyin) - Convert Chinese hanzi (漢字) to pinyin (拼音).
  - [textdistance](https://github.com/orsinium/textdistance) - Compute distance between sequences with 30+ algorithms.
  - [unidecode](https://pypi.org/project/Unidecode/) - ASCII transliterations of Unicode text.
- Slugify
  - [awesome-slugify](https://github.com/dimka665/awesome-slugify) - A Python slugify library that can preserve unicode.
  - [python-slugify](https://github.com/un33k/python-slugify) - A Python slugify library that translates unicode to ASCII.
  - [unicode-slugify](https://github.com/mozilla/unicode-slugify) - A slugifier that generates unicode slugs with Django as a dependency.
- Unique identifiers
  - [hashids](https://github.com/davidaurelio/hashids-python) - Implementation of [hashids](http://hashids.org) in Python.
  - [shortuuid](https://github.com/skorokithakis/shortuuid) - A generator library for concise, unambiguous and URL-safe UUIDs.
- Parser
  - [ply](https://github.com/dabeaz/ply) - Implementation of lex and yacc parsing tools for Python.
  - [pygments](http://pygments.org/) - A generic syntax highlighter.
  - [pyparsing](https://github.com/pyparsing/pyparsing) - A general purpose framework for generating parsers.
  - [python-nameparser](https://github.com/derek73/python-nameparser) - Parsing human names into their individual components.
  - [python-phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) - Parsing, formatting, storing and validating international phone numbers.
  - [python-user-agents](https://github.com/selwin/python-user-agents) - Browser user agent parser.
  - [sqlparse](https://github.com/andialbrecht/sqlparse) - A non-validating SQL parser.