Prepares raw texts for further processing