Learn R Programming

stylo (version 0.5.2)

stylo: Stylometric multidimensional analyses

Description

It is quite a long story what this function does. Basically, it is an all-in-one tool for a variety of experiments in computational stylistics. For a more detailed description, refer to HOWTO available at: https://sites.google.com/site/computationalstylistics/

Usage

stylo(gui = TRUE, path = "", corpus.dir = "corpus", ...)

Arguments

gui
an optional argument; if switched on, a simple yet effective graphical interface (GUI) will appear. Default value is TRUE.
path
if not specified, the current directory will be used for input/output procedures (reading files, outputting the results).
corpus.dir
the subdirectory (within the current working directory) that contains the corpus files. If not specified, the default subdirectory corpus will be used.
...
any variable produced by stylo.default.settings can be set here, in order to overwrite the default values.

Value

  • The function returns a list of variables, including a table of word frequencies, vector of features used, a distance table and some more stuff. Additionally, depending on which options have been chosen, the function produces a number of files containing results, plots, tables of distances, etc.

Details

There are a lot of additional options that should be passed to this function; they are all loaded when stylo.default.settings is executed (which is typically called automatically from inside the stylo function).

References

Eder, M. Kestemont, M. and Rybicki, J. (2013). Stylometry with R: a suite of tools. In: "Digital Humanities 2013: Conference Abstracts". University of Nebraska-Lincoln, Lincoln, NE, pp. 487-89.

See Also

classify, oppose, rolling.delta

Examples

Run this code
# standard usage:
stylo()

# batch mode, custom name of corpus directory:
my.test = stylo(gui = FALSE, corpus.dir = "ShakespeareCanon")
summary(my.test)

# batch mode, character 3-grams requested:
stylo(gui = FALSE, analyzed.features = "c", ngram.size = 3)

Run the code above in your browser using DataLab