[pt] Help create rule - 2021-08-06

Hello @udomai @jaumeortola

	<!-- HÁ NC QUE VERBO verbo há nc -->
    <rule id='HÁ_NC_QUE_VERBO' name="Há + NC + que + Verbo → Verbo + há + NC" type='style'>
    <!--      Created by Marco A.G.Pinto, Portuguese rule 2021-08-06 (25-JUN-2021+)      -->
	<!--
Estes problemas há décadas que são abordados por cientistas. → Estes problemas são há décadas abordados por cientistas.
	-->
      <pattern>
		<token postag='NC.+|AQ.+' postag_regexp='yes'>
			<exception postag_regexp='yes' postag='V.+'/>
		</token>
		<marker>
			<token>há</token>
			<token postag='NC.+|AQ.+|RG' postag_regexp='yes'/>
			<token>que</token>
			<token postag='V.+' postag_regexp='yes'/>
		</marker>
		<token postag='VMP.+|DA.+|DI.+|DD.+|PD.+|CC|SPS.+' postag_regexp='yes'/>
      </pattern>
	  <message>Em certos contextos, esta perífrase pode ser simplificada.</message>
	  <suggestion>\5 há \3</suggestion>
      <example correction="são há décadas">Estes problemas <marker>há décadas que são</marker> abordados por cientistas.</example>
    </rule>

If I replace an entry with:
<token min="1" max="2" postag='NC.+|AQ.+|RG' postag_regexp='yes'/>

the suggestion doesn’t use the two words from “max=2”.

Is there a way of solving it, or will it require a rule group?

Thanks!

A rule group is safe.

Thanks!