natural icon indicating copy to clipboard operation
natural copied to clipboard

Any way to detect language of text?

Open suspha opened this issue 3 years ago • 4 comments

Is there a built-in way to detect the language of a text to automatically choose the correct stemmer for the Bayesian classifier?

suspha avatar Jun 23 '21 14:06 suspha

This functionality is not part of Natural.

Hugo-ter-Doest avatar Aug 23 '21 19:08 Hugo-ter-Doest

While it could be a part of natural at a later date, there are existing js libraries that handle the guessing pretty well. If you need a recommendation, I personally use franc.

whalderman avatar Aug 25 '21 08:08 whalderman

Thanks!

Hugo-ter-Doest avatar Sep 11 '21 08:09 Hugo-ter-Doest

I'd like to recommend TinyLD as alternative to franc since it supposedly has a better score against false positives.

fmalk avatar Apr 05 '23 20:04 fmalk