public LanguageProfile getProfile() {
        return writer.getProfile();
    }
Returns the language profile being built by this content handler.
Note that the returned profile gets updated whenever new SAX events
are received by this content handler. Use the {@link #getLanguage()}
method to get the language that best matches the current state of
the profile.

@return language profile
tika-langdetect/tika-langdetect-tika/src/test/java/org/apache/tika/langdetect/tika/ProfilingHandler.java