Text IQ interview question

Basic machine learning, natural language processing concepts. One simple coding challenge (normalizing data).