Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
github.com/endeveit/guesslanguage
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.
guesslanguage is regularly tested against Go 1.1, 1.2, 1.3 and tip.
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
Unknown package
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.