check_readability: Check the readability of scenario text

View source: R/utils.R

check_readabilityR Documentation

Check the readability of scenario text

Description

Calculate the Flesch-Kincaid score for each scenario and return that score along with the scenario ID and domain as a tidy dataframe.

Usage

check_readability(x)

Arguments

x

A tidyrisk_question_set object

Value

A dataframe of the scenario id, domain id, and the Flesch-Kincaid readability score for the scenario text.

Examples

## Not run: 
questions <- read_questions()
check_readability(questions)

## End(Not run)

davidski/collector documentation built on Sept. 30, 2023, 3:18 p.m.