What principle governs the interpretation of prepositional ibdāl?

Bayān al-Ibdāl: Verbs, Nouns, Particles and Sentence-Level Meaning