The word "hegarty" is spelled exactly as it sounds with the vowel sound "e" pronounced like "eh" in the word "set". The IPA phonetic transcription of this word is /hɛgərti/. The "h" is silent and the stress is on the second syllable. The "g" is also a bit tricky as it is pronounced like the "g" in "goat" rather than the "g" in "gem". Overall, the spelling of "hegarty" is relatively straightforward once you are familiar with English phonetics.