Researchers from the Computational Story Lab at the University of Vermont in Burlington used sentiment analysis.
Everyone who secretly thought that all novels have the same plot can feel vindicated by new research supporting that suspicion. Sort of.
Source: New Data Analysis Suggests Only Six Book Plots Exist