| get_text_chr_spoken {rdracor} | R Documentation |
Retrieve lines and stage directions for a play
Description
get_text_chr_spoken() request lines and stage directions for a play,
given play and corpus names.
Usage
get_text_chr_spoken(
play = NULL,
corpus = NULL,
gender = NULL,
split_text = TRUE,
...
)
get_text_chr_spoken_bych(
play = NULL,
corpus = NULL,
split_text = TRUE,
as_data_frame = FALSE,
...
)
get_text_chr_stage(play = NULL, corpus = NULL, split_text = TRUE, ...)
get_text_chr_stage_with_sp(play = NULL, corpus = NULL, split_text = TRUE, ...)
Arguments
play |
Character, name of a play (you can find all play names in
|
corpus |
Character, name of the corpus (you can find all corpus names in
|
gender |
Character, optional parameter to extract lines for characters
of specified gender: |
split_text |
If |
... |
Additional arguments passed to |
as_data_frame |
If |
Value
For get_text_chr_spoken(), get_text_chr_stage() and
get_text_chr_stage_with_sp(): a character vector (if
split_text = TRUE, the default value) or a single character value (if
split_text = FALSE).
For get_text_chr_spoken_bych():
split_text = TRUEandas_data_frame = FALSE(default)-
a named list with character vectors for every character
split_text = FALSEandas_data_frame = FALSEa named character vector (one value = one character)
split_text = TRUEandas_data_frame = TRUEa data frame: every row represent a character, text of a play is stored in a
"text"column, the"text"column is a list column with a character vector of linessplit_text = FALSEandas_data_frame = TRUEa data frame: every row represent a character, text of a play is stored in a
"text"column, the"text"column is a simple character column
Functions
-
get_text_chr_spoken_bych(): Retrieves lines grouped by characters in a play, given play and corpus names. -
get_text_chr_stage(): Retrieves all stage directions of a play, given play and corpus names. -
get_text_chr_stage_with_sp(): Retrieves all stage directions of a play including speakers (if applicable), given play and corpus names.
See Also
Examples
get_text_chr_spoken(play = "lessing-emilia-galotti", corpus = "ger")
get_text_chr_spoken(
play = "lessing-emilia-galotti",
corpus = "ger",
gender = "FEMALE"
)
get_text_chr_spoken(
play = "lessing-emilia-galotti",
corpus = "ger",
gender = "FEMALE",
split_text = FALSE
)
get_text_chr_spoken_bych(
play = "lessing-emilia-galotti",
corpus = "ger"
)
get_text_chr_stage(
play = "lessing-emilia-galotti",
corpus = "ger"
)
get_text_chr_stage_with_sp(
play = "lessing-emilia-galotti",
corpus = "ger"
)