The function is called when generating the keyword density message. It's called for each word that can potentially be included in the message.

$okdw_exclude - set to true to exclude the word or false to include the word in the keyword density message; the default may be true or false, depending on whether the word is in the exclude list

$okdw_word - the word under consideration


// exclude numbers and words ending in ".com" (case-insensitive)
function onKeywordDensityWord() {
 if matchRegEx("^\d+$",0,$okdw_word) { #okdw_exclude=true; }
 else if matchRegEx("\.com$",1,$okdw_word) { #okdw_exclude=true; }