readability

package module
v0.0.0-...-489446b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2015 License: MIT Imports: 4 Imported by: 1

README

Readability tests

Build Status GoDoc MIT License

Flesch Reading Ease test

Higher scores indicate material that is easier to read; lower numbers mark passages that are more difficult to read.

Score Grade
90-100 Very Easy
80-89 Easy
70-79 Fairly Easy
60-69 Standard
50-59 Fairly Difficult
30-49 Difficult
0-29 Very Confusing

Flesch–Kincaid Grade Level

These readability tests are used extensively in the field of education. The "Flesch–Kincaid Grade Level Formula" instead presents a score as a U.S. grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various books and texts.

Score Notes
90.0–100.0 easily understood by an average 11-year-old student
60.0–70.0 easily understood by 13- to 15-year-old students
0.0–30.0 best understood by university graduates

Automated Readability Index

The Automated Readability Index (ARI) is a readability test designed to assess the understandability of a text. Index is derived from ratios representing word difficulty (number of letters per word) and sentence difficulty (number of words per sentence).

Years Grade
5-6 yrs. old Kindergarten
6-7 yrs. old First Grade
7-8 yrs. old Second Grade
8-9 yrs. old Third Grade
9-10 yrs. old Fourth Grade
10-11 yrs. old Fifth Grade
11-12 yrs. old Sixth Grade
12-13 yrs. old Seventh Grade
13-14 yrs. old Eighth Grade
14-15 yrs. old Ninth Grade
15-16 yrs. old Tenth Grade
16-17 yrs. old Eleventh grade
17-18 yrs. old Twelfth grade
18-22 yrs. old College
Automated Readability Index: 10.6
Grade level needed to comprehend your text: 15-17 yrs. old (Tenth to Eleventh graders)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alpha

func Alpha(text []byte) []byte

Alpha - [a-z]

func AutomatedReadabilityIndex

func AutomatedReadabilityIndex(text []byte) float64

AutomatedReadabilityIndex - the automated readability index (ARI) is a readability test designed to gauge the understandability of a text.

func CharacterCount

func CharacterCount(text []byte) int

CharacterCount - counts character in text

func FleschGradeLevel

func FleschGradeLevel(text []byte) float64

FleschGradeLevel - readability tests are used extensively in the field of education

func FleschReadingEase

func FleschReadingEase(text []byte) float64

FleschReadingEase - test, higher scores indicate material that is easier to read; lower numbers mark passages that are more difficult to read. 90.0–100.0 easily understood by an average 11-year-old student 60.0–70.0 easily understood by 13- to 15-year-old students 0.0–30.0 best understood by university graduates

func SentenceCount

func SentenceCount(text []byte) (count int)

SentenceCount - counts number of sentences by dot

func SplitTextWords

func SplitTextWords(text []byte) [][]byte

SplitTextWords - returns slice of words in bytes slice

func WordsCount

func WordsCount(words [][]byte) int

WordsCount - count number of words by 'space'

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL