Is swapping the subject and the verb in a sentence with the verb "be" possible?
For example:
What broke our fence was a pig.
Can I make this sentence as:
A pig was what broke our fence
?
I don't see any change in the meaning so I assume it's correct. Isn't it?
What you have here is a cleft sentence. org/grammar/british-grammar/word-order-and-focus/cleft-sentences-it-was-in-june-we-got-married There is one simple sentence: A pig broke our fence. It-cleft and wh*-cleft sentences can be formed from the simple statement.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
What you have here is a cleft sentence.
You can read about cleft sentences with a dummy it, and cleft sentences with a wh*-clause here:
https://dictionary.cambridge.org/grammar/british-grammar/word-order-and-focus/cleft