Sentence:  And if the boy have not a woman's gift / To rain a shower of commanded tears, / An onion will do well for such a <WSD>shift</WSD> 
Meaning of the word marked with <WSD> tags:  A trick, an artifice.