* Adverb: When it modifies a verb, adjective, or another adverb, it means "completely" or "entirely."
* Example: "He was altogether exhausted after the long journey."
* Conjunction: When it connects two clauses, it means "in all" or "in total."
* Example: "There were five people at the party altogether."
So, you need to look at the sentence to determine the part of speech.