Write rules in Portuguese

Write rules in Portuguese

Supported sentence structures

Both Portuguese (European) and Portuguese (Brazilian) parsers support Subject – Verb – Object sentences.

Supported verb forms

Portuguese verbs conjugate in a significant number of tenses and several moods. The indicative mood is used for factual statements; the subjunctive mood is used for uncertain sentences, as well as some "if ... then ..." sentences.

Although gender (masculine and feminine) is present in Portuguese, the second and third person forms in most tenses are the same for both genders. Additionally, the polite second person form uses the third person verb conjugation.

 

The verbs list in Oracle Policy Modeling contains entries for the following tense and mood combinations:

Tense

Mood

Verb forms

Present

Indicative

Singular 3rd person, plural 3rd person

Imperfect

Indicative

Singular 3rd person, plural 3rd person

Future

Indicative

Singular 3rd person, plural 3rd person

Preterite

Indicative

Singular 3rd person, plural 3rd person

Present

Subjunctive

Singular 3rd person, plural 3rd person

Imperfect

Subjunctive

Singular 3rd person, plural 3rd person

Future

Subjunctive

Singular 3rd person, plural 3rd person

Gerund

N/A

One form

Past Participle

N/A

Masculine singular, masculine plural, feminine singular, feminine plural

 

The parser supports both simple and compound verb constructions. For example:

Limitations

Substitutions

In order for the substitution to work correctly, every variable and entity should either be preceded by the article, or by a contracted preposition + article.

The following prepositions are supported for substitution:

  1. de – the contracted forms do and da are supported.
  1. For example, a caneca do candidato (the mug of the candidate) becomes a caneca do Leo when Leo is substituted for o candidato.
  1. por – the contracted forms pelo and pela are supported.
  1. For example, pelo candidato (by the candidate) becomes por Leo when Leo is substituted for o candidato.
  1. a – the contracted forms ao and à are supported.
  1. For example, ao agente fiscal (to the fiscal agent) becomes à Lia when Lia is substituted for o agente fiscal and the gender of the variable o agente fiscal is set to Feminine at runtime.
  1. para – the form para is supported.
  1. For example, para a senhora (for the lady) becomes para Lia when Lia is substituted for a senhora.

 

The following guidelines must be followed for substitution to work correctly:

  1. Each variable attribute should include the article. For example, use o candidato instead of candidato.
  2. Each variable used in a nominative sentence should include the article. For example, use o candidato tem a caneca instead of candidato tem a caneca.
  3. Each variable used in a sentence with a preposition should include the appropriate contracted preposition + article. For example, use os pontos foram atribuídos ao agente fiscal instead of os pontos foram atribuídos o agente fiscal.
  4. There must be exactly one space between the article/preposition and the variable name. For example, use os pontos foram atribuídos ao agente fiscal  instead of os pontos foram atribuídos ao  agente fiscal.

 

In order for 2nd person substitution of possessives to work correctly, the object possessed may consist of one word only. For example, a caneca do candidato can be correctly transformed into a sua caneca. However, a caneca azul do candidato (the candidate's blue mug) cannot be correctly transformed into a 2nd person sentence. It can, however, be transformed into a 3rd person sentence a caneca azul do %varid?% where "varid" is the public name for the variable o candidato.