richtr / guessLanguage.js

A natural language detection library based on trigram statistical analysis for Node.js and the Web.
http://richtr.github.com/guessLanguage.js/
211 stars 39 forks source link

Eample code not working. #8

Closed ImranBug closed 9 years ago

ImranBug commented 10 years ago

In example HTML, if i remove the entire text and add something else or the same text it always return unknown... which makes me think that this plugin doesn't work at all?

richtr commented 9 years ago

If the result is 'unknown' then it means that the parser has not been given enough text to accurately determine what the natural language is.

guessLanguage.js works better when more input text is fed in to the detection process.