I belong to a forum where a lot of amateur writers gather. They're wanting a script that will catch misspellings as they type. I'm developing a simple script that replaces the wrong wording with the correct wording. For example:
::good advise::good advice
The above works flawlessly: as soon as a user types "good advise" it gets changed by the script to "good advice" and the user just keeps on typing.
I want the script to detect anytime the writer types the article 'a' and the next word begins with a vowel. In that case, I want the script to change 'a' to 'an'. So, below shows what the author types and then after the arrow I show the correction made by the script:
a otter -> an otter
a icycle -> an icycle
Any help would be appreciated.