Revision: 8153
http://languagetool.svn.sourceforge.net/languagetool/?rev=8153&view=rev
Author: marcoagpinto
Date: 2012-10-03 14:00:35 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
Added a complex rule thanks to Dominique:
"A XXX de voc?\195?\170s" = "A vossa XXX"
I hope it will work okay.
I will test it after Daniel Naber updates the developer version.
Modified Paths:
--------------
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/pt/grammar.xml
Modified:
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/pt/grammar.xml
===================================================================
---
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/pt/grammar.xml
2012-10-02 23:22:43 UTC (rev 8152)
+++
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/pt/grammar.xml
2012-10-03 14:00:35 UTC (rev 8153)
@@ -21,7 +21,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-$Id: grammar.xml,v 1.030 2012-09-17 11:22:00 marcoagpinto Exp $
+$Id: grammar.xml,v 1.031 2012-10-03 14:53:00 marcoagpinto Exp $
-->
<rules lang="pt" xsi:noNamespaceSchemaLocation="../rules.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
@@ -47,6 +47,21 @@
+ <!-- A XXX DE VOCÊS a xxx de vocês -->
+ <rule id="A_XXX_DE_VOCÊS" name="a XXX de vocês -> a vossa XXX">
+ <pattern>
+ <token>a</token>
+ <token/>
+ <token>de</token>
+ <token>vocês</token>
+ </pattern>
+ <message>Querias dizer <suggestion>\1 vossa \2</suggestion>?</message>
+ <example type="incorrect"><marker>A opinião de vocês</marker> é
importante.</example>
+ <example type="correct"><marker>A vossa opinião</marker> é
importante.</example>
+ </rule>
+
+
+
<!-- À BOCADO há bocado -->
<rule id="À_BOCADO" name="há bocado">
<pattern>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits