Thank you my friend,
I have committed the grammar.xml with the improvements.
Kind regards,
>Marco A.G.Pinto
-----------------------
On 16/02/2016 20:01, Yakov Reztsov wrote:
Hello Marco,
Problem of this rule that word * "bonita" is not match to "<*token
postag_regexp="yes" postag="AQ0CS0|PI0FS000|PI0MS000|NCMS000"></token>*"*
You can exchange postag "NCMS000" and "NCFS000" on second token like
this:
I think this rules may look like this:
* <!-- Concordance gender - UM > UMA + ADJ + NOUN -->**
** <rule id="UM_UMA_ADJ_NOUN" name="Erro de concordância UM-UMA +
ADJ + NOUN">**
** <pattern>**
** <marker>**
** <token>um</token>**
** </marker>**
** <token postag_regexp="yes"
postag="AQ0CS0|PI0FS000|PI0MS000|*NCFS000 *"></token>**
** <token postag="NCFS000"><exception
postag="NCMS000"></exception><exception>uma</exception></token>**
** </pattern>**
** <message>Erro de concordância um/uma.</message>**
** <suggestion>uma</suggestion>**
** <example correction="uma">Quero <marker>um</marker> bonita foto
dela.</example>**
** </rule> **
**
****
**
** <!-- Concordance gender - UMA > UM + ADJ + NOUN -->**
** <rule id="UMA_UM_ADJ_NOUN" name="Erro de concordância UMA-UM +
ADJ + NOUN">**
** <pattern>**
** <marker>**
** <token>uma</token>**
** </marker>**
** <token postag_regexp="yes"
postag="AQ0CS0|PI0FS000|PI0MS000|*NCMS000*"></token>**
** <token postag="NCMS000"><exception
postag="NCFS000"></exception><exception>a</exception></token>**
** </pattern>**
** <message>Erro de concordância uma/um.</message>**
** <suggestion>um</suggestion>**
** <example correction="um">Quero <marker>uma</marker> bonito
carro novo.</example>**
** </rule> *
Вторник, 16 февраля 2016, 14:15 UTC от "Marco A.G.Pinto"
<marcoagpi...@mail.telepac.pt>:
Hello!
Only today I had the chance of dedicating some time to improve the
complex rule: "um/uma + adj + noun" (male/female).
But it is giving an error in TESTRULES PT.
What am I doing wrong?:*
** <!-- Concordance gender - UM > UMA + ADJ + NOUN -->**
** <rule id="UM_UMA_ADJ_NOUN" name="Erro de concordância UM-UMA
+ ADJ + NOUN">**
** <pattern>**
** <marker>**
** <token>um</token>**
** </marker>**
** <token postag_regexp="yes"
postag="AQ0CS0|PI0FS000|PI0MS000|NCMS000"></token>**
** <token postag="NCFS000"><exception
postag="NCMS000"></exception><exception>uma</exception></token>**
** </pattern>**
** <message>Erro de concordância um/uma.</message>**
** <suggestion>uma</suggestion>**
** <example correction="uma">Quero <marker>um</marker> bonita
foto dela.</example>**
** </rule> **
**
****
**
** <!-- Concordance gender - UMA > UM + ADJ + NOUN -->**
** <rule id="UMA_UM_ADJ_NOUN" name="Erro de concordância UMA-UM
+ ADJ + NOUN">**
** <pattern>**
** <marker>**
** <token>uma</token>**
** </marker>**
** <token postag_regexp="yes"
postag="AQ0CS0|PI0FS000|PI0MS000|NCFS000"></token>**
** <token postag="NCMS000"><exception
postag="NCFS000"></exception><exception>a</exception></token>**
** </pattern>**
** <message>Erro de concordância uma/um.</message>**
** <suggestion>um</suggestion>**
** <example correction="um">Quero <marker>uma</marker> bonito
carro novo.</example>**
** </rule> *
Thanks!
Kind regards,
>Marco A.G.Pinto
-----------------------
--
--
Yakov Reztsov
--
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel