Autorship attribution is a very interesting field of research.
A good introduction http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.153.9654&rep=rep1&type=pdf