adjective
Purpose
The function is used to search for adjectives. It duplicates the functionality of the functions lemma(), stem(), form(), partofspeech() allowing to write a query in a more concise way.
Arguments
The function accepts single argument. When used without arguments, the function matches any adjective.
The function also accepts the same optional named parameters as the functions lemma(), stem(), form(), partofspeech().
One can also specify only a grammatical value as an argument:
Grammatical value |
Synonym |
Description |
Examples |
comparative |
matches comparative adjectives |
better, easier … |
|
superlative |
matches superlative adjectives |
best, easiest … |
|
… |
Examples
adjective() = lemma(adjective) matches all adjectives in the text.
adjective(DegreeComparative) matches all adjectives in comparative form (more, stronger, etc.).
adjective(DegreeComparative, good) = partofspeech(adjective_DegreeComparative, good) matches all occurrences of "better", the comparative form of the word "good".
adjective(DegreeComparative, good, easy) = partofspeech(adjective_DegreeComparative, good, easy) matches all occurrences of the comparative form of the words "good" and "easy" ("better", "easier").