they decided that the hedge needed a trim. what is the part of speech of trim in this sentence

What type of word is preceded by "a" (or "an" or "the")?

article

Noun

In the sentence "they decided that the hedge needed a trim," the word "trim" is a noun. It is functioning as the direct object of the verb "needed." The noun "trim" refers to the action or process of cutting or shaping something to make it neat or more attractive. To determine the part of speech of a word in a sentence, it is helpful to identify its function and contextual meaning within the sentence.