This function is used by txt_to_df() to transform first-person pronouns in texts with complex narrative voices.
1 | complex_to_third(input.text, narrator.breaks)
|
input.text |
A character vector of a text, with punctuation left in. Each element may be a line, sentence, paragraph, etc... |
narrator.breaks |
A data frame with three columns: start.chap, end.chap, egoname. It translates 1st-person pronouns in each section (start.chap to end.chap) to the associated egoname. Each egoname must be specified in the associated Char.csv file. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.