onMisspelledWord()
The function is called when generating the misspelled word message. It's called for each word that can potentially be included in the message.
•$omw_exclude - set to true to exclude the word or false to include the word in the misspelled word message; the default is false
•$omw_word - the word under consideration
•NOTE: Don't forget to escape backslash ('\') characters with a backslash if using matchRegEx().
// exclude words ending in ".com" (case-insensitive)
function onMisspelledWord() {
if matchRegEx("\\.com$",1,$omw_word) { $omw_exclude=true; }
}
// exclude words ending in ".gc.ca" (case-insensitive)
function onMisspelledWord() {
if endsWithNoCase($omw_word,".gc.ca") { $omw_exclude=true; }
}