public LanguageResult detect(CharSequence text) {
        reset();
        addText(text);
        return detect();
    }
Utility wrapper that detects the language of a given chunk of text.

@param text String to add to current statistics.
@return list of all possible languages with at least medium confidence,
sorted by confidence from highest to lowest.
tika-core/src/main/java/org/apache/tika/language/detect/LanguageDetector.java