The words are same sound, different spelling, which words are called homophones.
Ex: 1) there , their , they’re : { there– place; their– belonging to them; they’re — (abbreviation) they are }
2) here, hear : { here — place; hear — listen }
3) hair. hare: { hair– those on a person’s head; hare — a large rabbit}
4) write, right : { write– mark with a pen or pencil; right –correct}