gen_count {genCountR}R Documentation

gen_count

Description

Counts the number of masculine and feminine words in the document

Usage

gen_count(text)

Arguments

text

(string): A string object.

Details

Takes the number of words that are loosely categorized as Masculine, Feminine, or Neutral based on Roberts and Utych's (2019) definition. Feminine words had a score below 2.5, Neutral words had a score higher than 2.5 and lower than 5.5, Masculine words had a score higher than 5.5.

Value

data.frame with each word from the dictionary matched with the text and its number of occurances.

Examples

text <- 'This person was a heroine due to their fighting during the war.'
result_df <- genCountR::gen_count(text)


[Package genCountR version 1.0.0 Index]