updated word stem lookup code to include upper bounds on word length, significantly increased performance when presented with bad data / edge cases, updated version