Learn R Programming

stylo (version 0.7.71)

Stylometric Multivariate Analyses

Description

Supervised and unsupervised multivariate methods, supplemented by GUI and some visualizations, to perform various analyses in the field of computational stylistics, authorship attribution, etc. For further reference, see Eder et al. (2016), . You are also encouraged to visit the Computational Stylistics Group's website , where a reasonable amount of information about the package and related projects are provided.

Copy Link

Version

Install

install.packages('stylo')

Monthly Downloads

1,331

Version

0.7.71

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Maciej Eder

Last Published

June 16th, 2026

Functions in stylo (0.7.71)

gui.classify

GUI for the function classify
load.corpus.and.parse

Load text files and perform pre-processing
oppose

Contrastive analysis of texts
parse.corpus

Perform pre-processing (tokenization, n-gram extracting, etc.)
make.table.of.frequencies

Prepare a table of (relative) word frequencies
novels

A selection of 19th-century English novels
make.frequency.list

Make List of the Most Frequent Elements (e.g. Words)
make.ngrams

Make text n-grams
make.samples

Split text to samples
load.corpus

Load text files
lee

Table of word frequencies (Lee, Capote, Faulkner, Styron, etc.)
parse.pos.tags

Extract POS-tags or Words from Annotated Corpora
perform.culling

Exclude variables (e.g. words, n-grams) from a frequency table that are too characteristic for some samples
performance.measures

Accuracy, Precision, Recall, and the F Measure
plot.sample.size

Plot Classification Accuracy for Short Text Samples
perform.naivebayes

Naive Bayes classifier
perform.knn

k-Nearest Neighbor classifier
txt.to.features

Split string of words or other countable features
perform.nsc

Nearest Shrunken Centroids classifier
txt.to.words

Split text into words
perform.svm

Support Vector Machines classifier
stylo.pronouns

List of pronouns
txt.to.words.ext

Split text into words: extended version
zeta.eder

Compare two subcorpora using Eder's Zeta
rolling.delta

Sequential stylometric analysis
zeta.chisquare

Compare two subcorpora using a home-brew variant of Craig's Zeta
zeta.craig

Compare two subcorpora using Craig's Zeta
perform.impostors

An Authorship Verification Classifier Known as the Impostors Method. ATTENTION: this function is obsolete; refer to a new implementation, aka the imposters() function!
perform.delta

Distance-based classifier
rolling.classify

Sequential machine-learning classification
stylo.network

Bootstrap consensus networks, with D3 visualization
stylo.default.settings

Setting variables for the package stylo
samplesize.penalize

Determining Minimal Sample Size for Text Classification
stylo

Stylometric multidimensional analyses
change.encoding

Change character encoding
assign.plot.colors

Assign colors to samples
dist.cosine

Cosine Distance
check.encoding

Check character encoding in corpus folder
dist.delta

Delta Distance
classify

Machine-learning supervised classification
crossv

Function to Perform Cross-Validation
define.plot.area

Define area for scatterplots
delete.stop.words

Exclude stop words (e.g. pronouns, particles, etc.) from a dataset
delete.markup

Delete HTML or XML tags
gui.oppose

GUI for the function oppose
gui.stylo

GUI for stylo
dist.entropy

Entropy Distance
dist.minmax

Min-Max Distance (aka Ruzicka Distance)
galbraith

Table of word frequencies (Galbraith, Rowling, Coben, Tolkien, Lewis)
dist.wurzburg

Cosine Delta Distance (aka Wurzburg Distance)
dist.simple

Cosine Distance
imposters.optimize

Tuning Parameters for the Imposters Method
imposters

Authorship Verification Classifier Known as the Imposters Method