certainly (Adverb) — Definitely or positively. ex. "she certainly is a hard worker"
certainly (Interjection) — Indicates an affirmative response.