"Mary's voice is a sweet melody to my ears." In this sentence, the word "sweet" is a(n):

Adjective
Preposition
Noun
Verb

Adjective