The document describes a language detection library that can detect the language of texts with over 99% precision for 49 languages. It uses a Naive Bayes algorithm and character n-grams as features to classify texts into language categories. The library is open source and available for Java. It was tested on over 9,000 news articles in 49 languages with an accuracy of 99.77%.Read less