Skip to content
All references

Writing reference

List Comparison & Link Cleaning

Understand list intersection, differences, duplicate handling and URL cleaning before combining pasted datasets.

9 of 9 entries

Set operations

Intersection

A: apple, pear
B: pear, plum
In both: pear

Intersection keeps items appearing in both inputs. List position does not affect membership.

Set operations

Directional difference

A: apple, pear
B: pear, plum
A only: apple
B only: plum

A minus B differs from B minus A. Choose the direction that matches the question, such as identifiers missing from the second export.

Set operations

Symmetric difference

A: apple, pear
B: pear, plum
In either but not both: apple, plum

The symmetric difference combines the two directional differences and excludes shared entries.

Set operations

Union

A: apple, pear
B: pear, plum
Combined: apple, pear, plum

Union combines membership without duplicates. The comparer preserves the first occurrence from A, followed by new entries from B.

Matching

Normalize carefully

“ Apple ” and “apple”
can match after trimming and ignoring case.

Normalization changes what counts as equal. Turn it off when surrounding spaces or letter case carry meaning. Case-insensitive comparison is not the same as language-specific collation or Unicode normalization.

Matching

Membership versus line-by-line edits

List comparison: which items exist?
Text diff: what changed at each position?

Use List Comparer for membership and Diff Checker for source edits or reordered paragraphs. Deduplication loses counts, so keep the original if repeated occurrences matter.

URLs

Tracking fields versus functional parameters

?id=42&utm_source=email → ?id=42

Campaign fields can be removed without intending to change the main destination. Other parameters may select products, authorize requests or carry required state, so the cleaner leaves them alone.

URLs

Cleaning can create duplicates

/guide?utm_source=a
/guide?utm_source=b
→ one /guide URL

Deduplicate after removing the selected tracking fields when your goal is a unique destination list. This deliberately discards attribution differences.

URLs

Extraction does not verify safety

Text → URL list
No link is opened automatically.

A syntactically valid URL can still be unsafe, broken or redirect elsewhere. Review destinations before opening them; the extractor neither visits pages nor verifies their contents.