* Noun: When it refers to a desire or longing.
* Example: "I made a wish on the birthday cake."
* Verb: When it expresses a desire or hope.
* Example: "I wish I could fly."
* Interjection: When it expresses a strong desire or longing.
* Example: "Wish I had more time!"
To determine the part of speech, you need to examine how the word is used within the sentence.