Work

Stylometry with R: A Package for Computational Text Analysis

Year: 2016
Type: article
Abstract: This software paper describes 'Stylometry with R' (stylo), a flexible R package for the highlevel analysis of writing style in stylometry.Stylometry (computational stylistics) is concerned with the quantitative study of writing style, e.g.authorship verification, an application which has considerable potential in forensic contexts, as well as historical research.In this paper we introduce the possibilities of stylo for computational text analysis, via a number of dummy case studies from English and French literature.We demonstrate how the package is particularly useful in the exploratory statistical analysis of texts, e.g. with respect to authorial writing style.Because stylo provides an attractive graphical user interface for high-level exploratory analyses, it is especially suited for an audience of novices, without programming skills (e.g. from the Digital Humanities).More experienced users can benefit from our implementation of a series of standard pipelines for text processing, as well as a number of similarity metrics.Authorship attribution plays a prominent role in the nascent field of stylometry, or the computational analysis of writing style (Juola, 2006;Stamatatos et al., 2000;Stamatatos, 2009;Koppel et al., 2009;Van Halteren et al., 2005).While this field has important historical precursors (Holmes, 1994(Holmes, , 1998)), recent decades have witnessed a clear increase in the scientific attention for this problem.Because of its emergent nature, replicability and benchmarking still pose significant challenges in the field (Stamatatos, 2009).Publicly available benchmark data sets are hard to come across, mainly because of copyright and privacy issues, and there are only a few stable, cross-platform software packages out there which are widely used in the community.Fortunately, a number of recent initiatives lead the way in this respect, such as the recent authorship tracks in the PAN competition (http://pan.webis.de),where e.g.relevant data sets are efficiently interchanged.In this paper we introduce 'Stylometry with R' (stylo), a flexible R package for the high-level stylistic analysis of text collections.This package explicitly seeks to further contribute to the recent development in the field towards a more advanced level of replicability and benchmarking in the field.Stylometry is a multidisciplinary research endeavor, attracting contributions from divergent scientific domains, which include researchers from Computer Science -with a fairly technical background -as well as experts from the Humanities -who might lack the computational skills which would allow them easy access to the state-of-the-art methods in the field (Schreibman et al., 2004).Importantly, this package has the potential to help bridge the methodological gap luring between these two communities of practice: on the one hand, stylo's API allows to set up a complete processing pipeline using traditional R scripting; on the other hand, stylo also offers a rich graphical user interface which allows non-technical, even novice practitioners to interface with state-of-the-art methods without the need for any programming experience. Overview of stylometryStylometry deals with the relationship between the writing style in texts and meta-data about those texts (such as date, genre, gender, authorship).Researchers in 'stylochronometry', for instance, are interested in inferring the date of composition of texts on the basis of stylistic aspects (Stamou, 2008;
Language: English
Open Access status: hybrid
OpenAlex ID: W2787026234
FWCI: 16.49
Cites: 37
Cited by: 435
Related to: 10