org.languagetool.rules.uk
Class MixedAlphabetsRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.uk.MixedAlphabetsRule
public class MixedAlphabetsRule
- extends Rule
A rule that matches words Latin and Cyrillic characters in them
- Author:
- Andriy Rysin
| Fields inherited from class org.languagetool.rules.Rule |
messages |
| Methods inherited from class org.languagetool.rules.Rule |
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getMatches, getMatchesIndex, getUrl, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, isSpellingRule, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setLocQualityIssueType, setParagraphBackTrack, setUrl, supportsLanguage, toRuleMatchArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MixedAlphabetsRule
public MixedAlphabetsRule(ResourceBundle messages)
throws IOException
- Throws:
IOException
getId
public final String getId()
- Specified by:
getId in class Rule
getDescription
public String getDescription()
- Specified by:
getDescription in class Rule
getShort
public String getShort()
getSuggestion
public String getSuggestion(String word)
isCaseSensitive
public boolean isCaseSensitive()
- Indicates if the rule is case-sensitive.
- Returns:
- true if the rule is case-sensitive, false otherwise.
match
public final RuleMatch[] match(AnalyzedSentence text)
- Specified by:
match in class Rule
reset
public void reset()
- Specified by:
reset in class Rule
Copyright © 2013. All Rights Reserved.