natural
natural copied to clipboard
Any way to detect language of text?
Is there a built-in way to detect the language of a text to automatically choose the correct stemmer for the Bayesian classifier?
This functionality is not part of Natural.
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.
Thanks!
I'd like to recommend TinyLD as alternative to franc
since it supposedly has a better score against false positives.