Moved valid_word into wnutil.