Documentation
¶
Index ¶
- func Ari(text string) float64
- func Cli(text string) float64
- func CntChars(text string) (int, int, int)
- func CntCopWords(text string) int
- func CntPolysyls(text string) int
- func CntSents(text string) int
- func CntSyls(text string) int
- func CntWords(text string) int
- func Fk(text string) float64
- func Fre(text string) float64
- func Gfi(text string) float64
- func Smog(text string) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ari ¶
Ari scores the Automated Readability Index test. See https://en.wikipedia.org/wiki/Automated_Readability_Index.
func Cli ¶
Cli scores the Coleman-Liau Index. See https://en.wikipedia.org/wiki/Coleman%E2%80%93Liau_index.
func CntCopWords ¶
CntCopWords counts the number of complex words in a text. This is an attempt to define the notion of complex like Gunning Fog but with simple computation. See https://en.wikipedia.org/wiki/Gunning_fog_index.
func CntPolysyls ¶
CntPolysyls counts the number of polysyllable words in a text.
func CntSyls ¶
CntSyls estimates the syllable counts in a text from the number of characters in words.
func Fk ¶
Fk scores the Flesch-Kincaid Grade Level. See https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests.
func Fre ¶
Fre scores the Flesch reading-ease. See https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests%23Flesch_reading_ease.
func Gfi ¶
Gfi scores the Gunning fog index. See https://en.wikipedia.org/wiki/Gunning_fog_index.
func Smog ¶
Smog scores the SMOG score. See https://en.wikipedia.org/wiki/SMOG.
Types ¶
This section is empty.