-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pt] Added two gender rules with several words: "a"->"o" AND "o"->"a"
- Loading branch information
marcoagpinto
committed
Nov 29, 2013
1 parent
4bfe5b3
commit 71c4cea
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ You should have received a copy of the GNU Lesser General Public | |
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.066 2013-10-25 19:43:00 marcoagpinto Exp $ | ||
$Id: grammar.xml,v 1.067 2013-11-29 12:23: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"> | ||
|
||
|
@@ -34,6 +34,30 @@ $Id: grammar.xml,v 1.066 2013-10-25 19:43:00 marcoagpinto Exp $ | |
|
||
<category name="Gramática"> | ||
|
||
<!-- DET_FEM_MAS words that use "o" instead of "a" --> | ||
<rule id="DET_FEM_MAS" name="words a-o"> | ||
<pattern case_sensitive="no"> | ||
<token>a</token> | ||
<token regexp="yes">herpes|mármore|cônjuge|espécime</token> | ||
</pattern> | ||
<message>Erro de género.</message> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marcoagpinto
via email
Member
|
||
<example type="incorrect">Temos de curar <marker>a herpes</marker>.</example> | ||
<example type="correct">Temos de curar <marker>o herpes</marker>.</example> | ||
</rule> | ||
|
||
|
||
|
||
<!-- DET_MAS_FEM words that use "a" instead of "o" --> | ||
<rule id="DET_MAS_FEM" name="words o-a"> | ||
<pattern case_sensitive="no"> | ||
<token>o</token> | ||
<token regexp="yes">mascote|celeuma|acne|entorce|síndrome|sentinela</token> | ||
</pattern> | ||
<message>Erro de género.</message> | ||
<example type="incorrect">Temos de mostrar <marker>o mascote</marker>.</example> | ||
<example type="correct">Temos de mostrar <marker>a mascote</marker>.</example> | ||
</rule> | ||
|
||
|
||
|
||
<!-- A XXX DE VOCÊS a vossa XXX --> | ||
|
I suggest you add
<suggestion>o</suggestion>
to the message, so the user can easily choose the correction.