Whose members that share similar attitudes what grammatical name is given and what is it function

The grammatical name given to a group of words that share similar attitudes is a mood. In grammar, mood indicates the speaker's attitude towards the action or state expressed by a verb. There are three primary moods in English grammar: indicative mood, subjunctive mood, and imperative mood. Each of these moods conveys different types of attitudes and functions in a sentence.