Package: stylest2 0.1

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.

Authors:Christian Baehr [aut, cre, cph], Arthur Spirling [aut, cph], Leslie Huang [aut]

stylest2_0.1.tar.gz
stylest2_0.1.zip(r-4.5)stylest2_0.1.zip(r-4.4)stylest2_0.1.zip(r-4.3)
stylest2_0.1.tgz(r-4.5-any)stylest2_0.1.tgz(r-4.4-any)stylest2_0.1.tgz(r-4.3-any)
stylest2_0.1.tar.gz(r-4.5-noble)stylest2_0.1.tar.gz(r-4.4-noble)
stylest2_0.1.tgz(r-4.4-emscripten)stylest2_0.1.tgz(r-4.3-emscripten)
stylest2.pdf |stylest2.html
stylest2/json (API)

# Install 'stylest2' in R:
install.packages('stylest2', repos = c('https://cbaehr.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • novels - Excerpts from English novels
  • novels_dfm - Novel excerpts in quanteda dfm object

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.70 score 1 stars 8 scripts 100 downloads 4 exports 17 dependencies

Last updated 1 years agofrom:63f4939842. Checks:4 OK, 5 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 20 2025
R-4.5-winOKMar 20 2025
R-4.5-macOKMar 20 2025
R-4.5-linuxOKMar 20 2025
R-4.4-winNOTEMar 20 2025
R-4.4-macNOTEMar 20 2025
R-4.4-linuxNOTEMar 20 2025
R-4.3-winNOTEMar 20 2025
R-4.3-macNOTEMar 20 2025

Exports:stylest2_fitstylest2_predictstylest2_select_vocabstylest2_terms

Dependencies:clifastmatchglueISOcodesjsonlitelatticelifecyclemagrittrMatrixquantedaRcpprlangSnowballCstopwordsstringixml2yaml

stylest2 vignette

Rendered fromstylest2-vignette.Rmdusingknitr::rmarkdownon Mar 20 2025.

Last update: 2024-03-24
Started: 2024-03-24