public LanguageResult getLanguage() {
        return writer.getLanguage();
    }
Returns the detected language based on text handled thus far.

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