in reply to [untitled node, ID 150603]

the \b modifier is your friend. It will match on word boundries, a zero-width assertion that will match the "Samn" in "Samn's" but not the "Charisma" is "Charismatic." i.e.
$def =~ s/\b$word\b/ <a href=$me\?word=$word>$entry[0]<\/a>/i;

Gary Blackburn
Trained Killer