public LanguageDetector getDetector() {
        return detector;
    }
Returns the language detector used by this writer. Note that
the returned language detector gets updated whenever new characters
are written.

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