Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LanguagesSet ¶
func LanguagesSet() map[Language]struct{}
LanguagesSet returns a 'set' of languages for more effective lookup of a language.
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.
func NewLanguage ¶
NewLanguage takes a string and returns matching language, or error, if a matching language cannot be found.
func SupportedLanguages ¶ added in v0.9.0
func SupportedLanguages() []Language
SupportedLanguages returns a slice of supported by gnfinder languages.
Click to show internal directories.
Click to hide internal directories.