DOI: 10.5281/zenodo.7956049
title: The Authorship of Stephen King's Books Written Under the Pseudonym "Richard Bachman": A Stylometric Analysis (data)

description: This data accompanies a paper for the 2nd Annual Conference for Computational Literary Studies: "The Authorship of Stephen King’s Books Written Under the Pseudonym 'Richard Bachman': A Stylometric Analysis". <strong>Abstract</strong>: Between 1977 and 1984, Stephen King published five novels under the pseudonym “Richard Bachman”. Reviewers noted similarities between King’s and Bachman’s writing styles when <em>Thinner </em>(1984) was published, ultimately leading to King’s unmasking. We investigate, using the Juola protocol, whether computational techniques can correctly identify King as the author of the Bachman books out of a selection of contemporary candidate authors – Dean Koontz, Peter Straub, and Thomas Harris. We also perform a post-hoc analysis of the use of pop-culture references and brand names in Bachman, King, Koontz, Straub, and Harris novels, based on comments in reviews of Bachman and King novels. The references extracted from the Bachman books occurred significantly more often in King’s texts than in the others’, showing that attentive readers could have “heard King’s voice” in the Bachman books through what a reviewer denigratingly called King’s “compulsion to list brand-name products and his affinity for pop-cult teenage junk”. These results contribute to the vexed issue of explainability, which is a recurrent challenge in author identification for literary texts. Below is a description of each file in this repository: <strong>bachman_segments_features_array_1000token_segments.csv</strong>, <strong>bachman_segments_features_array_5000token_segments.csv</strong>, and <strong>bachman_segments_features_array_10000token_segments.csv</strong> contain the feature spaces created by vectorizing 1,000-, 5,000-, and 10,000-token segments of Bachman, King, Koontz, and Straub books. Each row of the csv files contains the vectorized segment, the segment's author, the book the segment was drawn from, the book's publication date, and the segment number. <strong>bachman_segments_author_candidate_cosine_distances_1000token_segments.csv</strong>, <strong>bachman_segments_author_candidate_cosine_distances_5000token_segments.csv</strong>,and <strong>bachman_segments_author_candidate_cosine_distances_10000token_segments.csv </strong>contain the Bachman segment number, bootstrap iteration number (from 0 and 9,999), the distractor author of the randomly-sampled segment, and the cosine distance between the Bachman segment vector and the distractor author's randomly-sampled segment vector (calculated using the data stored in the bachman_segments_features_array_1000token_segments.csv, bachman_segments_features_array_5000token_segments.csv, and bachman_segments_features_array_10000token_segments.csv files). <strong>bachman_segments_author_candidate_ranks_1000token_segments.csv</strong>, <strong>bachman_segments_author_candidate_ranks_5000token_segments.csv</strong>,and <strong>bachman_segments_author_candidate_ranks_10000token_segments.csv </strong>contain the same columns as the 3 files described in the previous paragraph, but the cosine distance between Bachman segment and distractor author segment is converted to a ranking. For each bootstrap iteration there are 4 (one for each candidate author) rows containing the distance ranking between the Bachman segment and a candidate author segment. In a particular bootstrap iteration, if a King segment had the smallest cosine distance to a Bachman segment, King has the ranking "1", and if a Koontz segment had the second smallest distance to a Bachman segment, Koontz has the ranking "2", and so on. <strong>predicted_author_candidate_raw_counts_1000token_segments.csv</strong>,<strong> predicted_author_candidate_raw_counts_5000token_segments.csv</strong>, and<strong> predicted_author_candidate_raw_counts_10000token_segments.csv </strong>contain the total number of times King, Straub, Harris, and Koontz segments received a certain distance ranking in the files described in the previous paragraph. <strong>predicted_author_candidate_proportions_1000token_segments.csv</strong>, <strong>predicted_author_candidate_proportions_5000token_segments.csv</strong>, and and <strong>predicted_author_candidate_proportions_10000token_segments.csv</strong> contain a Bachman book title, and percentage of that book's segments that received the distance rankings 1-4 of each author. For example, in <strong>predicted_author_candidate_proportions_10000token_segments.csv, </strong><em>The Long Walk</em>'s segments were ranked as most similar (rank= "1") to King segments in 73.3% of bootstrap iterations. <strong>pop_culture_refs_counts_books_10000token_segments.csv </strong>contains the author and book title of a randomly-sampled 10,000-token segment from the aforementioned book, the iteration (from 0 to 99), and the number of pop culture references found in the segment that match those extracted from Bachman books.