It catches duplicates of, e.g., "it its", but it doesn't catch "a an" and it should