[pt] gerundism

I’ve had problems about making suggestions related to gerundism. In Portuguese, “I will/going to be studying” is a problematic grammar construction. Instead of that, we should use “I will study”.
So, this is the rule I’ve created:

<rule id="GERUNDISMO" name="Gerundismo">
 <pattern>
  <token postag='PP1.*' postag_regexp='yes'></token>
  <marker>
    <token regexp="yes">vou|irei</token>
    <token>estar</token>
    <token min='0' postag_regexp='VMG.*'></token>
  </marker>
 </pattern>
 <message>Gerundismo é inadequado à norma padrão.</message>
 <suggestion><match no="4" postag_regexp='VMG.*' postag_replace="VMIF1S0"/></suggestion>
 <example correction=''>Eu <marker>vou estar trabalhando</marker>.</example>
 <example>Eu trabalharei.</example>
</rule>

As I said before, the problem is the suggestion. In it, there is only the verb in the gerund (estudando). It should be the verb in the future (estudará). Can anybody help me out, please?

I suggest you use the rule editor at Check a LanguageTool XML rule, it will find syntax issues. For example, you’re using postag_regex='VMG.*', which should be postag_regex='yes' postag='VMG.*'

The fixed rule:

<rule id="GERUNDISMO" name="Gerundismo">
 <pattern>
  <token postag='PP1.*' postag_regexp='yes'></token>
  <marker>
    <token regexp="yes">vou|irei</token>
    <token>estar</token>
    <token postag="VMG.*" postag_regexp="yes"></token>
  </marker>
 </pattern>
 <message>Gerundismo é inadequado à norma padrão. </message>
 <suggestion><match no="4" postag='VMG.*' postag_regexp="yes" postag_replace="VMIF1S0"/></suggestion>
 <example correction='trabalharei'>Eu <marker>vou estar trabalhando</marker>.</example>
 <example>Eu trabalharei.</example>
</rule>
1 Like