a. I have a key to open the main gate in my room.
b. I have a toy to keep the dog amused in my pocket.
Are the above sentences grammatically correct?
Obviously the main gate is not in my room and the dog is not in my pocket. I think the sentences work, but are a bit awkward maybe.
This is the second question I'm asking about attachment ambiguity. I am exploring attachment ambiguity at present. In this case we have place adverbials which modify the nouns.