Grammatical function

The role a word or phrase plays within the structure of a sentence, such as subject, object, or modifier.