* Adverb: This is the most common usage, meaning "only," "recently," or "exactly."
* Example: "I just finished my homework."
* Adjective: Meaning "fair" or "right."
* Example: "It's only just that she gets the promotion."
* Interjection: Expressing surprise or agreement.
* Example: "Just imagine that!"
To determine the part of speech, you need to analyze the sentence's structure and the word's function.