Hi,
If you are looking to do a statistical analysis have a look at using
Bayesian theorem[
^].
If you are doing text classification via NLP then have a look at some of
these language models[
^].
Note that Bayes doesn't work very well with short messages such as SMS. Natural language processing will have higher accuracy at a higher computational cost.