Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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)