Binary classification: how to transform features in real numbers?
The term you are looking for is text classification. There exists a huge number of tutorials and papers out there, for example this tutorial  and this survey.