Use sets for ignored words. fixes #1657