Text normalization

Text normalisation consists in applying some rules to a text to make sure it conforms to predefined conventions. For example, “find all double spaces in a text and replace them with a single space”.