Component

RedundancyCuller

It keeps the first occurrence of each word, removes later case-insensitive repeats from the visible sentence and records the discarded words in a real drawer. Restoring repetitions returns the original label.

Possible use

It could let a reviewer cull repeated words from a handoff sentence, or let a presenter strip an agenda line down to its first mention of every term. Removing repetition also removes emphasis that may have been intentional.

Reasonable alternative

A reasonable local alternative is editing the copy deliberately or leaving repetition intact. A reusable culler should not decide that recurring language is waste.

01 / Preview

Try it yourself.

Preview Interactive
Redundancy culler6 words intact

Review the review before the review

Duplicates are currently tolerated.
Repeated words remain in their original places.
Mechanism
1
Start with a sentence that tolerates repetition.
2
Cull later repeats from the actual visible sentence.
3
Open the drawer to inspect what was removed, then restore it.

02 / Usage

Put it somewhere.

example.tsxTSX
import { RedundancyCuller } from "gra-ui";
import "gra-ui/styles.css";

export function CullableNotice() {
  return <RedundancyCuller label="Review the review before the review" />;
}

03 / API

Small surface area.

PropTypeDescription
labelstringThe sentence whose repeated words can be removed and listed.