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

Example 1:

// exclude words ending in ".com" (case-insensitive)
function onMisspelledWord() {
 if matchRegEx("\.com$",1,$omw_word) { $omw_exclude=true; }

Example 2:

// exclude words ending in ".gc.ca" (case-insensitive)
function onMisspelledWord() {
 if endsWithNoCase($omw_word,".gc.ca") { $omw_exclude=true; }