M or F is a web application with an embedded R script that provides a text mining process to classify a text according to the genre of the author.