Revision: 7952 http://languagetool.svn.sourceforge.net/languagetool/?rev=7952&view=rev Author: jaumeortola Date: 2012-08-31 21:31:07 +0000 (Fri, 31 Aug 2012) Log Message: ----------- [ca] Rules improved: - Haver + participi (ha fet) - Passat perifr?\195?\160stic (vaig fer)
Modified Paths: -------------- trunk/JLanguageTool/src/rules/ca/grammar.xml Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml =================================================================== --- trunk/JLanguageTool/src/rules/ca/grammar.xml 2012-08-31 16:33:03 UTC (rev 7951) +++ trunk/JLanguageTool/src/rules/ca/grammar.xml 2012-08-31 21:31:07 UTC (rev 7952) @@ -1398,9 +1398,33 @@ </rule> </rulegroup> <rulegroup id="HAVER_PARTICIPI_HAVER_IMPERSONAL" name="Comprova: «haver» + participi / «haver-hi» impersonal"> - <!-- Falta: haver (en infinitiu) + hi/participi --> <rule> <pattern> + <token>haver</token> + <marker> + <token postag="V.*" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="V.P.*|RG|N.*" postag_regexp="yes"/></token> + </marker> + </pattern> + <message>Falta un participi. Podria ser: <suggestion><match no="2" suppress_misspelled="yes" postag="V.P.*" postag_regexp="yes"/></suggestion>.</message> + <short>Falta un participi.</short> + <example type="incorrect">Tot i haver <marker>votar</marker> amb la resta.</example> + <example type="correct">Tot i haver votat amb la resta.</example> + </rule> + <rule> + <pattern> + <token>haver</token> + <token>-hi</token> + <marker> + <token postag="V.*" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="V.P.*|RG|N.*" postag_regexp="yes"/></token> + </marker> + </pattern> + <message>Falta un participi. Podria ser: <suggestion><match no="3" suppress_misspelled="yes" postag="V.P.*" postag_regexp="yes"/></suggestion>.</message> + <short>Falta un participi.</short> + <example type="incorrect">Tot i haver-hi <marker>votar</marker> amb la resta.</example> + <example type="correct">Tot i haver-hi votat amb la resta.</example> + </rule> + <rule> + <pattern> <token postag="VA..[12].." postag_regexp="yes" inflected="yes">haver<exception postag="VA..3S." postag_regexp="yes"/></token> <marker> <token postag="V.P.*" negate_pos="yes" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="V.P.*|RG" postag_regexp="yes"></exception><exception regexp="yes">de|d'</exception></token> @@ -1519,7 +1543,6 @@ <example type="incorrect">Ho han fermament <marker>realitzar</marker>.</example> <example type="correct">Ho han fermament realitzat.</example> </rule> - <rule> <!-- excepcions no controlades: a dit/ha dit--> <pattern> @@ -1573,7 +1596,7 @@ <example type="correct">Jo he de fer.</example> </rule> </rulegroup> - <rulegroup id="verb_passat_compost" name="Comprova: passat perifràstic"> + <rulegroup id="PASSAT_PERIFRASTIC" name="Comprova: passat perifràstic"> <rule> <pattern> <token regexp="yes">vam|vau|vares|vàrem|vàreu|varen</token> @@ -1594,11 +1617,26 @@ <token postag="V.[^NGP].*" postag_regexp="yes"><exception postag="V.[NGP].*" postag_regexp="yes"></exception></token> </marker> </pattern> - <message>Falta un infinitiu, un gerundi o un participi. Podria ser: <suggestion><match no="2" postag="V.N...." postag_regexp="yes"></match></suggestion>, <suggestion><match no="2" postag="V.G...." postag_regexp="yes"></match></suggestion>, <suggestion><match no="2" postag="V.P...." postag_regexp="yes"></match></suggestion>.</message> + <message>Falta un infinitiu, un gerundi o un participi. Podria ser: <suggestion><match no="2" postag="V.N...." postag_regexp="yes"/></suggestion>, <suggestion><match no="2" postag="V.G...." postag_regexp="yes"/></suggestion>, <suggestion><match no="2" postag="V.P...." postag_regexp="yes"/></suggestion>.</message> <short>Falta un infinitiu, un gerundi o un participi.</short> <example type="incorrect">Vaig <marker>corre</marker>.</example> <example type="correct">Vaig córrer.</example> </rule> + <rule> + <pattern> + <token postag="PP.*|P0.*" postag_regexp="yes"><exception regexp="yes">jo|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</exception></token> + <token regexp="yes">vaig|vas|va|van</token> + <marker> + <token postag="V.[^NG].*" postag_regexp="yes"><exception postag="V.[NG].*" postag_regexp="yes"/></token> + </marker> + </pattern> + <message>Falta un infinitiu. Podria ser: <suggestion><match no="3" postag="V.N...." postag_regexp="yes"/>, <match no="3" postag="V.G...." postag_regexp="yes"/></suggestion>.</message> + <short>Falta un infinitiu.</short> + <example type="incorrect">Els vaig <marker>traduït</marker> el conte.</example> + <example type="correct">Els vaig traudint el conte.</example> + <example type="correct">Els vaig traudir el conte.</example> + </rule> + </rulegroup> <rulegroup id="VERBS_JUNTS" name="Incorrecte: dos verbs seguits"> <rule> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs