Class PortugueseWordRepeatRule


  • public class PortugueseWordRepeatRule
    extends org.languagetool.rules.WordRepeatRule
    Palavras que se repetem no Poruguês.
    Since:
    3.6
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern PRONOUNS  
      private static java.util.regex.Pattern TAUTONYMS_GENUS  
      private static java.util.regex.Pattern TAUTONYMS_SPECIES  
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      PortugueseWordRepeatRule​(java.util.ResourceBundle messages, org.languagetool.Language language)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      boolean ignore​(org.languagetool.AnalyzedTokenReadings[] tokens, int position)  
      private boolean isGenus​(org.languagetool.AnalyzedTokenReadings token)  
      private boolean isHiphenated​(org.languagetool.AnalyzedTokenReadings[] tokens, int position)  
      private boolean isPronoun​(org.languagetool.AnalyzedTokenReadings token)  
      private boolean isSpecies​(org.languagetool.AnalyzedTokenReadings token)  
      private boolean wordRepetitionOf​(java.lang.String word, org.languagetool.AnalyzedTokenReadings[] tokens, int position)  
      • Methods inherited from class org.languagetool.rules.WordRepeatRule

        createRuleMatch, estimateContextForSureMatch, getDescription, match
      • Methods inherited from class org.languagetool.rules.Rule

        addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TAUTONYMS_GENUS

        private static final java.util.regex.Pattern TAUTONYMS_GENUS
      • TAUTONYMS_SPECIES

        private static final java.util.regex.Pattern TAUTONYMS_SPECIES
      • PRONOUNS

        private static final java.util.regex.Pattern PRONOUNS
    • Constructor Detail

      • PortugueseWordRepeatRule

        public PortugueseWordRepeatRule​(java.util.ResourceBundle messages,
                                        org.languagetool.Language language)
    • Method Detail

      • getId

        public java.lang.String getId()
        Overrides:
        getId in class org.languagetool.rules.WordRepeatRule
      • ignore

        public boolean ignore​(org.languagetool.AnalyzedTokenReadings[] tokens,
                              int position)
        Overrides:
        ignore in class org.languagetool.rules.WordRepeatRule
      • wordRepetitionOf

        private boolean wordRepetitionOf​(java.lang.String word,
                                         org.languagetool.AnalyzedTokenReadings[] tokens,
                                         int position)
      • isHiphenated

        private boolean isHiphenated​(org.languagetool.AnalyzedTokenReadings[] tokens,
                                     int position)
      • isPronoun

        private boolean isPronoun​(org.languagetool.AnalyzedTokenReadings token)
      • isGenus

        private boolean isGenus​(org.languagetool.AnalyzedTokenReadings token)
      • isSpecies

        private boolean isSpecies​(org.languagetool.AnalyzedTokenReadings token)