Stylometry is the application of the study of linguistic style, usually to written language. It has also been applied successfully to music, paintings, chess, and source code.