Back to LanguageTool Homepage - Privacy - Imprint

[pt] Commas

I´ve created a rule to use commas to separete a list of two nouns. This is it:

  <rule>
    <pattern>
      <marker>
        <token postag='N.+' postag_regexp='yes'></token>
      </marker>
      <token postag='N.+' postag_regexp='yes'></token>
      <token>e</token>
    </pattern>
    <message>Ausência de pontuação.</message>
    <suggestion><match no="1"/>,</suggestion>
    <example correction=''><marker>frutas verduras e</marker> legumes</example>
    <example>frutas, verduras e legumes</example>
  </rule>

The problem is that, when I add a list of two nouns and their adjectives (apple red - this is the structure in Portuguese), the rule recognizes the adjective as a noun.

Any idea of what I should do, please?

Could you give an example?