atulmangal wrote:But if i apply the rules stated in your post
In that case, which is referring to i think "box of nails" and this is also meaningful. Please correct me if m wrong???"which" should stand for either
1) the closest noun, or
2) the closest noun + prepositional phrase,
i don't really see the difference here from what is written above - there is no functional difference between referring to "the box" and referring to "the box of nails". in the context of this sentence, "the box of nails" and "the box" are the same box, so just use whichever of those two references is easier for you to remember.
in any case, the rule that you have quoted here is correct - "which" is allowed to stand for either the preceding noun or the preceding noun + prepositional phrase; if there is any ambiguity, you'll have to use a combination of context and common sense to figure it out.
for example:
the Library of Congress in Washington DC, which has many millions of volumes on its shelves, is the world's largest physical library. --> in this sentence, it is clear from context that "which" stands for the library of congress (in washington dc); again, note that it's immaterial whether you interpret the referent as just "library of congress" or as "library of congress + prepositional phrase".
the Library of Congress in Washington DC, which has been the nation's capital since the government was moved from Philadelphia, is one of the most important reference libraries in the world. --> in this sentence, it is clear from context that "which" stands for washington dc, not the library.












