Agree adjectives with agreeAdj

This is the documentation for 1.16.4 version, which is not the latest version. Consider upgrading to 1.20.2.
Most of the time, when you want to agree adjectives, it is better to generate a complete nominal group (determiner + noun + adjectives) using Value for Nominal Groups.

Use agreeAdj(adjective, subject) to agree an adjective with a subject.

List of adjectives

adjective can be either a single adjective (string) or a list of adjectives (list of strings). When a list, a random synonym will be chosen in that list.

For instance:

  • #[+agreeAdj('muni', getAnonFP())] will output munies

  • #[+agreeAdj(['vieux', 'beau', 'intéressant'], getAnonFP())] will output randomly belles, intéressantes, or vieilles

The element in the list will be chosen randomly. If you want more control over the synonyms (like choosing them in sequence), use the synz > syn structure and its parameters.

Example in French

will output luxueuses / munies.

Example in German

In German you have to indicate both the case and the determiner:

will output der alten Gurke.

You can also use value with the adj property: #[+value('Gurke', {case:'GENITIVE', det:'DEFINITE', adj:'alt'})] will also output der alten Gurke.

Example in Italian

la #[+agreeAdj('vecchio', 'casa')] casa will output la vecchia casa.