Class SpellingRuleWithSuggestions


  • class SpellingRuleWithSuggestions
    extends java.lang.Object
    Since:
    4.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String alternative  
      private org.languagetool.rules.Rule rule  
      private boolean skipIfAfterQuote  
      private java.util.List<java.lang.String> suggestions  
    • Constructor Summary

      Constructors 
      Constructor Description
      SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule, java.lang.String alternative, java.lang.String suggestion)  
      SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule, java.lang.String alternative, java.util.List<java.lang.String> suggestions)  
      SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule, java.lang.String alternative, java.util.List<java.lang.String> suggestions, boolean skipIfAfterQuote)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.util.List<org.languagetool.rules.RuleMatch> computeMatches​(org.languagetool.AnalyzedSentence sentence, SpellingData data, java.lang.String[] exceptions)  
      • Methods inherited from class java.lang.Object

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

      • rule

        private final org.languagetool.rules.Rule rule
      • alternative

        private final java.lang.String alternative
      • suggestions

        private final java.util.List<java.lang.String> suggestions
      • skipIfAfterQuote

        private final boolean skipIfAfterQuote
    • Constructor Detail

      • SpellingRuleWithSuggestions

        SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule,
                                    java.lang.String alternative,
                                    java.lang.String suggestion)
      • SpellingRuleWithSuggestions

        SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule,
                                    java.lang.String alternative,
                                    java.util.List<java.lang.String> suggestions)
        Since:
        4.6
      • SpellingRuleWithSuggestions

        SpellingRuleWithSuggestions​(org.languagetool.rules.Rule rule,
                                    java.lang.String alternative,
                                    java.util.List<java.lang.String> suggestions,
                                    boolean skipIfAfterQuote)
        Since:
        4.6
    • Method Detail

      • computeMatches

        static java.util.List<org.languagetool.rules.RuleMatch> computeMatches​(org.languagetool.AnalyzedSentence sentence,
                                                                               SpellingData data,
                                                                               java.lang.String[] exceptions)
                                                                        throws java.io.IOException
        Throws:
        java.io.IOException