Class Language


  • public class Language
    extends Object
    INTERNAL: Object representing a particular language. The object is really just a container for a stemmer, a stop list, and a frequency analyzer.
    • Method Detail

      • getScore

        public int getScore​(Document doc)
      • registerLanguage

        public static void registerLanguage​(Language lang)
        INTERNAL: Registers a new language for use by detectLanguage. Warning: this method is not idempotent.
      • detectLanguage

        public static Language detectLanguage​(Document doc)
        INTERNAL: Detects the language of the document based on the built-in languages and new languages registered.