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.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'))

Peer review:

Datasets:
  • novels - Excerpts from English novels
  • novels_dfm - Novel excerpts in quanteda dfm object

On CRAN:

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 7 scripts 100 downloads 4 exports 17 dependencies

Last updated 8 months agofrom:63f4939842. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winNOTENov 20 2024
R-4.4-macNOTENov 20 2024
R-4.3-winNOTENov 20 2024
R-4.3-macNOTENov 20 2024

Exports:stylest2_fitstylest2_predictstylest2_select_vocabstylest2_terms

Dependencies:clifastmatchglueISOcodesjsonlitelatticelifecyclemagrittrMatrixquantedaRcpprlangSnowballCstopwordsstringixml2yaml

stylest2 vignette

Rendered fromstylest2-vignette.Rmdusingknitr::rmarkdownon Nov 20 2024.

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