Both Portuguese (European) and Portuguese (Brazilian) parsers support Subject – Verb – Object sentences.
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:
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:
- For example, a caneca do candidato (the mug of the candidate) becomes a caneca do Leo when Leo is substituted for o candidato.
- For example, pelo candidato (by the candidate) becomes por Leo when Leo is substituted for o candidato.
- 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.
- 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:
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.