Learn R Programming

stylest2 version 0.1.0

stylest2 estimates speaker style distinctiveness.

To see how performance of stylest2 compares with its predecessor stylest, see the following package vignette:

Installation

The dev version of stylest2 on GitHub may have additional features (and bugs) and is not guaranteed to be stable. Power users may install it with:

install.packages("devtools")
devtools::install_github("ArthurSpirling/stylest2", build_vignettes=FALSE)
#set build_vignettes to TRUE if vignettes desired

Authors

Christian Baehr (maintainer)

Arthur Spirling

Leslie Huang

Bug reports

Please submit any bugs, error reports, etc. on GitHub.

Copy Link

Version

Install

install.packages('stylest2')

Monthly Downloads

117

Version

0.1

License

GPL-3

Maintainer

Christian Baehr

Last Published

March 23rd, 2024

Functions in stylest2 (0.1)

novels

Excerpts from English novels
stylest2_predict

Predict authorship of texts.
stylest2_fit

Fit speaker model to document-feature matrix
stylest2_select_vocab

Cross-validation based term selection
stylest2_terms

Select terms above frequency cutoff
posterior

Internal stylest2 function to predict posterior likelihoods of authorship.
fit_term_usage

Internal stylest2 function to compute term usage
novels_dfm

Novel excerpts in quanteda dfm object
term_influence

Internal stylest2 function to return the influence of each term in predicting authorship.
speaker_odds

Internal stylest2 function to predict log odds of speakership across texts.
stylest

stylest2: A package for estimating authorship of texts.