<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Antwerp, Belgium
£ leonardo.grotti@student.uantwerpen.b(Le. Grotti);mona.allaert@uantwerpen.b(eM. Allaert);
patrick.quick@student.uantwerpen.be(P. Quick)
ç https://github.com/corvusMidnight(L. Grotti);https://github.com/MonaDT(M. Allaert);
https://github.com/patrickquick(P. Quick)
ȉ</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Good Omens: A Collaborative Authorship Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>LeonardoGrotti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mona Allaert andPatrickQuick</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universiteit Antwerpen, Faculty of Arts</institution>
          ,
          <addr-line>Prinsstraat 13, B-2000, Antwerp</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>Good Omens is a collaborative novel written by Terry Pratchett and Neil Gaiman. Rising interest in the book, ampli昀椀ed by the success of the recent screen adaptation, has aroused curiosity regarding its realization. We use Rolling Delta and Rolling Classify to detect stylistic signals from each author as these methods reveal authorial takeovers. The same techniques are applied to compare the screenplay of the show to the novel. The results indicate thaGtood Omens resembles Pratchett's work more closely. The screenplay is correctly attributed to Gaiman, its sole author, and the comparison reveals that Gaiman may have relied less on the source material over the course of the narrative arc.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Good Omens</kwd>
        <kwd>Rolling Stylometry</kwd>
        <kwd>PCA</kwd>
        <kwd>collaborative authorship</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>in the 昀椀eld of fantasy and science 昀椀ction. They also professed a love for comedy and claimed
that the main objective of writingGood Omens was ‘to make the other one laugh’1[4, p. 484].</p>
      <p>The collaboration seemed to work well in that they were both equally invested in the writing
process:</p>
      <sec id="sec-1-1">
        <title>We wrote the 昀椀rst dra昀琀 in about nine weeks. Nine weeks of gloriously long phone</title>
        <p>
          calls, in which we would read each other what we’d written, and try to make the
other one laugh. We’d plot, delightedly, and then hurry o昀 the phone, determined
to get to the next good bit before the other one could. We’d rewrite each other,
footnote each other’s pages, and sometimes even footnote each other’s footnotes.
[
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]
        </p>
        <p>Even though both Pratchett and Gaiman remained playfully evasive about attributing
speci昀椀c aspects to one another, it is clear that Gaiman initiated the project. He wrote 5000 words
in which he created one of the main characters, Crowley, and wrote a passage regarding a
baby swap, which would come to be the premise oGfood Omens. The dra昀琀 was then sent to
Pratchett for feedback, who suggested writing it together as a novel. In the beginning, they
wrote separately: Pratchett during the day, Gaiman during the night, with a short overlap in
the a昀琀ernoon to compare notes. However, towards the end of the writing process Gaiman
moved into Pratchett’s spare room to polish the 昀椀nal parts before publicatio2n].[</p>
        <p>Both authors kept looking back with fondness on their project and remained in touch for
potential cinematic adaptations of the novel. In 2008, however, Pratchett was diagnosed with
early-onset Alzheimer’s and passed away in 2015. At Pratchett’s request, Gaiman took it upon
himself to write the screenplay for a six-part television show, which was released in 2019 and
is currently awaiting its second season.</p>
        <p>When Good Omens was written, both authors were only at the start of their careers: ‘[i]n
those days Neil Gaiman was barely Neil Gaiman and Terry Pratchett was only just Terry
Pratchett’ [14, p. 475]. This changed for Pratchett when theDiscworld series achieved great renown.
Gaiman gained popularity in the United States, predominantly due to his work as a graphic
novelist. As the reputation of the authors 昀氀ourished, so did that oGfood Omens, which earned
the status of ‘cult classic’ 1[4, p. 478]. Consequently, interest in the creative process oGfood
Omens bloomed. Even though being cryptic about the writing process of the novel was a
deliberate choice 2[], a stylometric approach toGood Omens could shine a light on the question
of who wrote what.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Material</title>
      <p>
        Good Omens takes an unlikely setting for a comedy, namely, the end of the world. At the
center of the story are two main characters: the angel Aziraphale and the demon Crowley
(who was loosely based on Gaiman1[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]), who operate as agents of heaven and hell on earth.
The story follows their friendship that spans thousands of years and their attempts to prevent
the apocalypse, which will come as a result of the birth of Satan’s son, Adam. The characters’
inability to distinguish the motives of heaven and hell in bringing about, or, rather, ensuring
the end of the world, functions as the framework for the novel’s comedy.
      </p>
      <p>The novel is composed of six chapters plus an appendix. The lat1tecrontains a 昀椀ctional
interview regarding the collaboration between the two authors. Here, Pratchett and Gaiman
make some comments regarding who wrote what. They report that most of the scenes
between Adam and Anathema (witch and owner of the 昀椀ctional book of prophecieTshe Nice and
Accurate Prophecies of Agnes Nutter) were written by Pratchett, and the passages with the Four
Horsemen of the Apocalyps2e were of Gaiman’s hand. Moreover, they claim that Gaiman was
the dominant author at the opening of the novel, whereas Pratchett had more control towards
the end [14, p. 477].</p>
      <p>
        Scholars have not concerned themselves with the stylometric analysisGoofod Omens. One
exception is Callaway 8[]. In her blog post, Callaway uses the function Rolling Classify
(using 50 features and 5000 word-long segments), in combination with a linear Support Vector
Machine (SVM), to detect authorial takeovers iGnood Omens. The resulting graph highlighted
that Gaiman is indeed more present at the beginning of the boo3kand in sections that include
the Four Horsemen. In Callaway8[]’s analysis, however, Pratchett is still the predominant
author and she concluded that ’even in areas where one of the two author’s signal dominates, the
other author is present. Both Gaiman and Pratchett are detectable all over their shared work’
[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>Regarding the appendix, it is important to consider to what extent these attributions may
be constructed. As previously mentioned, the two o昀琀en reworked each other’s material, with
Pratchett professing that ‘both can write passably in the other one’s style1’4[, p. 477]. The
appendix, although written as an interview to a third unnamed person, was authored by both
Pratchett and Gaiman. It is also worth mentioning that the appendix is e昀ectively part of the
novel. For that reason, it may be challenging to try and attribute certain passages to a speci昀椀c
author or verify their claims. Despite its limited length and scope, the appendiGxooofd Omens
remains the most reliable source. Interviews found online o昀琀en echo the same information or
refer directly to it.</p>
      <p>On the other hand, Callaway’s8[] study does not reference any source material and does not
relate its results to any of the author’s claims. Additionally, the results presented there are not
replicable or comparable since (i) the reference corpus and the 50 features used to run Rolling
Classi昀椀er are not provided and (ii) chapters markers have not been added to the graph. Thus,
our expectations are based on the content of the appendix and we only partially compare our
results to Callaway’s8[].</p>
      <p>First, we anticipate that Pratchett will be the most dominant authorGoofod Omens since he
took upon himself the role of editor (see the interview i5n])[. Also, we expect Gaiman’s style
to emerge in sections of the novel involving characters (e.g. Four Horsemen of the Apocalypse)
attributed to him. Finally, we forecast Pratchett’s idiom to be predominant in the later sections
of the book and Gaiman’s in the earlier ones.</p>
      <p>
        Regarding the screenplay, not many hypotheses can be formulated within the scope of this
study. Firstly, a screenplay belongs to a di昀erent text type and cannot be reliably compared
to novels. As such, its validity as a control text is limited. Secondly, neither author publicly
1Perhaps 昀椀ttingly titled Good Omens, The Facts (or, at least, lies that have been hallowed by time).
2For reference, War, Famine, Pollution, and Death.
3Callaway [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] enriches the graph with short notes summarizing the content of each segment in the novel.
commented on the novel’s potential for screen adaptation, and Gaiman never shared his process
in writing it. We still expect Gaiman’s style to be overwhelmingly predominant since he was
the sole author. Thirdly, because the show is faithful to the narrative arc of the novel, we
anticipate the screenplay to take liberally from the book.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Methodology</title>
      <p>As a preliminary step, we 昀椀rst compiled a comprehensive corpus, consisting of ten novels for
Gaiman and sixteen for Pratchett. Table 1 above summarizes the structure of our corpus.</p>
      <p>The corpus consists of 2,366,257 word tokens (see Table 1). It must be noted that Gaiman is
slightly underrepresented in the dataset since he wrote fewer novels, and we did not include any
of his non-昀椀ction work.4 The novels in bold are part of the sub-corpus selected to run Rolling
4Pratchett’s texts make up 1,495,407 word tokens, whereas Gaiman’s texts consist of 870,850 word tokens.
Stylometry functions. The noveGlood Omens consists of 110,935 tokens while the screenplay
of the television adaptation consists of 86,425 tokens. The entire screenplay, rather than just
the dialogue, was considered since it includes detailed character and scene descriptions.</p>
      <p>
        Modern stylometry studies o昀琀en do not limit themselves to the use of a single technique
[
        <xref ref-type="bibr" rid="ref27">27</xref>
        ]. Rather, scholars (e.g. see 2[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [20]) have shown how the implementation of di昀erent
methodologies yields better and more reliable results. Thus, to better assess the stability of
our results, the present paper proposes a combination of three di昀erent methods: Principal
Components Analysis (PCA), Rolling Delta, and Rolling Classi1f2y].[
      </p>
      <p>Before proceeding further, it is worth noting that here and throughout we calculate stylistic
distance using ‘Burrows’s Delta’6[]. Burrow’s Delta is a metric which combinezs-transformation
(i.e., standardization) of frequency with Manhattan distance13[]. Roughly, to calculate delta
given the x Most Frequent Words (MFW5) in n texts, we 昀椀rst compute the relative frequency
of each word in each document. By doing so, we obtainxa-scores-long representation of each
document. The (standard deviation) of each term’s frequency across the whole corpus is
then calculated. The distance between two documentns1 and n2 is expressed as the absolute
di昀erence between each individual word’s relative frequency inn1 and n2 divided by the same
word’s across the corpus. Finally, the resulting deltas are collected in a distance table which
is used as the basis for the cluster analys6is.</p>
      <p>
        PCA is an unsupervised dimensionality reduction technique, i.e. a method that does not
require ground-truth labels for the data. As such, it is o昀琀en considered ideal for exploratory
purposes [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]: instead of being driven to a speci昀椀c solution by the researcher, PCA results
are data-driven 2[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The documents are 昀椀rst vectorized into a67 × 117 matrix (sixty-seven
segments by two authors and 117 MFW). Then, we normalize the resulting matrix (following
L1 norm, see [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]) and scale it. PCA operates by dimensional reduction: ‘it transforms to new
set of variables, the principal components (PCs), which are uncorrelated, and which are ordered
so that the 昀椀rst few retain most of the variation present in all of the original variable4s’, (p[.
447], originally in1[7, p. 1]). In our case, PCA is ideal compared to other techniqu7esince
(i) it o昀ers more reliable results for smaller sets of authors and (ii) allows us to visualize the
stylistic characteristics from which it was buil2t7[].
      </p>
      <p>
        Rolling Delta and Rolling Classify are both part of ‘Rolling Stylome1t2r]y.’R[olling
Stylometry is a sequential classi昀椀cation technique in that it operates by means of a rolling window
across 昀椀xed segments of text. In other words, both functions split the text into overlapping,
same-length fragments [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] and roll over it. For instance, if we take a ‘window size’ of 5000
words and a ‘step size8’ of 1000, the 昀椀rst analyzed segment will cover the range 1–-5000, the
second 1001–-6001, etc. Both functions allow a maximum of twelve texts in the reference
corpus (e.g. in our case, six texts for each of the two authors) and a separate test set (usually one
5We here talk about words, but it worth noting that Burrows Delta works not only on words but also on most
frequent items (e.g. n-grams).
6The above explanations echoes those found in Stover and Kestemon2t7[] and Karsdorp, Kestemont, and Riddell
[
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. For a more technical, in-depth explanation of Burrow’s Delta, see Burro6w].s [
7Such as Agglomerative Clustering Analysis, see Müllne2r2][.
8Note that these are the parameters for Rolling Delta and not Rolling Classify, which speci昀椀es ‘slice size’ and
‘slice overlap’. Although the name and con昀椀guration of the two parameters are di昀erent, they can be considered
equivalents to those of Rolling Delta. E.g., for a ‘slice size’ of 5000 with a ‘slice overlap’ of 4000, the 昀椀rst analyzed
segment will cover the range 1–5000, the second 1001––6001, and so on12[].
text, Good Omens in this case).
      </p>
      <p>The di昀erence between Rolling Delta and Classify lies in the way the segments are analyzed:
Rolling Delta calculates the Burrow’s Delta distances of each segment in the test sets from the
segments of texts from the reference corpus. Rolling Classify, on the other hand, uses the texts
in the reference corpus to train a classi昀椀er and then classi昀椀es the text segments from the test
set. Also, while Rolling Classify allows the user to select a custom set of most frequent features,
Rolling Delta does not: rather, it automatically selectsXanumber of most frequent features.</p>
      <p>A preliminary analysis revealed that the upper tail (i.e., 250 MFW) of the extracted features
contained many author-related lemmas, such aRsincewind (one of the main characters of the
Discworld series) andblack and white (both common collocations of the wormdagic, strongly
related to the fantasy genre). Following Binong3o],[using only function words yields
undeniable advantages: (i) because of their scarce semantic content, they are less context-dependent
compared to content words, (ii) since they are not in昀氀ected, they are o昀琀en found in only one
form, and (iii) their usage is o昀琀en una昀ected by a writer’s stylistic choices. As such, we
removed content words and culled personal pronouns, o昀琀en considered too indicative of a
speci昀椀c genre or narrative style. A昀琀er the process, the 昀椀nal MFW list, which has been used to
conduct further analyses and experiments, consisted of 117 function wor9ds.</p>
      <p>We use PCA for two reasons: 昀椀rst, as a tool to narrow down our corpus. As noted above,
both Rolling Stylometry functions work using a restricted corpus of twelve texts. As such, we
want our novel selection to be as representative and comprehensive of each author’s style as
possible. PCA allows us to identify stylistic clust1e0rasnd to make an informed decision while
also identifying distinctive features for both Pratchett and Gaiman. Second, PCA is useful in
giving an explorative representation of wherGeood Omens lies stylistically.</p>
      <p>
        However, PCA has a major drawback: when it comes to collaborative authorship, static
visualizations may be misleading. i.e., a book may be attributed in its entirety to one author
through clustering or classi昀椀cation. Thus, PCA cannot help scholars in assessing whether the
other author had an in昀氀uence on the writing process and to what extent. Rolling Stylometry
enables the model to identify authorial dominance and takeovers throughout the text rather
than attributing an entire text to a speci昀椀c author [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. As such, it is especially 昀椀tting for
collaborative authorship attributio2n1[] and was selected to give an in-depth insight intoGood
Omens’ style. Both Rolling Delta and Rolling Stylometry are implemented and can be accessed
in the environment for statistical computing R23[].
      </p>
      <p>
        To further improve the quality of our results obtained through Rolling Delta and Classify, we
also performed a preliminary analysis of the twelve-text sub-corpus using SVM. SVM is
specifically 昀椀t for text categorization due to its inductive bias and the linearly separable nature of
the task [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. Using SVM in combination with Terms Frequency-Inverse Dictionary Frequency
(TFIDF) vectorizer, we were able to test how di昀erent parameters (i.e. MFW and text
segment size) a昀ected the model’s ability to correctly distinguish between the two authors. SVM
was also compared with other models (Logistic Regression and KneighborsClassi昀椀er), which
9Here we apply a broader de昀椀nition of function words; i.e., all those words that belong to a closed cl1a0s]s. [For
instance, we do not remove auxiliary modal verbs. For an extensive discussion of the role of function words and
their uses in authorship attribution, see19[].
10Here and throughout the paper we use the term cluster to refer to the visual clusters that can be observed in the
PCA visualization.
showed that SVM, in combination with a MFW≥ 250 and segment size ≥ 1000, reached an
accuracy of 1.01.1
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>11See Table 2 and Table 3 in Appendix A.2 for a summary of the SVM set-up results.
above-described PCA. Pratchett’s novels are highlighted through warm colours, and Gaiman’s
through cold. The horizontal axis represenGtsood Omens’ segments, while the vertical axis
represents the delta distance for each segment compared to the reference novels. The closer
a line comes to thex-axis, the more similar the novel represented by that line will be to the
segment. The vertical lines represent the end of each of the six chapte1r2s.Finally, the seven
vertical lines delimit the six chapters of the book. The text was split into 5000-word-long
seg12It is worth noting thatGood Omens’ very 昀椀rst chapter (titled In the Beginning) is shorter than the segment length
selected to run Rolling Delta and Rolling Classify. As such, the 昀椀rst lian)ein( Fig. 2 and 3 appears to be outside of
the text. Although this is slightly more visible in Fig. 2, we decided not to move it to retain the original partition
of the book and to make Fig. 2 and 3 more comparable.
ments (window size), with a rolling window (step size) of 1000 words. Each segment was then
analyzed using the 250 MFW.</p>
      <p>The warm-coloured lines come signi昀椀cantly closer to the horizontal line for most sections
of Good Omens: i.e., Pratchett’s style (mostlyJingo, Pyramids, and Moving Pictures) is
predominant throughout the whole book. This is perhaps not surprising, considering that Pratchett
has declared that he and Gaiman agreed that Pratchett would take on the role of editor and
椀昀nalize the novel. Gaiman’s style appears to be predominant in only two section13s: around
the beginning of the 6th chapter (linee) and between the 65000- and 75000-word marks, with
only two smaller contributions at the very beginning of the second chapter and around the
85000-word mark. This trend only partially 昀椀ts with the authors’ claims. As noted before, we
expected Gaiman to be far more present at the beginning of the novel. Here we get a short
glimpse ofAnansi Boys’ style, which shows up again further down in the middle of Chapter 6
(e–f ). However, Pratchett’s styleJ(ingo and Pyramids) is prevalent throughout Chapter 2a–(b).
Regarding the two segments in which Gaiman’s idiom (speci昀椀cally,Trigger Warning, M is for
Magic, and American Gods) is present for longer sections of the novel, they both coincide with
two signi昀椀cant scenes involving the Four Horsemen of the Apocalypse. The very start of
Chapter 6 introduces Death, arguably the most important Horseman, and involves Pollution while
the next span (65000–75000) corresponds to the coming together of the Four Horsem1e4n.The
fact that these two segments are attributed to Gaiman aligns with statements from the authors:
13For a more intuitive visualization of the novels see Fig. 6 in Appendix A.2. The chromatic distinction is here by
author rather than by novel. Such visualization allows to better distinguish how Pratchett’s novels (as a whole)
are closer toGood Omens’ style compared to Gaiman’s.
14The scene of the Four coming together happens at exactly word n° 70209. However, the previous scene is still
related to the Four Horsemen, who are being followed by the other four characters.
‘... the Four Horsemen and anything with maggots started with Neil1’4[, p. 478].</p>
      <p>Fig. 3 is the visualization of the results of Rolling Clas1s5ifyon the novel. In distinction
to Delta, Rolling Classify does not plot stylometric information per novel. The horizxo-ntal
axis represents the word count oGfood Omens, with Pratchett’s presence delineated in green
and Gaiman’s in red. The vertical lines on the underside of the x-axis represent to whom the
segment has been attributed. The upper lines, on the other hand, denote whether the second
author’s style is present and to what extent. The height of the lines on both sides indicates
the degree of certainty with which the classi昀椀cation has been made. The vertical dotted lines
represent chapter markers. The Rolling Classify method was con昀椀gured using our list of 117
MFW to analyze text segments of 5000 words using 1000-word steps.</p>
      <p>The Rolling Classify results generally con昀椀rm Rolling Delta’s outpGuoto:d Omens is
predominantly composed in Pratchett’s style. We again observe that Gaiman’s style is most
discernible between the 65,000- and 75,000-word marks, with a small additional contribution at
80,000. Across the intersection of Chapters 2–3b() and Chapters 3–4 (c), we see short instances
of text segments attributed to Gaiman’s style, too. These do not correspond to the results of
the Delta. Where Rolling Delta found a predominant presence of Gaiman (see Fig. 2) at the
beginning of Chapter 6 (e–f ), Rolling Classify attributes the segment to Pratchett, with Gaiman’s
presence being detected in the background. This may be related to the di昀erence in MFW used.
While Rolling Classify allows using a custom MFW list, this is not possible for Rolling1D6elta.
As such, the latter analysis may have been in昀氀uenced by content words (e.g. characters’ names,
see Section 3) present in the unculled 250 MFW.</p>
      <p>Compared to Callaway8[], our results attribute signi昀椀cantly larger chunks oGfood Omens
to Pratchett. The segments attributed to Gaiman in Callaway8][ are detected as Gaiman’s
15As a reminder, we here use the same 12 novels used for Rolling DelJtian:go, 1997, Pyramids, 1989, The Colour of
Magic, 1983, Wyrd Sisters, 1988, Moving Pictures, 1990, Thud, 2005, for Pratchett andM is for Magic, 2007, Anansi
Boys, 2005, American Gods, 2001, The Graveyard Book, 2008, Neverwhere, 1996, Trigger Warning, 2015, for Gaiman.
16In our Rolling Delta experiments, we tick the option which allows the user to cull personal pronouns.
authorial signals in Fig. 3, but are not attributed to him (except some smaller segme1n7ts).
Additionally, our results show a higher degree of certainty in attributing the segments to each
author, i.e., less overlay between the two authors is present throughout the novel in Fig. 3
compared to Callaway’s8[] results.</p>
      <p>Fig. 4 and 5 test our hypotheses for the screenplay. Both 昀椀gures were obtained using a slice
size of 5000 with an overlap of 4000. However, while Fig. 5 uses our list of 117 MFW, the
screenplay was analyzed using 1000 MFW. Fig. 4 shows that our classi昀椀er correctly attributes
the screenplay to Gaiman, with a segment between Episode 5 and 6 (e1)8 attributed to Pratchett.
17For instance, Callaway8[] results show that a large portion of text before the 2000-word mark is attributed to
Gaiman while ours indicate that only a smaller section at the end of Chapter 2 is to be attributed to Gaiman. A
similar pattern can be observed at the very end of the novel.
18Vertical lines denote episodes.
The classi昀椀cation results shown in Fig. 5 are the same as Fig. 3; however, the plot of the
novel is here overlaid with sixty-昀椀ve vertical dotted lines representing identical passages in
the screenplay1.9 The screenplay was compared to the novel using the text reuse detection
tool Text-Matcher, which yielded the list of matche2s4[]. The matches comprise both dialogue
and character and scene descriptions.</p>
      <p>Interestingly, the matching passages occur relatively frequently up until the 20,000 word
mark of the novel. Then, it progressively diminishes until the 75,000 word mark. From this
point of the novel onward there are no matches between the book and the screenplay. This
pattern leads us to assume that over time Gaiman has relied less on the source material. These
results are compatible with the observations that can be made by comparing the novel to the
series: some of the most important scenes and characters from the book have been excluded
from the screen adaptation20 while others are solely present in the sho2w1.It is worth noting
that further analysis is needed to explore the style of the screenplay and that our conclusions’
reliability is limited by the scope of this study.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>The present paper aimed to explore authorial takeoversGionod Omens by Terry Prachett and
Neil Gaiman. Additionally, we also compared the novel to the screenplay of the show written
by Gaiman and based on the book.</p>
      <p>The application of stylometric techniques to the works of the two authors yields interesting
results. From the PCA, we can observe how Pratchett’s novels written a昀琀er 2007, the year of his
Alzheimer’s diagnosis, cluster di昀erently from most of his works. This pattern denotes a shi昀琀
in Pratchett’s writing style, which may be related to his neurological dise2a2seIn.terestingly,
PCA also locatesThe Colour of Magic, Prattchett’s breakthrough work, next tNoeverwhere—one
of Gaiman’s 昀椀rst novels. The clustering suggests thatThe Colour of Magic may have in昀氀uenced
Gaiman’s early idiom2.3</p>
      <p>
        Rolling Delta partially con昀椀rms our expectations of the novel. Pratchett’s idiom is
predominant in the book. Instances of Gaiman’s style, especially throughout Chapter 6, can largely be
attributed to the presence of the Four Horsemen in those sections, characters that he authored
[
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
19The chapter markers are not present in this visualisation.
20For instance, the highway chase at the beginning of Chapter 6, where four bikers decide to follow the Four
      </p>
      <p>Horsemen in their ride through the M25 highway is not present in the show
21E.g., the 昀椀nale, during which Aziraphale and Crowley switch bodies to survive the punishments of Heaven and</p>
      <p>Hell, is absent from the novel
22Our conclusion is here derived from an observation of stylometric patterns and does not account for the
complex nature of Alzheimer’s. There is little academic research regarding the e昀ect of Alzheimer’s on Pratchett’s
writing style. The only article on the issue was published on the Pratt School of Information’s website by one of
the institute’s students (see [28]). Here, the author outlines how vocabulary complexity has not diminished but
rather increased throughout Pratchett’s last novels, thus concluding (with the necessary reservations) that his
neurological condition did likely not a昀ect his writing style.
23This was the 昀椀rst of Pratchett’s works read by Gaiman (Gaiman, 2018). Critical literature on Pratchett notes that
many writers “have found a昀琀er lengthy exposure to Pratchett’s prose that it has worn grooves in their head1s,” [
p.148].</p>
      <p>
        Rolling Classify generally con昀椀rms the results of Rolling Delta, except for two additional
shorter segments being attributed to Gaiman. Compared to the results obtained by previous
studies [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], we 昀椀nd Pratchett to be far more predominant throughout the novel. Our results
reveal a higher degree of con昀椀dence in attributing segments to each author, showing fewer
overlays between Gaiman’s and Pratchett’s styles compared to Callaway8’s].[
      </p>
      <p>The screenplay analysis further shows that the classi昀椀er can correctly attribute the text
almost entirely to Gaiman despite the di昀erence in genre. Based on text matches between the
screenplay and the novel, we speculate that Gaiman may have relied less on the source material
towards the end of the screenplay. It is worth noting that the use of the screenplay as control
for the e昀케cacy of our classi昀椀er is limited as the two texts do not belong to the same genre.
Further research could explore the issue of the screenplay by retrieving other screenplays written
by Pratchett and Gaiman and that of the upcoming second season oGf ood Omens.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Code and data availability</title>
      <sec id="sec-6-1">
        <title>Code and datasets are available ahtttps://zenodo.org/record/7257715</title>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Acknowledgments</title>
      <p>A special thanks to Prof. Mike Kestemont and Dr. Wouter Haverals, who supported and
encouraged us during the making of this project. We also want to thank Eveline C. for allowing
us to use her living room as our o昀케ce.</p>
      <p>Were Terry Pratchett’s Final Works A昀ected by Alzheimer’s Disease?: An Analysis into
Vocabulary Trends within the Discworld Series, Post Diagnosis. Tech. rep. 2016. url:https://s
tudentwork.prattsi.org/dh/2016/05/08/were-terry-pratchetts-final-works-affected-by-a
lzheimers-disease-an-analysis-into-vocabulary-trends-within-the-discworld-series-po
st-diagnosis/.</p>
    </sec>
    <sec id="sec-8">
      <title>A. Additional Figures and Tables</title>
      <p>A.1. SVM set-up
A.2. Rolling delta with color coding per author</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A. H.</given-names>
            <surname>Alton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. C.</given-names>
            <surname>Spruiell</surname>
          </string-name>
          , and
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>PalumbDo.iscworld and the Disciplines: Critical Approaches to the Terry Pratchett Works (Critical Explorations in Science Fiction</article-title>
          and Fantasy,
          <volume>45</volume>
          ).
          <article-title>annotated edition</article-title>
          .
          <source>McFarland &amp; Company</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>BBC</given-names>
            <surname>News</surname>
          </string-name>
          .
          <article-title>“Good Omens: How Neil Gaiman and Terry Pratchett wrote a book”</article-title>
          . In: (
          <year>2014</year>
          ). url: https://www.bbc.com/news/magazine-30512620.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>J. N. G. Binongo.</surname>
          </string-name>
          “
          <article-title>Who Wrote the 15th Book of Oz? An Application of Multivariate Analysis to Authorship Attribution”</article-title>
          .
          <source>InC:hance 16.2</source>
          (
          <issue>2003</issue>
          ), pp.
          <fpage>9</fpage>
          -
          <lpage>17</lpage>
          . doi:
          <volume>10</volume>
          .1080/09 332480.
          <year>2003</year>
          .
          <volume>10554843</volume>
          . eprint: https://doi.org/10.1080/09332480.
          <year>2003</year>
          .
          <volume>1055484</volume>
          3. url: https://doi.org/10.1080/09332480.
          <year>2003</year>
          .
          <volume>1055484</volume>
          3.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. N. G.</given-names>
            <surname>Binongo</surname>
          </string-name>
          and
          <string-name>
            <given-names>M. W. A.</given-names>
            <surname>Smith</surname>
          </string-name>
          . “
          <article-title>The application of principal component analysis to stylometry”</article-title>
          .
          <source>In:Literary and Linguistic Computing 14.4</source>
          (
          <issue>1999</issue>
          ), pp.
          <fpage>445</fpage>
          -
          <lpage>466</lpage>
          . doi: 10.1 093/llc/14.4.445.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breebaart</surname>
          </string-name>
          .
          <source>The Annotated Pratchett File v9.0 - Words from the Master</source>
          .
          <year>2016</year>
          . url: https: //www.lspace.org/books/apf/words
          <article-title>-from-the-master.ht</article-title>
          .ml
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Burrows</surname>
          </string-name>
          . “'Delta'
          <article-title>: a Measure of Stylistic Di昀erence and a Guide to Likely Authorship”</article-title>
          .
          <source>In: Literary and Linguistic Computing 17.3</source>
          (
          <issue>2002</issue>
          ), pp.
          <fpage>267</fpage>
          -
          <lpage>287</lpage>
          . doi:
          <volume>10</volume>
          .1093/llc/17.3.267.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>F.</given-names>
            <surname>Ca昀椀ero</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Camps</surname>
          </string-name>
          . “'
          <article-title>Psyché' as a Rosetta Stone? Assessing Collaborative Authorship in the French 17th Century Theatre”</article-title>
          .
          <source>InP:roceedings of the Conference on Computational Humanities Research</source>
          , CHR2021, Amsterdam, The Netherlands,
          <source>November 17-19</source>
          ,
          <year>2021</year>
          . Ed. by
          <string-name>
            <given-names>M.</given-names>
            <surname>Ehrmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Karsdorp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wevers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. L.</given-names>
            <surname>Andrews</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Burghardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          , E. Manjavacas,
          <string-name>
            <given-names>M.</given-names>
            <surname>Piotrowski</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. van Zundert. Vol. 2989. CEUR</given-names>
            <surname>Workshop</surname>
          </string-name>
          <article-title>Proceedings</article-title>
          . CEUR-WS.org,
          <year>2021</year>
          , pp.
          <fpage>377</fpage>
          -
          <lpage>391</lpage>
          . url:http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2989</volume>
          /long%5C%
          <fpage>5Fp</fpage>
          aper51.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>E.</given-names>
            <surname>Callaway</surname>
          </string-name>
          .Good Omens Stylometry. Elizabeth Callaway. urlh:ttp://www.elizabethcal laway.net/good-omens-stylometr.y
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>J. B. Cro昀琀.</surname>
          </string-name>
          “Nice, Good, or Right:
          <article-title>Faces of the Wise Woman in Terry Pratchett's ”Witches” Novels”</article-title>
          . In:Mythlore:
          <string-name>
            <given-names>A</given-names>
            <surname>Journal of J.R.R. Tolkien</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.S.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Charles</given-names>
            <surname>Williams</surname>
          </string-name>
          , and
          <source>Mythopoeic Literature 26.3</source>
          (
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Deuchar</surname>
          </string-name>
          . “
          <article-title>Are function words non-language-speci昀椀c in early bilingual two-word utterances?”</article-title>
          <source>In: Bilingualism: Language and Cognition</source>
          <volume>2</volume>
          .1 (
          <issue>1999</issue>
          ), pp.
          <fpage>23</fpage>
          -
          <lpage>34</lpage>
          . doi:
          <volume>10</volume>
          .1017/s 1366728999000127.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>G. Dougary.</surname>
          </string-name>
          “Good Omens:
          <article-title>Neil Gaiman reveals what he and Terry Pratchett shared”</article-title>
          . In: (
          <year>2019</year>
          ). url: https://www.smh.com.au/culture/tv-and
          <article-title>-radio/good-omens-neil-gaiman-r eveals-what-he-and-terry-pratchett-shared-20190603-p51u1y</article-title>
          .ht m.l
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>M.</given-names>
            <surname>Eder</surname>
          </string-name>
          . “Rolling stylometry”.
          <source>IDn:igital Scholarship in the Humanities 31.3</source>
          (
          <issue>2016</issue>
          ), pp.
          <fpage>457</fpage>
          -
          <lpage>469</lpage>
          . doi:
          <volume>10</volume>
          .1093/llc/fqv01 0.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S.</given-names>
            <surname>Evert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Proisl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Vitt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Schöch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Jannidis</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Pielström</surname>
          </string-name>
          . “
          <article-title>Towards a better understanding of Burrows's Delta in literary authorship attribution”P.rIonc:eedings of the Fourth Workshop on Computational Linguistics for Literature</article-title>
          . Denver, Colorado, USA: Association for Computational Linguistics,
          <year>2015</year>
          , pp.
          <fpage>79</fpage>
          -
          <lpage>88</lpage>
          .
          <year>do1i</year>
          :
          <fpage>0</fpage>
          .3115/v1/
          <fpage>W15</fpage>
          -0709. url: https://aclanthology.org/W15-070.
          <fpage>9</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>N.</given-names>
            <surname>Gaiman</surname>
          </string-name>
          and
          <string-name>
            <given-names>T.</given-names>
            <surname>Pratchett</surname>
          </string-name>
          . Good Omens:
          <article-title>The Nice and Accurate Prophecies of Agnes Nutter, Witch (Cover may vary)</article-title>
          .
          <source>William Morrow</source>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>N.</given-names>
            <surname>Gaiman</surname>
          </string-name>
          [neilhimself].
          <source>The Colour of Magic. [Tweet]</source>
          .
          <year>2018</year>
          . url: https://twitter.com/n eilhimself/status/102338539969416396.9
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>T.</given-names>
            <surname>Joachims</surname>
          </string-name>
          . “
          <article-title>Text categorization with Support Vector Machines: Learning with many relevant features”</article-title>
          . In: Berlin, Heidelberg: Springer Berlin Heidelberg,
          <year>1998</year>
          , pp.
          <fpage>137</fpage>
          -
          <lpage>142</lpage>
          . doi:
          <volume>10</volume>
          .1007/bfb0026683.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>I. T. Jolli昀e.</surname>
          </string-name>
          “
          <article-title>Principal Component Analysis and Factor Analysis”</article-title>
          .
          <source>InP:rincipal Component Analysis</source>
          (
          <year>1986</year>
          ), pp.
          <fpage>115</fpage>
          -
          <lpage>128</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-1-
          <fpage>4757</fpage>
          -1904-8\_7.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>F.</given-names>
            <surname>Karsdorp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          , and A.
          <source>RiddelHl.umanities Data Analysis: Case Studies with Python</source>
          . Princeton University Press,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Moens</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Deploige</surname>
          </string-name>
          . “
          <article-title>Collaborative authorship in the twel昀琀h century: A stylometric study of Hildegard of Bingen and Guibert of Gembloux”D.Iingi:tal Scholarship in the Humanities 30</article-title>
          .2 (
          <issue>2013</issue>
          ), pp.
          <fpage>199</fpage>
          -
          <lpage>224</lpage>
          . doi:
          <volume>10</volume>
          .1093/llc/fqt06 3.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Stover</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Koppel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Karsdorp</surname>
          </string-name>
          , and
          <string-name>
            <given-names>W.</given-names>
            <surname>Daelemans</surname>
          </string-name>
          . “
          <article-title>Authenticating the writings of Julius Caesar”</article-title>
          .
          <source>InE:xpert Systems with Applications</source>
          <volume>63</volume>
          (
          <year>2016</year>
          ), pp.
          <fpage>86</fpage>
          -
          <lpage>96</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.eswa.
          <year>2016</year>
          .
          <volume>06</volume>
          .029.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>T.</given-names>
            <surname>Litvinova</surname>
          </string-name>
          and
          <string-name>
            <surname>O. Litvinova.</surname>
          </string-name>
          “
          <article-title>Analysis and Detection of a Radical Extremist Discourse Using Stylometric Tools”</article-title>
          .
          <source>InD: igital Science</source>
          <year>2019</year>
          (
          <year>2019</year>
          ), pp.
          <fpage>30</fpage>
          -
          <lpage>43</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-0
          <fpage>30</fpage>
          -
          <lpage>37737</lpage>
          -3\_3.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>D.</given-names>
            <surname>Müllner</surname>
          </string-name>
          . “
          <article-title>Modern hierarchical, agglomerative clustering algorithmas”r</article-title>
          .XIniv: (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>R Core</given-names>
            <surname>Team</surname>
          </string-name>
          , Vienna, Austria. “R:
          <article-title>A language and environment for statistical computing”</article-title>
          .
          <source>In: R Foundation for Statistical Computing</source>
          (
          <year>2020</year>
          ). url: https://www.R-project.org./
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>J.</given-names>
            <surname>Reeve</surname>
          </string-name>
          . “
          <article-title>Text-matcher”</article-title>
          .
          <source>In: Github journal</source>
          (
          <year>2020</year>
          ). doi:
          <volume>10</volume>
          .5281/zenodo.3937738.
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>J.</given-names>
            <surname>Rybicki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Hoover</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          . “
          <article-title>Collaborative authorship: Conrad, Ford and Rolling Delta”</article-title>
          .
          <source>InL:iterary and Linguistic Computing 29.3</source>
          (
          <issue>2014</issue>
          ), pp.
          <fpage>422</fpage>
          -
          <lpage>431</lpage>
          . doi:
          <volume>10</volume>
          .10 93/llc/fqu016.
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>J.</given-names>
            <surname>Shanahan</surname>
          </string-name>
          . “Terry Pratchett:
          <article-title>Mostly Human”</article-title>
          .
          <source>InT:wenty-First-Century Popular Fiction</source>
          . 1st ed. Amsterdam, Netherlands: Amsterdam University Press,
          <year>2017</year>
          , p.
          <fpage>31</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>J.</given-names>
            <surname>Stover</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          .
          <article-title>“Reassessing The Apuleian Corpus: A computational Approach To Authenticity”</article-title>
          .
          <source>In:The Classical Quarterly 66.2</source>
          (
          <issue>2016</issue>
          ), pp.
          <fpage>645</fpage>
          -
          <lpage>672</lpage>
          . doi:
          <volume>10</volume>
          .10 17/s0009838816000768.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>