LanguageDetector (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.langdetect

## Interface LanguageDetector

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    LanguageDetectorME

      public interface LanguageDetector
      extends Serializable

  The interface for LanguageDetector which provide the @`Language` according to the context.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getSupportedLanguages()`
    `Language` | `predictLanguage(CharSequence content)`
    `Language[]` | `predictLanguages(CharSequence content)`

- - ### Method Detail

    - #### predictLanguages

          Language[] predictLanguages(CharSequence content)

    - #### predictLanguage

          Language predictLanguage(CharSequence content)

    - #### getSupportedLanguages

          String[] getSupportedLanguages()

Copyright © 2026 The Apache Software Foundation. All rights reserved.