Revision: 7765 http://languagetool.svn.sourceforge.net/languagetool/?rev=7765&view=rev Author: jaumeortola Date: 2012-07-27 23:45:40 +0000 (Fri, 27 Jul 2012) Log Message: ----------- [ca] Fixed some false alarms.
Modified Paths: -------------- trunk/JLanguageTool/src/java/org/languagetool/rules/ca/ComplexAdjectiveConcordanceRule.java trunk/JLanguageTool/src/resource/ca/disambiguation.xml trunk/JLanguageTool/src/rules/ca/grammar.xml Modified: trunk/JLanguageTool/src/java/org/languagetool/rules/ca/ComplexAdjectiveConcordanceRule.java =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/rules/ca/ComplexAdjectiveConcordanceRule.java 2012-07-27 22:18:47 UTC (rev 7764) +++ trunk/JLanguageTool/src/java/org/languagetool/rules/ca/ComplexAdjectiveConcordanceRule.java 2012-07-27 23:45:40 UTC (rev 7765) @@ -76,7 +76,7 @@ private static final Pattern COORDINACIO = Pattern.compile(",|i|o"); private static final Pattern COORDINACIO_IONI = Pattern.compile("i|o|ni"); private static final Pattern KEEP_COUNT = Pattern.compile("A.*|N.*|D[NAID].*|SPS.*|R.*|V.P.*"); - private static final Pattern KEEP_COUNT2 = Pattern.compile(",|i|o|ni"); + private static final Pattern KEEP_COUNT2 = Pattern.compile(",|i|o|ni|\\d+"); private static final Pattern PREPOSICIONS = Pattern.compile("SPS.*"); private static final Pattern VERB_AUXILIAR = Pattern.compile("V[AS].*"); private static final Pattern EXCEPCIONS_PARTICIPI = Pattern.compile("atès|atés|atesa|atesos|ateses|donat|donats|donada|donades"); Modified: trunk/JLanguageTool/src/resource/ca/disambiguation.xml =================================================================== --- trunk/JLanguageTool/src/resource/ca/disambiguation.xml 2012-07-27 22:18:47 UTC (rev 7764) +++ trunk/JLanguageTool/src/resource/ca/disambiguation.xml 2012-07-27 23:45:40 UTC (rev 7765) @@ -4712,7 +4712,7 @@ <marker> <and> <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /><exception regexp="yes">\p{Lu}+[\p{Ll}·]*</exception><exception regexp="yes">[\p{Ll}·]+(e|[aei]sses|[ae]res|era)</exception></token> - <token postag="V.*" postag_regexp="yes"><exception postag="_GV_" /></token> + <token postag="V.*" postag_regexp="yes"><exception postag="_GV_|VMIP1S0" postag_regexp="yes" /></token> </and> </marker> </pattern> @@ -5125,6 +5125,18 @@ <disambig action="filter" postag="I" /> </rule> </rulegroup> + <rulegroup id="interjeccio" name="interjeccions"> + <rule> + <pattern> + <token postag="SENT_START|CC" postag_regexp="yes"></token> + <marker> + <token>vaja</token> + </marker> + <token regexp="yes">,|\.\.\.|\.</token> + </pattern> + <disambig action="filter" postag="I" /> + </rule> + </rulegroup> <rule id="PI_N" name="pronom indefinit i nom"> <pattern> <and> Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml =================================================================== --- trunk/JLanguageTool/src/rules/ca/grammar.xml 2012-07-27 22:18:47 UTC (rev 7764) +++ trunk/JLanguageTool/src/rules/ca/grammar.xml 2012-07-27 23:45:40 UTC (rev 7765) @@ -3051,10 +3051,8 @@ </pattern> <message>Cal dir <suggestion>el <match no="2"></match></suggestion>.</message> <short>Error ortogràfic</short> - <example type="incorrect"><marker>l'iogurt</marker> - </example> - <example type="correct"><marker>el iogurt</marker> - </example> + <example type="incorrect"><marker>l'iogurt</marker></example> + <example type="correct"><marker>el iogurt</marker></example> </rule> <rule> <pattern> @@ -3063,12 +3061,9 @@ </pattern> <message>Cal dir <suggestion>la <match no="2"></match></suggestion>.</message> <short>Error ortogràfic</short> - <example type="incorrect"><marker>l'universitat</marker> - </example> - <example type="correct"><marker>la universitat</marker> - </example> + <example type="incorrect"><marker>l'universitat</marker></example> + <example type="correct"><marker>la universitat</marker></example> <example type="correct">l'intel·lectual valencià</example> - <example type="correct">la intel·lectual valenciana</example> </rule> <rule> <pattern> @@ -3079,12 +3074,14 @@ <token postag="_GN_MS" /> </and> </marker> - <token postag="_GN_FS" /> + <token postag="_GN_FS"><exception postag="_GN_MS"/></token> </pattern> <message>Cal dir <suggestion>la <match no="2"></match></suggestion>.</message> <short>Error ortogràfic</short> <example type="incorrect"><marker>l'intel·lectual</marker> valenciana</example> <example type="correct">la intel·lectual valenciana</example> + <example type="correct">l'insondable mar</example> + <example type="correct">la insondable mar</example> </rule> <rule> <pattern> @@ -4276,7 +4273,7 @@ <rulegroup id="EVITA_VERBS_VALENCIANS" name="Evita verbs valencians (pense, diga, patisca, patesca, patix, cantara)"> <rule> <pattern> - <token postag="V.[^N].*" postag_regexp="yes" regexp="yes">.+e<exception postag="_GN.*|V.N.*|N.*" postag_regexp="yes" /><exception regexp="yes">he|ve|.*obre|.*omple|.*corre</exception></token> + <token postag="V.[^N].*" postag_regexp="yes" regexp="yes">.+e<exception postag="_GN.*|V.N.*|N.*" postag_regexp="yes" /><exception regexp="yes">he|ve|.*obre|.*omple|.*corre|vine</exception></token> </pattern> <message>Forma verbal pròpia del valencià.</message> <!-- per a fer suggeriments cal mirar les conjugacions--> @@ -4291,12 +4288,13 @@ <message>Forma verbal pròpia del valencià.</message> <short>Forma valenciana.</short> <example type="incorrect">Que ells ho <marker>diguen</marker>.</example> + <example type="incorrect">Que se'n <marker>vaja</marker>.</example> <example type="correct">Que ells ho diguin.</example> <example type="correct">Cal que sàpiguen com va.</example> </rule> <rule> <pattern> - <token postag="V.M.*" postag_regexp="yes" regexp="yes">.+en?<exception postag="_GN.*|N.*|V.I.*" postag_regexp="yes" /><exception regexp="yes">(s|c)àpig(a|uen)</exception></token> + <token postag="V.M.*" postag_regexp="yes" regexp="yes">.+en?<exception postag="_GN.*|N.*|V.I.*" postag_regexp="yes" /><exception regexp="yes">(s|c)àpig(a|uen)|vine</exception></token> </pattern> <message>Forma verbal pròpia del valencià.</message> <short>Forma valenciana.</short> @@ -4311,7 +4309,9 @@ <message>Forma verbal pròpia del valencià.</message> <short>Forma valenciana.</short> <example type="incorrect"><marker>Diga</marker>'n tres.</example> + <example type="incorrect"><marker>Vaja</marker> on vulgui.</example> <example type="correct"><marker>Digui</marker>'n tres.</example> + <example type="correct">Vaja, com li agrada.</example> </rule> <rule> <pattern> @@ -4404,11 +4404,12 @@ </rule> <rule> <pattern> - <token postag="VM[MI].[12]P0" postag_regexp="yes" regexp="yes">.+a[um]<exception>cau</exception></token> + <token postag="VM[MI].[12]P0" postag_regexp="yes" regexp="yes">.+a[um]<exception regexp="yes" inflected="yes">.*caure</exception></token> </pattern> <message>Forma verbal pròpia del balear.</message> <short>Forma balear.</short> <example type="incorrect">Vosaltres <marker>cantau</marker>.</example> + <example type="correct">No escau fer-ho així.</example> <example type="correct">Vosaltres canteu.</example> </rule> </rulegroup> @@ -4659,7 +4660,7 @@ </rule> <rule> <pattern> - <token postag="VM[MI].[12]P0" postag_regexp="yes" regexp="yes">.+a[um]<exception>cau</exception></token> + <token postag="VM[MI].[12]P0" postag_regexp="yes" regexp="yes">.+a[um]<exception regexp="yes" inflected="yes">.*caure</exception></token> </pattern> <message>Forma verbal pròpia del balear.</message> <short>Forma balear.</short> 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