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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址