Complex sentence: It was Swift's habit to publish anonymously throughout his career, and partially as a way of protecting his career, and partially his person.
Split into simpler sentences: It was Swift's habit to publish anonymously throughout his career. This anonymity was partially a way of protecting his career, and partially his person.