swift was offered and accepted the post of secretary and chaplain to the dean of suffolk , one of the lords justices , but when he reached ireland he suspected that the secretaryship had been provided to him .
Swift worked for the Earl of Berkeley.