Limit the maximum length of words that are handled by the bayes filter to avoid excessive memory usage.