Skip to content

enhancement(citations): expand source-category domain lists (and dedupe engadget.com) #199

Closed

Description

@gkhngyk

Summary

The citation classifier in
web/src/lib/citations/classify.ts
buckets cited domains into source categories (forum, social, review,
institutional, editorial, …) using curated, suffix-matched domain lists.
Broadening these lists directly improves how citations are categorized across
the dashboard — and it's a safe, self-contained change that's perfect for
first-time contributors.

What to do

Extend the domain lists in classify.ts with well-known sites that are commonly
cited by AI engines but currently fall through to other. Good candidates:

  • FORUM_DOMAINS — community / Q&A / discussion sites (e.g. more Stack
    Exchange network sites, regional forums, hobby/industry forums).
  • SOCIAL_DOMAINS — major social / UGC platforms not yet listed.
  • REVIEW_DOMAINS — reputable review/ratings sites.
  • (Optional) INSTITUTIONAL_DOMAINS / EDITORIAL_DOMAINS if you find clear,
    well-known omissions.

Also: small cleanup

engadget.com is currently listed twice in EDITORIAL_DOMAINS (around lines
120 and 145) — please remove the duplicate as part of this PR.

Guidelines

  • Entries are suffix-matched, so add the registrable domain only
    (example.com, not www.example.com or a full URL).
  • Lowercase, no duplicates, and keep each list reasonably grouped/ordered so
    it's easy to scan.
  • Only add well-known, unambiguous sites — when a domain could fit multiple
    categories, pick the one that best reflects how it's primarily cited, and keep
    in mind the classifier's order (forum is checked before social before
    review).
  • No logic changes — this is a data-list update plus the one-line dedupe.

Acceptance

  • New domains added to the appropriate list(s), following the guidelines above.
  • The duplicate engadget.com entry removed.
  • No changes to the classification logic itself.

Activity

  1. added
    enhancement
    good first issue
    on Jun 8, 2026
  2. BharadwajKanneveti commented on Jun 16, 2026

    @BharadwajKanneveti
    Contributor

    Hi @gkhngyk Can I work on this issue?

  3. gkhngyk commented on Jun 17, 2026

    @gkhngyk
    ContributorAuthor

    All yours, @BharadwajKanneveti — assigned. 🎉 The domain lists live in the citation source-category classifier; remember to dedupe engadget.com while you're in there. Ping here if you need any pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions