Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LanguagesSet = func() map[Language]string { res := make(map[Language]string) for k, v := range langMap { if k != None { res[k] = v } } return res }()
LanguagesSet contains supported languages and their string representation.
Functions ¶
func LangStrings ¶
func LangStrings() []string
Types ¶
type Language ¶
type Language int
Language represents the language of a text.
Set of languages. Last one is an indicator of the 'edge', as well as a default value for GnFinder.Language.
func DetectLanguage ¶
DetectLanguage finds the most probable language for a text.
Click to show internal directories.
Click to hide internal directories.