readability

package module
v0.0.0-...-3ba48f8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WSTF1
	WSTF2
	WSTF3
	WSTF4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareType

type CompareType int

type Readability

type Readability struct {
	// contains filtered or unexported fields
}

func NewReadability

func NewReadability(lang string) (*Readability, error)

Initializes the Readability Engine by reading language-specific hypenation patterns and sentence training data. Returns a Readability-Object or error, if initialisation failes

func (*Readability) WienerSachTextFormel

func (r *Readability) WienerSachTextFormel(text string) (float32, error)

Returns the readability of a text according to the Wiener Sachtextformel. The type is fixed to Type1 cf. https://de.wikipedia.org/wiki/Lesbarkeitsindex#Wiener_Sachtextformel

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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