I have a large text file of an OCR'd book where many words have been broken and hyphenated at the end of a line. Eg.
In his newest book of language ex-
ploration, Professor Asimov ranges over
I can see many ways I might go about cleaning up the file of these particular errors but believe the process would go much faster if I were able to compose a regex that can find a misspelled word.
Is it possible to specify a regex for a misspelled word. I suspect not, but thought I'd ask anyway.
[Edit]
And by cleaning up the file I mean correcting spelling, formatting etc.
Since posting I've tried out aspell but couldn't get it to give me line-numbers (in non-interactive mode); and vim plugin SpellCheck.
The latter works as described and is actually pretty good (despite requiring a 1MB library.
It would still be cool if I could write a regex for misspelled words though.
]s
?