Heroin - heroine
From Hull AWE
These homophones have very different meanings. The one with the 'e' (heroine) is a feminine form of 'hero'. The one without the 'e' (heroin) is an addictive illegal drug.
The spellchecker will not care which spelling you use. So you have to do so.