filter related terms in some vaguely sensible way