add getWordBoundaries to options.fn object