allow custom word boundaries (matching end of sentences)