swift was offered and accepted the posts of secretary and curate to the earl of kent , one of the two justices , but when he reached ireland he found that the secretaryship had been given to both .
Swift worked for the Earl of Berkeley.