Documentation
¶
Index ¶
Constants ¶
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
func (*Readability) WienerSachTextFormelType ¶
func (r *Readability) WienerSachTextFormelType(text string, WSTF_Type CompareType) (float32, error)
Implements the Wiener Sachtextformel according to https://de.wikipedia.org/wiki/Lesbarkeitsindex#Wiener_Sachtextformel Further reading at https://wwwmatthes.in.tum.de/file/1f2t6qd87twtm/Sebis-Public-Website/-/Comparison-of-Law-Texts-An-Analysis-of-German-and-Austrian-Legislation-regarding-Linguistic-and-Structural-Metrics/Wa15a.pdf