Class NoopLanguage


  • public class NoopLanguage
    extends Language
    A language that is part of languagetool-core but that hasn't any rules.
    • Constructor Detail

      • NoopLanguage

        public NoopLanguage()
    • Method Detail

      • getLocale

        public Locale getLocale()
        Description copied from class: Language
        Get this language's Java locale, not considering the country code.
        Overrides:
        getLocale in class Language
      • getName

        public String getName()
        Description copied from class: Language
        Get this language's name in English, e.g. English or German (Germany).
        Specified by:
        getName in class Language
        Returns:
        language name
      • getShortCode

        public String getShortCode()
        Description copied from class: Language
        Get this language's character code, e.g. en for English. For most languages this is a two-letter code according to ISO 639-1, but for those languages that don't have a two-letter code, a three-letter code according to ISO 639-2 is returned. The country parameter (e.g. "US"), if any, is not returned.
        Specified by:
        getShortCode in class Language
      • getCountries

        public String[] getCountries()
        Description copied from class: Language
        Get this language's country options , e.g. US (as in en-US) or PL (as in pl-PL).
        Specified by:
        getCountries in class Language
        Returns:
        String[] - array of country options for the language.
      • getTagger

        public Tagger getTagger()
        Description copied from class: Language
        Get this language's part-of-speech tagger implementation. The tagger must not be null, but it can be a trivial pseudo-tagger that only assigns null tags.
        Overrides:
        getTagger in class Language
      • getChunker

        public Chunker getChunker()
        Description copied from class: Language
        Get this language's chunker implementation or null.
        Overrides:
        getChunker in class Language
      • getMaintainers

        public Contributor[] getMaintainers()
        Description copied from class: Language
        Get the name(s) of the maintainer(s) for this language or null.
        Specified by:
        getMaintainers in class Language