Common Errors in English: Sure or Surely
Sure is an adjective; surely is an adverb.
Are you sure the lecture is today?
Mary is surely finished the painting by now.
Surely, Mary will be finished the painting tomorrow.
This is sure to be the best party ever.
Here, sure to be is an idiomatic phrase which is modifying party, so it’s working like an adjective.