> First, effective writing will almost always restate the main idea somehow; you'll want your algorithm to be more sophisticated than "demote content that seems to repeat itself."
You very much not want it repeated the way it repeats now. Effective writing does not involve writing three similar paragraphs, it makes readers skip those paragraphs.