Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T11:20:22.510Z Has data issue: false hasContentIssue false

Syntactic methods for topic-independent authorship attribution

Published online by Cambridge University Press:  09 August 2017

JOHANNA BJÖRKLUND
Affiliation:
Deptartment of Computer Science, Umeå University, 901 87 Umeå, Sweden e-mails: johanna@cs.umu.se, zechner@cs.umu.se
NIKLAS ZECHNER
Affiliation:
Deptartment of Computer Science, Umeå University, 901 87 Umeå, Sweden e-mails: johanna@cs.umu.se, zechner@cs.umu.se
Rights & Permissions [Opens in a new window]

Abstract

The efficacy of syntactic features for topic-independent authorship attribution is evaluated, taking a feature set of frequencies of words and punctuation marks as baseline. The features are ‘deep’ in the sense that they are derived by parsing the subject texts, in contrast to ‘shallow’ syntactic features for which a part-of-speech analysis is enough. The experiments are made on two corpora of online texts and one corpus of novels written around the year 1900. The classification tasks include classical closed-world authorship attribution, identification of separate texts among the works of one author, and cross-topic authorship attribution. In the first tasks, the feature sets were fairly evenly matched, but for the last task, the syntax-based feature set outperformed the baseline feature set. These results suggest that, compared to lexical features, syntactic features are more robust to changes in topic.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2017 
Figure 0

Fig. 1. The dependency analysis assigned by the Stanford parser to the sentence ‘The quick brown fox jumped over the lazy dog’.

Figure 1

Fig. 2. Sample extracts from each of the corpora Boards, Blogs, and Novels

Figure 2

Table 1. Data characteristics for the Boards, Blogs, and Novels corpora

Figure 3

Table 2. The ten most common words and punctuation marks for each corpus

Figure 4

Fig. 3. The accuracy of word-based and syntax-based classifiers, applied to the Boards corpus, as a function of amount of data. The difference is statistically significant, as detailed in Section 2.3.

Figure 5

Fig. 4. The accuracy of word-based and syntax-based classifiers, applied to the Blogs corpus, as a function of amount of data. The difference is statistically significant, under the same conditions as the previous experiment.

Figure 6

Fig. 5. The accuracy of word-based and syntax-based classifiers as a function of amount of data, with a subset of the corpus containing exactly one book per author. The difference is statistically significant.

Figure 7

Fig. 6. The accuracy of word-based and syntax-based classifiers as a function of amount of data, when the corpus only contains books by a single author. The difference is not statistically significant.

Figure 8

Fig. 7. The accuracy of word-based and syntax-based classifiers, when the training set and the test set both contain books from the same twenty authors, but none of the same books are present in both sets. The difference is statistically significant.

Figure 9

Fig. 8. The distributions of similarities for the different methods and pair types. From top to bottom: pairs from the same book, from different books by the same author, and from books by different authors.