Revision: 7939 http://languagetool.svn.sourceforge.net/languagetool/?rev=7939&view=rev Author: jaumeortola Date: 2012-08-28 22:40:47 +0000 (Tue, 28 Aug 2012) Log Message: ----------- [ca] new rule: *mol(s)/molt(s)
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-28 20:13:57 UTC (rev 7938) +++ trunk/JLanguageTool/src/rules/ca/grammar.xml 2012-08-28 22:40:47 UTC (rev 7939) @@ -2339,6 +2339,37 @@ </rulegroup> </category> <category name="Confusions"> + <rulegroup id="MOL_MOLT" name="*mol(s)/molt(s)"> + <rule> + <pattern> + <marker> + <token regexp="yes">mols?</token> + </marker> + <token postag="A.*|V.P.*|DI.*|N.*" postag_regexp="yes"/> + </pattern> + <message>¿Volíeu dir <suggestion><match no="1" regexp_match="[Mm]ol(.*)" regexp_replace="molt$1"></match></suggestion>?</message> + <example type="incorrect">estan <marker>mol</marker> arrelats</example> + <example type="incorrect">fa <marker>mol</marker> poc temps</example> + <example type="correct">fa molt poc temps</example> + </rule> + <rule> + <pattern> + <token><exception regexp="yes">un|\d+|quants</exception></token> + <marker> + <token regexp="yes">mols?</token> + </marker> + <token regexp="yes">de|d'</token> + <token postag="A.*|V.P.*|D.*|N.*|P.*" postag_regexp="yes"/> + </pattern> + <message>¿Volíeu dir <suggestion><match no="2" regexp_match="[Mm]ol(.*)" regexp_replace="molt$1"></match></suggestion>?</message> + <example type="incorrect">Fa <marker>mol</marker> de temps</example> + <example type="incorrect"><marker>Mols</marker> d'ells són així.</example> + <example type="correct">fa molt de temps</example> + <example type="correct">un mol de gas</example> + <example type="correct">6 mols de protons</example> + <example type="correct">Quants mols de diòxid de carboni es formaran?</example> + </rule> + </rulegroup> <rulegroup id="CONFUSIONS_B_V" name="confusions b/v (proba/prova)"> <rule> <pattern> @@ -2383,7 +2414,7 @@ <token regexp="yes">(re|de|pro)núnci(a|es)</token> </marker> </pattern> - <message>No s'accentua si és verb: <suggestion><match no="2" regexp_match="(re|de|pro)núnci(a|es)" regexp_replace="$1nunci$2"></match></suggestion>.</message> + <message>No s'accentua si és verb: <suggestion><match no="2" regexp_match="(re|de|pro)núnci(a|es)" regexp_replace="$1nunci$2"/></suggestion>.</message> <short>No s'accentua si és verb.</short> <example type="incorrect">El delicte que <marker>denúncia</marker>.</example> <example type="correct">El delicte que denuncia.</example> @@ -6042,7 +6073,7 @@ <rulegroup id="CAS_DE" name="*cas de"> <rule> <pattern> - <token negate="yes" regexp="yes">en|donat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> + <token negate="yes" regexp="yes">en|donat|posat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> <marker> <token>cas<exception postag="_GN_.*" postag_regexp="yes"/></token> <token regexp="yes">de|d'</token> @@ -6057,7 +6088,7 @@ </rule> <rule> <pattern> - <token negate="yes" regexp="yes">en|donat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> + <token negate="yes" regexp="yes">en|donat|posat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> <marker> <token>cas</token> <token regexp="yes">de|d'</token> @@ -6073,7 +6104,7 @@ </rule> <rule> <pattern> - <token negate="yes" regexp="yes">en|donat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> + <token negate="yes" regexp="yes">en|donat|posat|fos|fóra<exception postag="D.*" postag_regexp="yes" /><exception postag="V.*" postag_regexp="yes" inflected="yes">fer</exception></token> <marker> <token>cas<exception postag="_GN_.*" postag_regexp="yes"/></token> <token skip="3">que</token> @@ -6100,7 +6131,7 @@ <token>peu</token> </marker> </pattern> - <message>Cal dir <suggestion>dret</suggestion>, <suggestion>en peus</suggestion> o <suggestion>a peu dret</suggestion>.</message> + <message>Cal dir <suggestion>dret</suggestion>, <suggestion>a peu dret</suggestion>.</message> <short>Expressió incorrecta quan significa "dret".</short> <example type="incorrect">cansa molt estar tant temps <marker>de peu</marker></example> <example type="correct">cansa molt estar tant temps <marker>dret</marker></example> @@ -6114,7 +6145,7 @@ <token>peu</token> </marker> </pattern> - <message>Cal dir <suggestion>dret</suggestion>, <suggestion>en peus</suggestion> o <suggestion>a peu dret</suggestion>.</message> + <message>Cal dir <suggestion>dret</suggestion>, <suggestion>a peu dret</suggestion>.</message> <short>Expressió incorrecta quan significa "dret"</short> <example type="incorrect">cansa molt estar tant de temps <marker>de peu</marker></example> <example type="correct">cansa molt estar tant de temps <marker>dret</marker></example> 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