Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/artyom/guesslanguage

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/artyom/guesslanguage

  • v0.0.0-20141226105728-ba5433ea6e78
  • Source
  • Go
  • Socket score

Version published
Created
Source

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)
	}
}

FAQs

Package last updated on 26 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc