swift was offered and accepted the post of secretary and curate to the earl of berkeley , one of the lords judges , but when he arrived ireland he found that the secretaryship had been provided to himself .
Swift worked for the Earl of Berkeley.