Revision: 8587
http://languagetool.svn.sourceforge.net/languagetool/?rev=8587&view=rev
Author: jaumeortola
Date: 2012-12-18 22:33:01 +0000 (Tue, 18 Dec 2012)
Log Message:
-----------
[ca] Fixed false alarms.
Modified Paths:
--------------
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/multiwords.txt
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml
Modified:
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
===================================================================
---
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
2012-12-18 18:19:48 UTC (rev 8586)
+++
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
2012-12-18 22:33:01 UTC (rev 8587)
@@ -1743,13 +1743,22 @@
</rule>
<rule id="formar_part2" name="formar part">
<pattern>
- <token postag="V.*" postag_regexp="yes"
inflected="yes">formar</token>
+ <token postag="V.*" postag_regexp="yes" inflected="yes"
regexp="yes">formar|fer|ser</token>
<marker>
- <token regexp="yes">part|fallida</token>
+ <token>part</token>
</marker>
</pattern>
<disambig action="filter" postag="NCFS.*"></disambig>
</rule>
+ <rule id="fer_fallida" name="fer fallida">
+ <pattern>
+ <token postag="V.*" postag_regexp="yes" inflected="yes"
regexp="yes">declarar|fer</token>
+ <marker>
+ <token>fallida</token>
+ </marker>
+ </pattern>
+ <disambig action="filter" postag="NCFS.*"></disambig>
+ </rule>
<rule id="VISTA" name="vista">
<pattern>
<marker>
@@ -3071,7 +3080,7 @@
<token postag="D[^R].[MC][SN0].*" postag_regexp="yes"></token>
<token postag="N.[MC][SN0].*" postag_regexp="yes"></token>
<marker>
- <token postag="A..[MC][SN0].*|V.P..SM|PX.[MC][SN0].*"
postag_regexp="yes"><exception postag="V[MA]IP3S0"
postag_regexp="yes"/></token> <!-- el ball va -->
+ <token postag="A..[MC][SN0].*|V.P..SM|PX.[MC][SN0].*"
postag_regexp="yes"><exception postag="V[MAS]I[PI]3S0"
postag_regexp="yes"/></token> <!-- el ball va -->
</marker>
</pattern>
<disambig action="filter" postag="A.*|V.P.*|PX.*"></disambig>
@@ -3101,7 +3110,7 @@
<token postag="D[^R].[FC][SN0].*" postag_regexp="yes"></token>
<token postag="N.[FC][SN0].*" postag_regexp="yes"><exception
inflected="yes">numeral</exception></token>
<marker>
- <token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"><exception postag="V[MA]IP3S0"
postag_regexp="yes"/></token><!-- quan la dona madura, el ball va -->
+ <token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"><exception postag="V[MAS]I[PI]3S0"
postag_regexp="yes"/></token><!-- quan la dona madura, el ball va -->
</marker>
</pattern>
<disambig action="filter" postag="A.*|V.P.*|PX.*"></disambig>
@@ -3244,7 +3253,7 @@
<token postag="D..[FC][SN0].*" postag_regexp="yes"></token>
</marker>
<token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"></token>
- <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"></token>
+ <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"><exception regexp="yes">era|mira|queda</exception></token>
</pattern>
<disambig action="filter" postag="D.*"></disambig>
</rule>
@@ -3258,6 +3267,16 @@
</pattern>
<disambig action="filter" postag="NCFS000"></disambig>
</rule>
+ <rule> <!-- la seva millor (part) -->
+ <pattern>
+ <token postag="D..[FC][SN0].*" postag_regexp="yes"></token>
+ <token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"></token>
+ <marker>
+ <token postag="A..[FC][SN0].*"
postag_regexp="yes"><exception regexp="yes">era|mira|queda</exception></token>
<!-- era, mira <exception postag="V.I.3S0" postag_regexp="yes"/>-->
+ </marker>
+ </pattern>
+ <disambig action="filter" postag="AQ0FS0"></disambig>
+ </rule>
<rule>
<pattern>
<token postag="D..[FC][SN0].*" postag_regexp="yes"></token>
@@ -3274,7 +3293,7 @@
<marker>
<token postag="AQ.[FC][SN0].*" postag_regexp="yes"></token>
</marker>
- <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"></token>
+ <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"><exception regexp="yes">era|mira|queda</exception></token>
</pattern>
<disambig action="filter" postag="AQ0FS0"></disambig>
</rule>
@@ -3284,7 +3303,7 @@
<marker>
<token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"></token>
</marker>
- <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"></token>
+ <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"><exception regexp="yes">era|mira|queda</exception></token>
</pattern>
<disambig action="filter" postag="A.*|V.P.*|PX.*"></disambig>
</rule>
@@ -3363,7 +3382,7 @@
<marker>
<token postag="D..[FC][SN0].*" postag_regexp="yes"/>
<token postag="A..[FC][SN0].*|V.P..SF|PX.[FC][SN0].*"
postag_regexp="yes"/>
- <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"/>
+ <token postag="A..[FC][SN0].*|V.P..SF|N.[FC][SN0].*"
postag_regexp="yes"><exception regexp="yes">era|mira|queda</exception></token>
</marker>
</pattern>
<disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd
pos="_GN_FS"/></disambig>
@@ -6911,6 +6930,17 @@
</pattern>
<disambig action="add"><wd pos="allow_tant"></wd></disambig>
</rule>
+ <!-- Ja no s'encomana tant -->
+ <rule>
+ <pattern>
+ <token skip="2">no</token>
+ <token postag="V.[MSI].*|_GV_" postag_regexp="yes" />
+ <marker>
+ <token>tant</token>
+ </marker>
+ </pattern>
+ <disambig action="add"><wd pos="allow_tant"></wd></disambig>
+ </rule>
</rulegroup>
<rulegroup id="com_més__més" name="com més __ + més +adj">
<rule>
@@ -7093,7 +7123,7 @@
</rule>
<rule>
<pattern>
- <token regexp="yes"
inflected="yes">oposar|contrari|igual|similar|semblant|equivalent|alternatiu|superior|inferior|paral·lel|anterior|posterior</token>
+ <token regexp="yes"
inflected="yes">proper|pròxim|previ|oposar|contrari|igual|similar|semblant|equivalent|alternatiu|superior|inferior|paral·lel|anterior|posterior</token>
<marker>
<token>a</token>
</marker>
@@ -7102,8 +7132,18 @@
</rule>
<rule>
<pattern>
- <token regexp="yes">diferents?</token>
+ <token inflected="yes">donar</token>
+ <token>origen</token>
<marker>
+ <token>a</token>
+ </marker>
+ </pattern>
+ <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
+ </rule>
+ <rule>
+ <pattern>
+ <token
regexp="yes">diferents?|nord|sud|oest|est|doble|triple|precedent</token>
+ <marker>
<token>de</token>
</marker>
</pattern>
@@ -7111,7 +7151,7 @@
</rule>
<rule>
<pattern>
- <token skip="4" regexp="yes"
inflected="yes">distingir|diferenciar|separar</token>
+ <token skip="4" regexp="yes"
inflected="yes">distingir|diferenciar|separar|destriar</token>
<marker>
<token>de</token>
</marker>
@@ -7120,7 +7160,7 @@
</rule>
<rule>
<pattern>
- <token regexp="yes" skip="3">més|menys</token>
+ <token regexp="yes" skip="5">més|menys</token>
<marker>
<token>de</token>
</marker>
Modified:
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/multiwords.txt
===================================================================
---
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/multiwords.txt
2012-12-18 18:19:48 UTC (rev 8586)
+++
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/multiwords.txt
2012-12-18 22:33:01 UTC (rev 8587)
@@ -84,6 +84,8 @@
A l teu torn LOC_ADV
A l tombant d' LOC_PREP
A l tombant de LOC_PREP
+A l voltant d' LOC_PREP
+A l voltant de LOC_PREP
A l' instant LOC_ADV
A l'abast d' LOC_PREP
A l'abast de LOC_PREP
@@ -568,6 +570,8 @@
a l teu torn LOC_ADV
a l tombant d' LOC_PREP
a l tombant de LOC_PREP
+a l voltant d' LOC_PREP
+a l voltant de LOC_PREP
a l' instant LOC_ADV
a l'abast d' LOC_PREP
a l'abast de LOC_PREP
Modified:
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml
===================================================================
---
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml
2012-12-18 18:19:48 UTC (rev 8586)
+++
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml
2012-12-18 22:33:01 UTC (rev 8587)
@@ -3232,6 +3232,19 @@
<example type="correct">El llibre <marker>tracta</marker> aspectes
importants de les matemàtiques</example>
<example type="correct">El llibre <marker>tracta</marker> a més a
més aspectes importants de les matemàtiques</example>
</rule> -->
+ <rule id="A_LINREVES_DE_AL_REVES_DE" name="*a l'inrevés de/al revés
de">
+ <pattern>
+ <marker>
+ <token>a</token>
+ <token>l'</token>
+ <token>inrevés</token>
+ </marker>
+ <token regexp="yes">de|d'</token>
+ </pattern>
+ <message>Val més dir: <suggestion>al revés</suggestion>. "A
l'inrevés" és correcte com a locució adverbial.</message>
+ <example type="incorrect"><marker>a l'inrevés</marker> de</example>
+ <example type="correct">al revés de</example>
+ </rule>
<rule id="PARTICIPAR_A_EN" name="participar *a/en">
<pattern>
<token inflected="yes">participar</token>
@@ -3856,6 +3869,20 @@
</rulegroup>
</category>
<category name="Confusions">
+ <rule id="COM_MES_AVIAT_COM_ES_AVIAT" name="com més aviat/com és
aviat">
+ <pattern>
+ <marker>
+ <token>com</token>
+ <token>és</token>
+ <token>aviat</token>
+ </marker>
+ <token regexp="yes">millor|possible</token>
+ </pattern>
+ <message>¿Volíeu dir <suggestion>com més
aviat</suggestion>?</message>
+ <short>Possible confusió</short>
+ <example type="incorrect"><marker>com és aviat</marker>
millor</example>
+ <example type="correct">com més aviat millor</example>
+ </rule>
<rule id="UN_ABONA_UNA_BONA" name="un abona/una bona">
<pattern>
<marker>
@@ -3865,6 +3892,7 @@
<token postag="N.FS.*" postag_regexp="yes"/>
</pattern>
<message>¿Volíeu dir <suggestion>una bona</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect"><marker>un abona</marker>
relació</example>
<example type="correct">una bona relació</example>
</rule>
@@ -3877,6 +3905,7 @@
<token><exception postag="N.MS.*" postag_regexp="yes"/></token>
</pattern>
<message>¿Volíeu dir <suggestion>entremig</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect" correction="entremig"><marker>entre
mig</marker> de les plantes</example>
<example type="correct">entre mig any i un any</example>
</rule>
@@ -3885,6 +3914,7 @@
<token regexp="yes">[Tt]ex</token>
</pattern>
<message>¿Volíeu dir <suggestion><match
no="1"/>t</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect" correction="Text"><marker>Tex</marker>
inèdit de Joan Maragall.</example>
<example type="correct">El sistema tipogràfic TeX.</example>
</rule>
@@ -3897,6 +3927,7 @@
</marker>
</pattern>
<message>¿Volíeu dir <suggestion>cap<match
no="3"/></suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect" correction="capcot">Se n'anà <marker>cap
cot</marker>.</example>
<example type="correct">amb el cap cot</example>
</rule>
@@ -3905,6 +3936,7 @@
<token regexp="yes">catequesis|anàlisis<exception
postag="_GN_FP"/></token>
</pattern>
<message>¿Volíeu dir <suggestion><match no="1"
regexp_match="(.+)s" regexp_replace="$1"/></suggestion> (singular) en comptes
de "<match no="1"/>" (plural)?</message>
+ <short>Possible confusió</short>
<example type="incorrect" correction="catequesi">Hi anàvem a fer
<marker>catequesis</marker>.</example>
<example type="correct">Les anàlisis són correctes.</example>
</rule>
@@ -3917,6 +3949,7 @@
<token><exception regexp="yes">de|d'</exception></token>
</pattern>
<message>¿Volíeu dir <suggestion>lliurement</suggestion> (= amb
llibertat) en lloc de "lliurament" (= acció de lliurar)?</message>
+ <short>Possible confusió</short>
<example type="incorrect" correction="lliurement">Aquests
significats són <marker>lliurament</marker> mesclats.</example>
<example type="correct">El lliurament es va fer amb
normalitat.</example>
<example type="correct">Va negociar el lliurament de
Granada.</example>
@@ -3928,6 +3961,7 @@
<token>vist</token>
</pattern>
<message>¿Volíeu dir <suggestion>hem vist</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect">com <marker>em vist</marker></example>
<example type="correct">com hem vist</example>
</rule>
@@ -3936,6 +3970,7 @@
<token>am</token>
</pattern>
<message>¿Volíeu dir <suggestion>amb</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect"><marker>am</marker> àmplies
vistes</example>
<example type="correct">amb àmplies vistes</example>
</rule>
@@ -3947,6 +3982,7 @@
<token postag="NPMSSP0"/>
</pattern>
<message>¿Volíeu dir <suggestion>sant</suggestion> en comptes de
'san' (= poble africà)?</message>
+ <short>Possible confusió</short>
<example type="incorrect"><marker>san</marker> Joan </example>
<example type="correct">sant Joan</example>
<example type="correct">San Dalmazzo</example>
@@ -3958,6 +3994,7 @@
<token>oli</token>
</pattern>
<message>¿Volíeu dir <suggestion>allioli</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect"><marker>all i oli</marker></example>
<example type="correct">allioli</example>
</rule>
@@ -3967,7 +4004,8 @@
<token>d'</token>
<token>ahir</token>
</pattern>
- <message>Cal escriure
<suggestion>abans-d'ahir</suggestion>.</message>
+ <message>¿Volíeu dir
<suggestion>abans-d'ahir</suggestion>?</message>
+ <short>Possible confusió</short>
<example type="incorrect">els riscos d'<marker>abans
d'ahir</marker>.</example>
<example type="correct">els riscos d'abans-d'ahir.</example>
</rule>
@@ -14986,7 +15024,7 @@
<token postag="NCMS.*|_GN_MS" postag_regexp="yes"/>
<marker>
<token postag="SPS00"><exception
postag="_no_relatiu"/></token>
- <token regexp="yes">el|l</token>
+ <token>el</token>
<token regexp="yes">que|què|qui</token>
</marker>
</pattern>
@@ -14998,6 +15036,21 @@
</rule>
<rule>
<pattern>
+ <token postag="NCMS.*|_GN_MS" postag_regexp="yes"/>
+ <marker>
+ <token postag="SPS00"><exception
postag="_no_relatiu"/></token>
+ <token spacebefore="no">l</token>
+ <token regexp="yes">que|què|qui</token>
+ </marker>
+ </pattern>
+ <message>Reviseu la construcció de relatiu. Potser cal
escriure: <suggestion><match no="2" /><match no="3"/> qual</suggestion>,
<suggestion><match no="2" /> què</suggestion>, <suggestion><match no="2" />
qui</suggestion>.</message>
+ <short>Reviseu la construcció de relatiu</short>
+ <example type="incorrect">l'home <marker>al que</marker> vaig
trobar</example>
+ <example type="correct">l'home amb el qual vaig
parlar</example>
+ <example type="correct">tothom estava d'acord amb el que
s'havia dit</example>
+ </rule>
+ <rule>
+ <pattern>
<token postag="NCFS.*|_GN_FS" postag_regexp="yes"/>
<marker>
<token postag="SPS00"><exception
postag="_no_relatiu"/></token>
@@ -15019,7 +15072,7 @@
<token postag="NCMP.*|_GN_MP" postag_regexp="yes"/>
<marker>
<token postag="SPS00"><exception
postag="_no_relatiu"/></token>
- <token regexp="yes">els|ls</token>
+ <token>els</token>
<token regexp="yes">que|què|qui</token>
</marker>
</pattern>
@@ -15031,6 +15084,21 @@
</rule>
<rule>
<pattern>
+ <token postag="NCMP.*|_GN_MP" postag_regexp="yes"/>
+ <marker>
+ <token postag="SPS00"><exception
postag="_no_relatiu"/></token>
+ <token spacebefore="no">ls</token>
+ <token regexp="yes">que|què|qui</token>
+ </marker>
+ </pattern>
+ <message>Reviseu la construcció de relatiu. Potser cal
escriure: <suggestion><match no="2" /><match no="3"/> quals</suggestion>,
<suggestion><match no="2" /> què</suggestion>, <suggestion><match no="2" />
qui</suggestion>.</message>
+ <short>Reviseu la construcció de relatiu</short>
+ <example type="incorrect">els homes <marker>als que</marker>
vaig parlar</example>
+ <example type="correct">els homes amb els quals vaig
parlar</example>
+ <example type="correct">aquests són semblants als que va
trobar ell</example>
+ </rule>
+ <rule>
+ <pattern>
<token postag="NCFP.*|_GN_FP" postag_regexp="yes"/>
<marker>
<token postag="SPS00"><exception
postag="_no_relatiu"/></token>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits