pr_detect_pro: Detect French pronoums

Description Usage Arguments Details Value Examples

View source: R/pr_detect_pronouns.R

Description

Detect the pronouns from a text (in French)

Usage

1
pr_detect_pro(df, col, verbose = FALSE)

Arguments

df

a dataframe

col

the column containing the text

verbose

wether or not to return the list of pronouns. Defaults is FALSE

Details

The shortcuts in the pronoun col stand for:

pps: first person singular (premi<c3><a8>re personne du singulier)

dps: second person singular (deuxi<c3><a8>me personne du singulier)

tps: third person singular (troisi<c3><a8>me personne du singulier)

ppp: first person plural (premi<c3><a8>re personne du pluriel)

dpp: second person singular (deuxi<c3><a8>me personne du pluriel)

tpp: third person singular (troisi<c3><a8>me personne du pluriel)

Value

a tibble with the detected pronouns

Examples

1
2
3
4
library(proustr)
a <- proust_books()[1,] 
pr_detect_pro(a, text, verbose = TRUE)
pr_detect_pro(a, text)

proustr documentation built on May 2, 2019, 5:08 a.m.