readability v0.1.1

0

Monthly downloads

0th

Percentile

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.

Readme

readability Follow

Project Status: Active - The project has reached a stable, usable
state and is being actively
developed. Build
Status Coverage
Status 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))))

##        person   time Flesch_Kincaid Gunning_Fog_Index Coleman_Liau SMOG
##  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)

Functions in readability

Name Description
plot.readability Plots a readability Object
print.readability Prints a readability Object
readability Calculate Readability Scores
No Results!

Last month downloads

Details

Date 2017-01-20
License GPL-2
LazyData TRUE
RoxygenNote 5.0.1
BugReports https://github.com/trinker/readability/issues?state=open
URL https://github.com/trinker/readability
NeedsCompilation no
Packaged 2017-01-21 23:39:45 UTC; Tyler
Repository CRAN
Date/Publication 2017-01-22 12:38:43

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/readability)](http://www.rdocumentation.org/packages/readability)