DramaAnalysis (version 3.0.1)

presence: Active and Passive Presence

Description

This function should be called for a single text. It returns a data.frame with one row for each character in the play. The data.frame contains information about the number of scenes in which a character is actively speaking or passively mentions. Please note that the information about passive presence is derived from coreference resolved texts, which is a difficult task and not entirely reliable. The plays included in the package feature manually annotated coreferences (and thus, the presence is calculated on the basis of very well data).

Usage

presence(drama, passiveOnlyWhenNotActive = TRUE)

Arguments

drama

A single drama

passiveOnlyWhenNotActive

Logical. If true (default), passive presence is only counted if a character is not actively present in the scene.

Value

QDHasCharacter, data.frame. Columns actives, passives and scenes show the absolute number of scenes in which a character is actively/passively present, or the total number of scenes in the play. The column presence is calculated as \(\frac{actives-passives}{scenes}\).

Examples

Run this code
# NOT RUN {
data(rksp.0)
presence(rksp.0)
# }

Run the code above in your browser using DataCamp Workspace