Here are some cues you can use. If the word follows or precedes a verb and ends in "-ly", it is probably an adverb. An adjective is usually paired with a noun. For example. "soft" is an adjective, while "softly" is an adverb.
For more information, I searched Google under the key words "'parts of speech'" to get these possible sources:
I hope this helps. Thanks for asking.