readinglevel

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

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

Go to latest
Published: May 24, 2014 License: MIT Imports: 5 Imported by: 0

README

readinglevel
===============

ReadingLevel is a Go package for determining the reading level of a passage of text. It currently provides the Flesch–Kincaid Grade Level, the Flesch-Kincaid Reading Ease, the Coleman–Liau index, the Gunning fog index, the SMOG (Simple Measure of Gobbledygook), and the Automated Readabilty Index.




### License

ReadingLevel is free software licensed under the MIT/X11 license. Details provided in the LICENSE file.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ARI

func ARI(corpus string) float64

ARI returns the readability score according to the Automated Readability Index

func ColemanLiau

func ColemanLiau(corpus string) float64

func FleschKincaidEase

func FleschKincaidEase(corpus string) (float64, error)

FleschKincaidEase returns the reading ease score of the given body of text according to the Flesch-Kincaid reading ease test It overestimates the reading ease score slightly, as unknown words are treated as having 0 syllables

func FleschKincaidGrade

func FleschKincaidGrade(corpus string) (float64, error)

FleschKincaidGrade returns the grade level of the given body of text according to the Flesch-Kincaid grade level test It underestimates the grade level slightly, as unknown words are treated as having 0 syllables

func GunningFog

func GunningFog(corpus string) (float64, error)

GunningFog returns the readability index according to the Gunning fog index

func NumCharacters

func NumCharacters(corpus string) int

func NumComplexWords

func NumComplexWords(text string) (int, error)

func NumSentences

func NumSentences(corpus string) int

func NumSyllables

func NumSyllables(text string) (int, error)

func NumWords

func NumWords(corpus string) int

func SMOG

func SMOG(corpus string) (float64, error)

SMOG returns the readability score according to SMOG (Simple Measure of Gobbledygook

Types

This section is empty.

Jump to

Keyboard shortcuts

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