When two words are spelled the same but are pronounce differently and mean different things they are known as heteronyms.