Now detects repeated terms

Typing CAT CAT CAT!!! no longer works.