* Adjective: When describing a noun, for example: "I've never seen such beauty."
* Pronoun: When standing in for a noun already mentioned, for example: "The food was delicious; I'd like to have such again."
* Determiner: When used before a noun, especially to indicate a specific type, for example: "Such events are rare."
* Adverb: When modifying an adjective or another adverb, for example: "The weather was such terrible weather."
To determine the correct part of speech, you need to consider the context of the sentence.