Popularity
4.9
Stable
Activity
0.0
Stable
165
5
21

Programming language: Go
License: MIT License

getlang alternatives and similar packages

Based on the "Natural Language Processing" category.
Alternatively, view getlang alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of getlang or a related project?

Add another 'Natural Language Processing' Package

README

getlang

GoDoc Go Report Card Build Status cover.run go

getlang provides fast natural language detection in Go.

Features

  • Offline -- no internet connection required
  • Supports 29 languages
  • Provides ISO 639 language codes
  • Fast

Getting started

Installation:

    go get -u github.com/rylans/getlang

example:

package main

import (
    "fmt"
    "github.com/rylans/getlang"
)

func main(){
  info := getlang.FromString("Wszyscy ludzie rodzą się wolni i równi w swojej godności i prawach")
  fmt.Println(info.LanguageCode(), info.Confidence())
}

Documentation

getlang on godoc

License

MIT

Acknowledgements and Citations

  • Thanks to abadojack for the trigram generation logic in whatlanggo
  • Cavnar, William B., and John M. Trenkle. "N-gram-based text categorization." Ann arbor mi 48113.2 (1994): 161-175.


*Note that all licence references and agreements mentioned in the getlang README section above are relevant to that project's source code only.