Editorial pipelines

Why a Ten-Title Window Misses Duplicates

Почему проверка последних десяти заголовков пропускает дубли
Temporary fallback cover; replace in editorial pass.

7 min read · Updated November 29, 2026

A check against the ten most recent titles can look sensible and still miss an older article covering the same subject. The reliable fix is to search the full published history, then run a focused keyword search for every candidate topic before publication.

In an editorial pipeline, duplicate detection is often added as a small pre-publication step: take the proposed title, compare it with the latest ten titles, and stop if one looks similar. This is easy to explain, fast to run, and incomplete by design.

The problem is not only that titles can use different wording. The larger problem is that a fixed window forgets older history. If a recurring topic returns after eleven or one hundred other publications, the check no longer sees the earlier work.

The concrete failure

Imagine a site publishes these titles over time:

  1. How to Detect Repeated Topics in a Content Queue
  2. Several unrelated guides
  3. More unrelated guides
  4. Finding Duplicate Subjects Before Publication

If the second title is proposed after more than ten newer titles have been published, a ten-title check may report no match. The two titles are not identical strings, but both describe detecting repeated subjects before an article goes live. The narrow check misses the relationship because the relevant earlier title has left the window.

This is an example of the failure mode, not a measurement from a production system. The important property is structural: a window of size ten can only inspect ten records. It cannot detect an older match that is outside those records.

Why title-only comparison is weak

A title is a useful signal, but it is a short and flexible summary. Editors can describe the same subject with different verbs, audiences, or levels of detail. For example, “Avoiding Repeated Articles” and “Detecting Topic Collisions in a Publishing Queue” share a subject without sharing many exact words.

A title comparison can therefore fail in two directions:

The check should be treated as a review signal, not as proof that a topic is new. A match means “inspect this history”; no match means only “this search found nothing under its current rules.”

Replace the window with two searches

Use two complementary checks for each proposed topic:

  1. Search the complete history of published titles and article text.
  2. Search the history for the important keywords that describe the candidate topic.

The first step is a full-text search: it looks through the whole searchable body of each historical article, not only the latest titles. The second is a keyword search: it uses a small, deliberate set of terms for the candidate topic.

These searches answer different questions. Full-text search finds direct and near-direct references in older content. Keyword search tests whether the subject vocabulary already appears in the archive, even when titles are phrased differently.

A reproducible baseline

The following example uses a directory of plain-text or Markdown articles. It is intentionally simple: the same logic can later be moved into a database, search index, or publishing tool.

1. Create a history directory

content/
  published/
    2025-01-12-detect-repeated-topics.md
    2025-02-03-content-queue-guide.md
    2025-03-18-editorial-review.md

Keep only content that is actually part of the historical comparison. Drafts should be included only if the editorial policy says that unpublished drafts count as prior work.

2. Search the complete history

rg -n -i \
  -e 'detect repeated topics' \
  -e 'duplicate subject' \
  -e 'topic collision' \
  content/published/

The -i option makes the search case-insensitive. The -n option prints line numbers, which makes the result easier to inspect. Searching the directory rather than a list of recent files is the key change: the search scope is the full available history.

3. Search the candidate topic’s keywords

For a proposed topic about repeated subjects in publishing, choose terms that describe the idea rather than only its draft title. For example:

rg -n -i \
  -e 'duplicate' \
  -e 'repeated topic' \
  -e 'recurring subject' \
  -e 'content history' \
  content/published/

Do not treat the number of matches as a verdict. Open the matching files and decide whether the overlap is substantive. A generic mention of “history” is not enough to reject a topic; several paragraphs explaining the same workflow may be enough to trigger a rewrite, merge, or redirect.

4. Record the decision

A minimal review record can contain the proposed title, the candidate keywords, matching files, and the editorial decision:

Topic: Detect repeated topics before publication
Keywords: duplicate, repeated topic, recurring subject, content history
Matches:
  - content/published/2025-01-12-detect-repeated-topics.md
Decision: revise angle and link to prior guide
Reviewer note: same problem, different implementation detail

The record makes the check repeatable. It also prevents a later reviewer from having to guess which terms were searched or why a similar article was allowed to proceed.

Where this fits before publication

Run the check after a topic has a stable working title and short brief, but before the article is treated as ready for publication. At that point, the editor can still change the angle without wasting the final formatting and distribution work.

A practical sequence is:

  1. Write the proposed topic and a one-sentence promise.
  2. Extract three to six specific keywords from that promise.
  3. Run a full-text search across the entire historical corpus.
  4. Run the keyword search across the same corpus.
  5. Read the strongest matches.
  6. Choose whether to publish, narrow the angle, merge the work, or link to the existing article.

The candidate topic should be evaluated against the article’s intended reader and promise, not just its title. Two articles may share a broad subject but serve different needs. Conversely, two articles may look different while answering the same question.

Verification

Verify the replacement check with a small, controlled fixture before connecting it to an automated workflow:

  1. Create one historical article whose title contains the old wording.
  2. Put at least ten unrelated files between it and the newest file, if testing a window-based implementation.
  3. Create a candidate using different wording for the same subject.
  4. Run the old ten-title check and record what it can see.
  5. Run the full-text and keyword searches against the entire directory.
  6. Inspect whether the historical article is returned and whether the decision record identifies it.

This verifies the search scope and the review procedure. It does not prove that every duplicate will be found. Search quality still depends on the text available, the chosen keywords, normalization rules, and human interpretation.

Failure cases and limitations

Full-history search removes the fixed-window blind spot, but it is not a complete semantic duplicate detector.

For larger archives, an indexed search system can improve speed and ranking. That is an implementation choice, not a reason to keep a ten-title limit. The editorial rule should remain the same: search the complete available history and inspect the evidence behind the result.

The rule to keep

A recent-history window is a convenience filter. It is not a reliable duplicate check. Replace it with full-text history search plus a keyword search for each candidate topic, then keep a short record of the matches and decision.

That change is small enough to reproduce with ordinary command-line tools and strong enough to catch the central failure: an older article cannot be found by a check that no longer includes it.

Continue with the guides or look up related terms in the glossary.

We publish what works for us—and implement the same solutions for your business. We design AI automation, Telegram bots, chats, and AI agents for real-world processes. Discuss your project →