Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathansp/guess-language
Guess the natural language of a text (idiom).
https://github.com/jonathansp/guess-language
Last synced: 12 days ago
JSON representation
Guess the natural language of a text (idiom).
- Host: GitHub
- URL: https://github.com/jonathansp/guess-language
- Owner: jonathansp
- License: lgpl-3.0
- Created: 2015-03-05T01:02:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-30T00:06:36.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T22:53:29.045Z (3 months ago)
- Language: Go
- Homepage:
- Size: 236 KB
- Stars: 26
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guess-language
[![Build Status](https://travis-ci.org/jonathansp/guess-language.svg?branch=master)](https://travis-ci.org/jonathansp/guess-language) [![GoDoc](https://godoc.org/github.com/jonathansp/guess-language?status.svg)](http://godoc.org/github.com/jonathansp/guess-language)
Guess the natural language of a text (idiom).
Based on: https://websvn.kde.org/branches/work/sonnet-refactoring/common/nlp/guesslanguage.cpp?view=markup
## Install
Download and install it:
```sh
go get github.com/jonathansp/guess-language
```Import it in your code:
```go
import "github.com/jonathansp/guess-language"
```## Usage
```go
package mainimport (
"fmt"
"github.com/jonathansp/guess-language"
)func main () {
lang, _ := guesslanguage.Parse("We know what we are, but know not what we may be.")
fmt.Print(lang)
}
```## Authors
Jonathan Simon Prates (@jonathansp)