Class Slovak

java.lang.Object
org.languagetool.Language
org.languagetool.language.Slovak

public class Slovak extends Language
  • Field Details

    • RULE_FILES

      private static final List<String> RULE_FILES
  • Constructor Details

    • Slovak

      public Slovak()
  • Method Details

    • 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.
    • createDefaultTagger

      @NotNull public Tagger createDefaultTagger()
      Description copied from class: Language
      Creates language specific part-of-speech tagger. The tagger must not be null, but it can be a trivial pseudo-tagger that only assigns null tags. This function will be called each time in Language.getTagger() ()} if tagger is not set.
      Overrides:
      createDefaultTagger in class Language
    • createDefaultSynthesizer

      @Nullable public Synthesizer createDefaultSynthesizer()
      Description copied from class: Language
      Creates language specific part-of-speech synthesizer. This function will be called each time in Language.getSynthesizer() if synthesizer is not set.
      Overrides:
      createDefaultSynthesizer in class Language
    • createDefaultSentenceTokenizer

      public SentenceTokenizer createDefaultSentenceTokenizer()
      Description copied from class: Language
      Creates language specific sentence tokenizer. This function will be called each time in Language.getSentenceTokenizer() if sentence tokenizer is not set.
      Overrides:
      createDefaultSentenceTokenizer 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
    • getRelevantRules

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

      public List<String> getRuleFileNames()
      Description copied from class: Language
      Get the location of the rule file(s) in a form like /org/languagetool/rules/de/grammar.xml, i.e. a path in the classpath. The files must exist or an exception will be thrown, unless the filename contains the string -test-.
      Overrides:
      getRuleFileNames in class Language
    • createDefaultSpellingRule

      @Nullable protected SpellingCheckRule createDefaultSpellingRule(ResourceBundle messages) throws IOException
      Overrides:
      createDefaultSpellingRule in class Language
      Throws:
      IOException