Class SimpleSentenceTokenizer.AnyLanguage

    • Constructor Detail

      • AnyLanguage

        AnyLanguage()
    • Method Detail

      • getShortCode

        public java.lang.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
      • getName

        public java.lang.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
      • getCountries

        public java.lang.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.
      • 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
      • getRelevantRules

        public java.util.List<Rule> getRelevantRules​(java.util.ResourceBundle messages,
                                                     UserConfig userConfig,
                                                     Language motherTongue,
                                                     java.util.List<Language> altLanguages)
        Description copied from class: Language
        Get the rules classes that should run for texts in this language.
        Specified by:
        getRelevantRules in class Language