Add abstract class WordFilter