stylest2: Estimating Speakers of Texts

Estimates the authors or speakers of texts. Methods developed in Huang, Perry, and Spirling (2020) <doi:10.1017/pan.2019.49>. The model is built on a Bayesian framework in which the distinctiveness of each speaker is defined by how different, on average, the speaker's terms are to everyone else in the corpus of texts. An optional cross-validation method is implemented to select the subset of terms that generate the most accurate speaker predictions. Once a set of terms is selected, the model can be estimated. Speaker distinctiveness and term influence can be recovered from parameters in the model using package functions. Once fitted, the model can be used to predict authorship of new texts.

Version: 0.1
Depends: R (≥ 4.2)
Imports: Matrix, quanteda
Suggests: devtools, knitr, rmarkdown, testthat
Published: 2024-03-23
DOI: 10.32614/CRAN.package.stylest2
Author: Christian Baehr [aut, cre, cph], Arthur Spirling [aut, cph], Leslie Huang [aut]
Maintainer: Christian Baehr <cbaehr at princeton.edu>
License: GPL-3
NeedsCompilation: no
Materials: README
CRAN checks: stylest2 results

Documentation:

Reference manual: stylest2.pdf
Vignettes: stylest2 vignette

Downloads:

Package source: stylest2_0.1.tar.gz
Windows binaries: r-devel: stylest2_0.1.zip, r-release: stylest2_0.1.zip, r-oldrel: stylest2_0.1.zip
macOS binaries: r-release (arm64): stylest2_0.1.tgz, r-oldrel (arm64): stylest2_0.1.tgz, r-release (x86_64): stylest2_0.1.tgz, r-oldrel (x86_64): stylest2_0.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=stylest2 to link to this page.