Allow specifying a maximum word length.