make words lengths easily customizable.

also speed up the computation a bit by only checking words which are a
reasonable length.