added some stuff for debugging average-word-length based filters