Awesome Go

guesslanguage

CategoryNatural Language Processing
SubcategoryLanguage Detection
Stars0

Functions to determine the natural language of a unicode text

About guesslanguage

guesslanguage Build Status

This is a Go version of python guess-language.

guesslanguage provides a simple way to detect the natural language of unicode string and detects over 60 languages listed in the models directory.

Supported Go versions

guesslanguage is regularly tested against Go 1.1, 1.2, 1.3 and tip.

Usage

Install in your ${GOPATH} using go get -u github.com/endeveit/guesslanguage

Then call it:

package main

import (
	"fmt"
	"github.com/endeveit/guesslanguage"
)

func main() {
	lang, err := guesslanguage.Guess("This is a test of the language checker.")

	// Output:
	// en
	if err != nil {
		fmt.Println(lang)
	}
}

Frequently Asked Questions

What is guesslanguage?

guesslanguage is a Natural Language Processing library for the Go programming language. Functions to determine the natural language of a unicode text

How do I install guesslanguage?

Install guesslanguage with the Go module system using `go get endeveit/guesslanguage`. Check the repository for the current installation instructions.

What category does guesslanguage belong to?

guesslanguage is listed under Natural Language Processing, specifically Language Detection.

← Back to Language Detection