* Interjection: When used as an exclamation, expressing agreement, confirmation, or surprise. Example: "Yeah, that's right!"
* Adverb: When it modifies a verb, adjective, or another adverb, expressing emphasis or agreement. Example: "Yeah, I think so."
It's important to note that the distinction is subtle, and "yeah" is often used in a way that blends the two functions.