stats

package
v0.0.0-...-b3a4540 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2013 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Stats provides utilities for analysing Wikipedia articles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FleschKincaidEase

func FleschKincaidEase(text string) float64

FleschKincaidEase computes the ease of reading a given text. The algorithm is explained in detail here: http://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests

func Sentences

func Sentences(text string) []string

Sentences returns a slice of the sentences in a given string.

func SyllableCount

func SyllableCount(word string) int

SyllableCount returns the number of syllables in a given string. Dipthongs are not taken into account.

func Words

func Words(text string) []string

Words returns a slice of the words in a given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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