It is likely to rain.
Here likely is a predicate adjective with to rain as the complement (correct me if I'm wrong).
Who took the cookie? It was likely Bob.
Is likely also a predicate adjective here, or is it an adverb modifying was? It certainly seems like the case if one were to substitute probably in its stead, but I'm not certain.