Consider using Perl's "study" on the initial input string and then have if-blocks matching single words like />[Aa]n</ around all rules for "an".
Log in to post a comment.