Authorship attribution related code.