Spam Detection N Gram Model on word and character level similar to Language Identification by applying Bayes Rule c∈{ spam, ham }argmax(P(c∣m))c∈{ spam, ham }argmax(P(m∣c)P(c))