org.languagetool.rules.es
Class ElwithFemRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.es.SpanishRule
org.languagetool.rules.es.ElwithFemRule
public class ElwithFemRule
- extends SpanishRule
Check if the determiner (if any) preceding a feminine noun is "el". This
rule loads a list of words (feminine nouns starting with stressed ha- or a-)
from an external file. These words enforce the use of 'el' as determiner
instead of 'la' (also with 'un', 'algun' and 'ningun').
Sample
*la alma -> el alma
*la hambre -> el hambre
http://blog.lengua-e.com/2007/el-arma-determinante-masculino-ante-nombre-femenino/
http://tinyurl.com/m9uzte
- Author:
- Susana Sotelo Docio
based on English AvsAnRule rule
| 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 |
ElwithFemRule
public ElwithFemRule(ResourceBundle messages)
throws IOException
- Throws:
IOException
getId
public String getId()
- Specified by:
getId in class Rule
getDescription
public String getDescription()
- Specified by:
getDescription in class Rule
match
public 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.