swift was sent and offered the post of secretary and chaplain to the prince of berkeley , one of the kings justices , but until he reached london he found that the secretaryship had been given to her .
Swift worked for the Earl of Berkeley.