Duplicate chunks waste context. Write `dedupe(chunks)` that keeps the first of any chunks that are identical after lower-casing and collapsing whitespace, preserving order.
key = " ".join(c.lower().split()). Keep a set of keys you have seen.