Added a port of the word filter.