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.

4 exports 1 stars 0.23 score 18 dependencies 7 scripts 109 downloads

Last updated 6 months agofrom:63f4939842. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 22 2024
R-4.5-winNOTEAug 22 2024
R-4.5-linuxNOTEAug 22 2024
R-4.4-winNOTEAug 22 2024
R-4.4-macNOTEAug 22 2024
R-4.3-winNOTEAug 22 2024
R-4.3-macNOTEAug 22 2024

Exports:stylest2_fitstylest2_predictstylest2_select_vocabstylest2_terms

Dependencies:clifastmatchglueISOcodesjsonlitelatticelifecyclemagrittrMatrixquantedaRcppRcppArmadillorlangSnowballCstopwordsstringixml2yaml

stylest2 vignette

Rendered fromstylest2-vignette.Rmdusingknitr::rmarkdownon Aug 22 2024.

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