add experimental code for more intelligent word anchoring