Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 897 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 897 Bytes

guess-language

Build Status GoDoc

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:

go get github.com/jonathansp/guess-language

Import it in your code:

import "github.com/jonathansp/guess-language"

Usage

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)