Student or Learner
Here is the sentence...
It emerged that Martha made the complaint, which surprised everybody.
Use of "which" is solecism in above sentence.
Can I rewrite in this way: It emerged that Martha made the complaint, surprising everybody?
It emerged that Martha made the complaint, a revelation that surprised everybody.
If you look closely, you'll see that "which" is ambiguous in original sentence. Grammatically, "which" should refer to immediate antecedent and therefore, in original semetence, "which" is referring to "complaint". In reality, it is not complaint that surprises everybody rather making complaint surprises everybody.
Don't you think so?