Back to LanguageTool Homepage - Privacy - Imprint

[pt] Help to create "feedback" rule

Hello @jaumeortola

I am creating a rule:

	<!-- FORNECER FEEDBACK dar feedback -->
	<!--      Created by Marco A.G.Pinto, Portuguese rule 2021-01-01 (1-JAN-2021+)  *START*   -->
<!--
Precisamos que nos dê o feedback necessário.
-->	
    <rule id='FEEDBACK' name="feedback">
      <pattern>
		<marker>
			<token inflected='yes'>fornecer</token>
		</marker>
		<token skip="2" regexp='yes'>
			<exception scope="next" regexp='yes'>feedbacks?</exception>
		</token>
      </pattern>
      <message>Substitua por</message>
	    <suggestion><match no='1' postag='V.+' postag_regexp='yes'>dar</match></suggestion>      
      <example correction="dê">Precisamos que nos <marker>forneça</marker> o feedback necessário.</example>  
	  <example type='correct'>Precisamos que nos <marker>dê</marker> o feedback necessário.</example>
    </rule> 

But in the stand-alone tool it doesn’t detect the first sentence:

Precisamos que nos forneça o feedback necessário.
Precisamos que nos forneça o maior feedback necessário.
Precisamos que nos forneça feedback necessário.

What am I doing wrong?

Thanks!

I would do this. I am not sure if you are trying to do another thing.

<rule id='FEEDBACK' name="feedback">
          <pattern>
              <marker>
                  <token inflected='yes' skip="2">fornecer</token>
              </marker>
              <token regexp='yes'>feedbacks?</token>
          </pattern>
          <message>Substitua por</message>
          <suggestion><match no='1' postag='V.+' postag_regexp='yes'>dar</match></suggestion>      
          <example correction="dê">Precisamos que nos <marker>forneça</marker> o feedback necessário.</example>  
          <example  correction="dê">Precisamos que nos <marker>forneça</marker> o maior feedback.</example>
      </rule> 

Thank you @jaumeortola

I had the rule idea because I wrote in my thesis “fornecer feedback” when it should be “dar feedback”.

So, it will help other people who made a direct translation of the English words.