Does anyone know if there is any language detection script/library available for javascript? I like to incorporate it into nodejs but didn’t found any.
I don’t want a browser language detection but a string language detection.
‘Hello World’ would be detected english and ‘Hallo Wereld’ would be detected as dutch.
Thanks in advance.
I’m not that big into natural language processing but I suppose you could use Trigrams.
ActiveState has a Recipe of a simple Python version.
Of course you can always use a C++ library and write a wrapper for Node.js and compile that.