Identification of (spoken) language in javascript

Does anyone know if there are any script language definitions / library available for javascript? I like to include it in nodejs but not found.

I do not want to recognize the language of the browser, but detect the string language. "Hello World" will be discovered in English, and "Hallo Wereld" will be detected as Dutch.

Thanks in advance.

+3
source share
3 answers

I am not so good at natural language processing, but I suppose you could use Trigrams .

ActiveState has Recipe a simple version of Python.

, ++ Node.js .

+2

node.js Google Compact Language Detector: https://github.com/dachev/cld

+3

The Google Translate API allows you to recognize the language and work with JavaScript. You should check the link below:

http://code.google.com/apis/language/translate/v1/reference.html

+1
source

Source: https://habr.com/ru/post/1780847/


All Articles