I want to know how to differentiate between adverb and adjective like in this sentences:
1."He believes in working hard". 2."He is hard working man".
In both cases, "working" is a gerund, which is used like a noun, but I think in the first case, "hard" is an adverb and in the second case it's an adjective.