Calculate Readability Scores

Calculate readability scores by grouping variables. Readability is an approximation of the ease with which a reader parses and comprehends a written text. These scores use text attributes such as syllable counts, number of words, and number of characters to calculate an approximate grade level reading ease for the text. The readability scores that are calculated include: Flesch Kincaid, Gunning Fog Index, Coleman Liau, SMOG, and Automated Readability Index.


readability Follow

Project Status: Active - The project has reached a stable, usablestate and is being activelydeveloped. BuildStatus CoverageStatus DOI Version

readability Logo

readability utilizes the syllable package for fast calculation of readability scores by grouping variables.

Table of Contents

Installation

To download the development version of readability:

Download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or use the pacman package to install the development version:

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(c(
    'trinker/lexicon',
    'trinker/textclean',
    'trinker/textshape',
    "trinker/syllable", 
    "trinker/readability"
))

Contact

You are welcome to:

Examples

if (!require("pacman")) install.packages("pacman")
pacman::p_load(syllable, readability)

(x <- with(presidential_debates_2012, readability(dialogue, list(person, time))))
##  1:  QUESTION time 2            8.6              12.5         10.1 12.0
##  2:     OBAMA time 1            9.1              12.2          8.9 11.4
##  3:     OBAMA time 3            8.5              12.0          8.8 11.5
##  4:    ROMNEY time 1            6.8              10.2          8.1 10.3
##  5:     OBAMA time 2            6.8              10.2          7.8 10.3
##  6:    ROMNEY time 3            6.7              10.1          7.5 10.2
##  7:    ROMNEY time 2            6.1               9.3          7.4  9.7
##  8: SCHIEFFER time 3            5.1               8.7          6.8  9.3
##  9:    LEHRER time 1            4.3               8.3          5.9  9.0
## 10:   CROWLEY time 2            4.3               7.6          5.6  8.5
##     Automated_Readability_Index Average_Grade_Level
##  1:                         8.0                10.2
##  2:                         9.0                10.1
##  3:                         8.0                 9.7
##  4:                         6.0                 8.3
##  5:                         6.0                 8.2
##  6:                         6.0                 8.1
##  7:                         5.0                 7.5
##  8:                         4.0                 6.8
##  9:                         3.0                 6.1
## 10:                         3.0                 5.8

plot(x)

News

NEWS

Versioning

Releases will be numbered with the following semantic versioning format:

..

And constructed with the following guidelines:

  • Breaking backward compatibility bumps the major (and resets the minor and patch)
  • New additions without breaking backward compatibility bumps the minor (and resets the patch)
  • Bug fixes and misc changes bumps the patch

readability 0.1.1

This package is a collection of readability tools that utilize the syllable package for fast calculation of readability scores by grouping variables.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("readability")

0.1.1 by Tyler Rinker, a year ago


https://github.com/trinker/readability


Report a bug at https://github.com/trinker/readability/issues?state=open


Browse source code at https://github.com/cran/readability


Authors: Tyler Rinker [aut, cre]


Documentation:   PDF Manual  


GPL-2 license


Imports data.table, ggplot2, stats, syllable, tidyr

Suggests testthat


See at CRAN