Learn R Programming

textometry (version 0.1.2)

specificities: Compute Lexical Specificness

Description

Compute specifities association score, i.e. an indicator of the association between tokens and sub-corpus, given a lexical table

Usage

specificities(lexicaltable, types=NULL, parts=NULL)

Arguments

lexicaltable
a complete lexical table, i.e. a numeric matrix where each line is a token and each column a part of a corpus. Each cell give the frequency of the given token in the corresponding part of the corpus.
types
Indicate for which rows the specificity index must be computed. If NULL, the specificity index is computed for every form. If types is a character vector, it indicates the name of the row of lexicaltable to be
parts
Indicate for which columns the specificity index must be computed. If NULL, the specificity index is computed for every part. If parts is a character vector, it indicates the name of the columns of lexicaltable

Value

  • The fonction return a matrix of nrow(clt) * ncol(clt) (the number of rows and columns may be reduced using types or parts), each cell giving the frequency index.

References

Lafon P. (1980) Sur la variabilit ' e de la fr ' e quence des formes dans un corpus, Mots, 1, pp. 127--165.

See Also

specificities.probabilities, specificities.lexicon

Examples

Run this code
data(robespierre);
specificities(robespierre);

Run the code above in your browser using DataLab