That would allow some of the forbidden words like remark or another
since .* would also include spaces
Do you mean the input file has one word per line?
You didn't mention which grep (or platform) but if its gnu grep then
you may like the \B operator.
However if both situations occur on the same line your screwed,
without piping thru `grep -v' (sloppy).
If not gnu grep maybe something like:
grep '[a-z]er[a-z]\|[a-z]an[a-z]'
assuming no numbers are involved.
But again if both situations occur grep will include the line.