Skip to contents

Sentence length, readability, long words, undefined acronyms and a rough measure of passive voice. Clarity also depends on things no formula sees, such as structure and examples; see sc_assess().

Usage

sc_clarity(version, targets = sc_targets(version$lang))

Arguments

version

An sc_version.

targets

Targets by audience, as returned by sc_targets().

Value

An sc_indicators data frame.

Examples

ex <- sc_example()
sc_clarity(ex$versions$public)
#> <public (public)>
#>    clarity       words                        40
#>    clarity       mean_sentence_length         13.33 (target <= 20)
#>    clarity       long_sentences_pct           0: sentences over 30 words
#>    clarity       reading_ease                 85.4: Flesch reading ease: easy
#>    clarity       grade_level                  4.7: Flesch-Kincaid
#>    clarity       long_words_pct               0: words of 4 or more syllables
#>    clarity       undefined_acronyms           0 (target <= 0)
#>    clarity       passive_sentences_pct        0: approximate
#> 
#> ! = flagged. Automatic indicators are proxies; see ?sc_assess.