For simplicity and ease of implementation, text normalization is basically done by rules and dictionaries. Here's an example.