Search by Syntactic Role
In order to find arguments that have a particular syntactic role use the function sentpart().
Syntax
The first argument part_of_sentence is used to specify the sentence part and takes one of the values below:
Sentence Part |
Description |
Predicate |
A predicate is the part of a sentence that contains the verb and gives information about the subject. There are different categories of predicates:
|
Subject |
A subject is the person or thing that performs the action of a verb.
|
Object |
An object is a noun affected by the action of the verb.
|
Modifier |
A modifier is a word or phrase that is used with another word or phrase to limit or add to its meaning. There are different categories of modifiers:
|
Adverbial |
An adverbial is a word that describes or gives more information about a verb, adjective, adverb, or phrase. There are adverbials of time, place, manner, etc.
|
Agent |
An agent is the actual actor of the action, which is not represented as subject
|
Users can specify several syntactic roles separated by a vertical bar ("|") character. In this case query returns words that match at least one of the listed syntactic roles.
If the term argument is omitted, the function matches all specified parts of sentence.
Example