Compares two text files and estimates how likely it is that the same person wrote both. Works with any language.
Requires Java 8 or newer.
Windows: double-click StyloCompare.jar (or run Run_StyloCompare.bat).
Linux / macOS:
java -jar StyloCompare.jar- Drop two text files into the window, or select them with the file picker.
- Click Compare.
- Save the report or copy it out. Text selection and Ctrl+C work as usual.
java -jar StyloCompare.jar --cli text1.txt text2.txt --out report.txt| Option | Description |
|---|---|
--out FILE |
Write the report to a file |
--force |
Skip the confirmation prompt for short texts |
--selftest |
Run the built-in self-check |
The verdict falls into one of five ranges, from "very likely the same author" to "very likely different authors". The P(same author) score is a weighted combination of 17 style metrics, adjusted for text length.
In the metrics table:
dis the distance between the two texts (lower means more similar)wis the weight of the metric(neutral)marks metrics that are left out of the average
The result is an estimate, not proof. Topic, genre, quoted material, and machine-generated text can all skew the verdict. With texts shorter than 500 words accuracy drops, and the program will tell you when that happens.
Windows: run build.bat
Linux / macOS: run ./build.sh
JDK 8 or newer is required. The sources are included in StyloCompare_src.zip and in this repository.
MIT. Author: @whoamicrash.