Getting Contact related names

I have a working script that iterates over all contacts in my address book. I can pull all information that I see in the Contacts app except for the related names of any Contact. Is there a way to get this information?