NaturalNode / natural

general natural language facilities for node
MIT License
10.53k stars 860 forks source link

Any way to detect language of text? #602

Open suspha opened 3 years ago

suspha commented 3 years ago

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

Hugo-ter-Doest commented 2 years ago

This functionality is not part of Natural.

whalderman commented 2 years ago

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.

Hugo-ter-Doest commented 2 years ago

Thanks!

fmalk commented 1 year ago

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