Template:pt-adj/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:pt-adj. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template generates a headword line and categorizes Portuguese adjective entries.

The template uses Module:pt-headword as a back end.

Usage[edit]

This template should be added to all Portuguese adjective entries.

The template should be placed within the Portuguese language section, immediately following the Adjective L3 header.

As with other Wiktionary inflection line templates, please do not use subst:.

Parameters[edit]

Default parameters[edit]

In the majority of cases, no parameters are required, e.g. for lindo (beautiful):

{{pt-adj}}

which produces

lindo (feminine linda, masculine plural lindos, feminine plural lindas)

The module knows how to form the feminine and plural of most adjectives, including those in -l, -ão, -m, etc. For example, for fácil (easy):

{{pt-adj}}

which produces

fácil m or f (plural fáceis)

Similarly, for vermelhão (vermilion):

{{pt-adj}}

which produces

vermelhão (feminine vermelhona, masculine plural vermelhões, feminine plural vermelhonas)

And for comum (common):

{{pt-adj}}

which produces

comum m or f (plural comuns)

Note in the latter case that the module knows that the feminine is the same as the masculine, and adjusts the display accordingly.

Explicit parameters[edit]

Explicit parameters are available in case of irregular adjectives:

|f=, |f2=, ...
Explicitly specify the feminine(s).
|f_qual=, |f2_qual=, ...
Optional qualifiers for the feminine(s). |f_qual= corresponds to |f=, |f2_qual= corresponds to |f2=, etc.
|mpl=, |mpl2=, ...
Explicitly specify the masculine plural(s).
|mpl_qual=, |mpl2_qual=, ...
Optional qualifiers for the masculine plural(s). |mpl_qual= corresponds to |mpl=, |mpl2_qual= corresponds to |mpl2=, etc.
|pl=, |pl2=, ...
Explicitly specify the plural(s), for adjectives where the masculine and feminine plural are the same.
|pl_qual=, |pl2_qual=, ...
Optional qualifiers for the plural(s). |pl_qual= corresponds to |pl=, |pl2_qual= corresponds to |pl2=, etc.
|fpl=, |fpl2=, ...
Explicitly specify the feminine plural(s). The default is based on applying the pluralization algorithm to the feminine(s) (whether defaulted or explicitly specified).
|fpl_qual=, |fpl2_qual=, ...
Optional qualifiers for the feminine plural(s). |fpl_qual= corresponds to |fpl=, |fpl2_qual= corresponds to |fpl2=, etc.
|comp=, |comp2=, ...
Explicitly specify the comparative(s).
|comp_qual=, |comp2_qual=, ...
Optional qualifiers for the comparative(s). |comp_qual= corresponds to |comp=, |comp2_qual= corresponds to |comp2=, etc.
|sup=, |sup2=, ...
Explicitly specify the superlative(s).
|sup_qual=, |sup2_qual=, ...
Optional qualifiers for the superlative(s). |sup_qual= corresponds to |sup=, |sup2_qual= corresponds to |sup2=, etc.
|dim=, |dim2=, ...
Explicitly specify the diminutive(s).
|dim_qual=, |dim2_qual=, ...
Optional qualifiers for the diminutive(s). |dim_qual= corresponds to |dim=, |dim2_qual= corresponds to |dim2=, etc.
|aug=, |aug2=, ...
Explicitly specify the augmentative(s).
|aug_qual=, |aug2_qual=, ...
Optional qualifiers for the augmentative(s). |aug_qual= corresponds to |aug=, |aug2_qual= corresponds to |aug2=, etc.
|inv=1
Specify that the adjective is invariable (indeclinable).
|fonly=1
Specify that the adjective is feminine-only.
|hascomp=
Indicative whether the adjective has a comparative. Possible values are 1, yes or true (the adjective has a comparative); 0, no or false (the adjective has no comparative); and both (the adjective sometimes has a comparative, depending on the meaning).
|meta=1
Specify that the adjective is metaphonic, i.e. the stressed vowel varies between /o/ in the masculine singular and /ɔ/ in other forms. Adjectives in -oso are automatically marked as metaphonic unless |nometa=1 is used. Certain other adjectives, e.g. novo (new) and exposto (exposed), are also metaphonic and should be marked as such using |meta=1.
|nometa=1
Explicitly indicate that the adjective is not metaphonic, in case of adjectives in -oso.
|pagename=
Override the page name. Useful especially on documentation and test pages.
|sp=
Special indicator describing how to form non-lemma parts for multiword expressions. See below.

For all the above gender/number/comparative/superlative/diminutive/augmentative parameters, use + to explicitly request the default and # to stand for the lemma.

For example, for espanhol (Spanish):

{{pt-adj|f=espanhola}}

which produces

espanhol (feminine espanhola, masculine plural espanhóis, feminine plural espanholas)

For bom (good):

{{pt-adj|f=boa|comp=melhor|sup=boníssimo|sup2=ótimo}}

which produces

bom (feminine boa, masculine plural bons, feminine plural boas, comparable, comparative melhor, superlative boníssimo or ótimo)

Note how the masculine and feminine plural are appropriately generated (the feminine plural by pluralizing the explicitly given feminine).

For são (healthy):

{{pt-adj|f=sã|mpl=sãos}}

which produces

são (feminine , masculine plural sãos, feminine plural sãs)

For locomotor (locomotive):

{{pt-adj|f=+|f2=locomotriz}}

which produces

locomotor (feminine locomotora or locomotriz, masculine plural locomotores, feminine plural locomotoras or locomotrizes)

For vilão (villainous, vile):

{{pt-adj|f=vilã|f2=viloa|mpl=vilãos|mpl2=vilães|mpl3=vilões}}

which produces

vilão (feminine vilã or viloa, masculine plural vilãos or vilães or vilões, feminine plural vilãs or viloas)

For (sole, only):

{{pt-adj|pl=#|pl2=sós|pl2_qual=obsolete}}

which produces

 m or f (plural or (obsolete) sós)

For azul-celeste (sky blue):

{{pt-adj|pl=azul-celestes|pl_qual=Portugal|pl2=#|pl2_qual=Brazil}}

which produces

azul-celeste m or f (plural (Portugal) azul-celestes or (Brazil) azul-celeste)

For wireless (wireless):

{{pt-adj|inv=1}}

which produces

wireless (invariable)

Comparatives and superlatives[edit]

When degrees of comparison are not explicitly stated through parameters, the adjective is not assumed to be comparable or uncomparable. Whether an adjective is comparable can be controlled using |hascomp= as described above. In addition, if a comparative or superlative is explicitly given, the adjective is assumed comparable. For example, for the adjective fácil (easy) to request the default comparative form mais fácil, use |comp=+:

{{pt-adj|comp=+}}

which produces

fácil m or f (plural fáceis, comparable, comparative mais fácil, superlative o mais fácil)

Note how the default superlative o mais fácil is automatically supplied as well.

If an absolute superlative in -íssimo is specified, default comparatives and superlatives will automatically be added. To request a default absolute superlative, use |sup=+abs. For example, for fácil, use the following:

{{pt-adj|sup=+abs}}

which produces

fácil m or f (plural fáceis, comparable, comparative mais fácil, superlative o mais fácil or facilíssimo)

The default algorithm for generating absolute superlatives is fairly smart, and knows e.g. that the accent on fácil must be removed before adding the suffix. It also knows that adjectives in -ável must change to -abil; those in -ível must change to -ibil; those in -ão must change to -on; those in -co must change to -qu (e.g. rico (rich) becomes riquíssimo); etc. For example, for agradável (agreeable), use the following:

{{pt-adj|sup=+abs}}

which produces

agradável m or f (plural agradáveis, comparable, comparative mais agradável, superlative o mais agradável or agradabilíssimo)

Nonetheless, in some cases irregular absolute superlatives must be given explicitly, e.g. for frio (cold):

{{pt-adj|sup=+abs|sup2=frigidíssimo}}

which produces

frio (feminine fria, masculine plural frios, feminine plural frias, comparable, comparative mais frio, superlative o mais frio or friíssimo or frigidíssimo)

Diminutives and augmentatives[edit]

Use |dim=+ to request a default diminutive in -inho, and |aug=+ to request a default augmentative in -ão. In each case, the algorithm for generating the default is smart and handles most adjectives correctly, as with comparatives and superlatives. For example, for seco (dry), to specify a diminutive and augmentative along with an absolute superlative, use the following:

{{pt-adj|sup=+abs|dim=+|aug=+}}

which produces

seco (feminine seca, masculine plural secos, feminine plural secas, comparable, comparative mais seco, superlative o mais seco or sequíssimo, diminutive sequinho, augmentative secão)

Irregular diminutives and/or augmentatives can be given explicitly, as with comparatives and superlatives. For example, for frio, use:

{{pt-adj|sup=+abs|sup2=frigidíssimo|dim=friozinho|dim2=+}}

which produces

frio (feminine fria, masculine plural frios, feminine plural frias, comparable, comparative mais frio, superlative o mais frio or friíssimo or frigidíssimo, diminutive friozinho or friinho)

Multiword expressions[edit]

The module knows how to correctly pluralize and form the feminine of most multiword expressions. An example is morto de fome (starving, literally dead of hunger):

{{pt-adj|meta=1}}

which produces

morto de fome (feminine morta de fome, masculine plural mortos de fome, feminine plural mortas de fome, metaphonic)

Note here we use |meta=1 to indicate that the adjective morto is metaphonic (see above).

The default algorithm is to inflect the first and last word, unless (as here) there is a recognized preposition in the word, in which case only the portion before the preposition is inflected. An example without a preposition is católico romano (Roman Catholic):

{{pt-adj}}

which produces

católico romano (feminine católica romana, masculine plural católicos romanos, feminine plural católicas romanas)

In some cases, the default algorithm produces incorrect results. In those cases, you can control which words are inflected using one of the following specs:

  • Use |sp=first if only the first word inflects.
  • Use |sp=last if only the first word inflects.
  • Use |sp=first-last if the first and last word inflect.
  • Use |sp=each if all words inflect.
  • Use |sp=first-second if the first and second words inflect.
  • Use |sp=second if only the second word inflects.
  • Use |sp=+ to explicitly request the default multiword inflection algorithm (needed with hyphenated terms; see below).

An example that uses these codes is assim chamado (so-called). The default is to inflect the first and last words, but here we need only the last word inflected:

{{pt-adj|sp=last}}

which produces

assim chamado (feminine assim chamada, masculine plural assim chamados, feminine plural assim chamadas)

Another example is mais velho que a Sé de Braga (older than the hills, literally older than the Cathedral of Braga), where we want only the second word pluralized:

{{pt-adj|sp=second}}

which produces

mais velho que a de Braga (feminine mais velha que a Sé de Braga, masculine plural mais velhos que a Sé de Braga, feminine plural mais velhas que a Sé de Braga)

These codes also work for hyphenated terms such as gato-doméstico (domestic cat) and tartaruga-do-mar (sea turtle), but in these cases the default multiword algorithm does not automatically apply; instead, by default the word is treated as a single word. To apply the multiword algorithm, you must explicitly specify one of the codes above; use ++ to request the default. An example of this is caçador-recoletor (hunter-gathering):

{{pt-adj|sp=+}}

which produces

caçador-recoletor (feminine caçadora-recoletora, masculine plural caçadores-recoletores, feminine plural caçadoras-recoletoras)

Here the default multiword algorithm inflects both parts; without |sp=+, the term would be treated as single-word and only the last part inflected.

Suffixes[edit]

You can use this template for adjective-forming suffixes. If the page name begins with a hyphen, the part of speech for categories is changed to suffixes instead of nouns, and the page is added to an additional category Category:Portuguese adjective-forming suffixes. An example is -ês (-ese):

{{pt-adj}}

which produces

-ês (adjective-forming suffix, feminine -esa, masculine plural -eses, feminine plural -esas)

and automatically adds the page to Category:Portuguese suffixes and Category:Portuguese adjective-forming suffixes. Note how we rely here on the default feminine-forming and plural-forming algorithms, which usually work.