public LanguageResult getLanguage() {
        return detector.detect();
    }
Returns the detected language based on text written thus far.

@return LanguageResult
tika-core/src/main/java/org/apache/tika/language/detect/LanguageWriter.java