Since he talks about words, $istok should be used instead of isin : I've added $strip and this also let you trigger the script when you type in any windows, not just in channel windows.
on *:input:*:{ if ($istok($strip($1-),yankees,32)) inc %yankees }
#mircscripting @ irc.swiftirc.net == the best mIRC help channel