Skip to content

jonathansp/guess-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Guess the natural language of a text (idiom).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages