DeepStyle: User Style Embedding for Authorship Attribution of Short Texts
arxiv.org
arxiv.org
It was discovered because Rowlings' lawyer's wife told a friend, who told a journalist, who leaked it. The forensic linguistics was only used after the fact to try to confirm the story.