* Noun: Hay refers to the dried grass used as animal fodder.
* "The farmer stored the hay in the barn."
* Verb: Hay means to cut and dry grass for fodder.
* "They hayed the fields last week."
So, the part of speech depends on its use in the sentence.