Here are some possibilities:
* Noun: It describes the conclusion of something, like a story, a movie, or a game.
* Example: "The movie had a happy ending."
* Adjective: It describes something that comes at the end, like the final part of a journey.
* Example: "The ending chapters of the book were the most exciting."
* Verb (present participle): It describes the action of coming to an end.
* Example: "The song is ending."
* Gerund: It functions as a noun, representing the action of ending.
* Example: "The ending of the game was controversial."
To determine the part of speech, look at the context of the sentence and how the word is being used.