[pt] Rule: "e que" → "que"

Hello @rjlima

I had already created this rule, but I remmed it in the xml possibly because it produced tons of false positives.

I want to rewrite it for sentences like:

Recebemos um documento escrito em francês e que revelou uma lista de restaurantes.

This is the remmed rule:

	<!-- E QUE que -->
<!-- FIXME: This rule needs better disambiguation and a better pattern
     <rule id='E_QUE_QUE' name="Simplificar: E que → que" type="style">
    <!-\-      Created by Marco A.G.Pinto, Portuguese rule 2022-01-19 (Checked/Enhanced) (1-JAN-2022+)      -\->
	<!-\-
São regras muito simples e que permitem agir corretamente. → São regras muito simples que permitem agir corretamente.
	-\->
      <pattern>
		<token><exception postag='SPS.+|Z0.+|RG|DA.+|CS|I|V.+' postag_regexp='yes'/></token>
		<token postag='AQ.+|NC.+' postag_regexp='yes'/>
		<marker>
			<token>e</token>
			<token>que</token>
		</marker>
		<token postag='V.+' postag_regexp='yes'/>
		<token postag='V.+|DA.+|SPS.+|CC' postag_regexp='yes'/>
      </pattern>
      <message>Poderá omitir a conjunção 'e' para simplificar a parafrase.</message>
	  <suggestion>que</suggestion>
      <example correction="que">São regras muito simples <marker>e que</marker> permitem agir corretamente.</example>
	  <example>É uma definição relativamente aberta que deverá ser especificada para cada grupo cultural por meio do embate político.</example>
	  <example>Obras que custaram cerca de mil contos e que foram inauguradas a 21 de Outubro de 1951.</example>
	  <example>Além disso, havia duas tribos que provavelmente eram relacionadas com os godos e que permaneceram na Escandinávia, os gotlanders e os gautas.</example>
	  <example>O imperador ordenou a construção de hospedarias para os viajantes e que fosse proporcionado tratamento médico não só aos humanos, mas também aos animais.</example>
    </rule>-->

I will try to code it today.

Do you have any suggestions for tokens?

@rjlima

Hello!

I have committed the rule and added a .txt with the results of 600 000 sentences to the comment.

I have based the rule on:

São regras muito simples e que permitem agir corretamente. → São regras muito simples que permitem agir corretamente.
Recebemos um documento escrito em francês e que revelou uma lista de restaurantes. → Recebemos um documento escrito em francês que revelou uma lista de restaurantes.

Later, I can improve it after fixing the false positives.

I am too stressed to take a look at the results, that is why I need your help.

Thanks!

Hi @marcoagpinto I am missing all these commits you are making (the ones with agreement too), how can I keep track of them?

ahhhh… I forgot to paste the URL here…

I am terribly sorry… I don’t know it is happening… I am having memory issues for the past few days.

Here is the URL: