iamnbutler/shelfgoblinPublic

Shelf Goblin โ€” discover LitRPG audiobooks, follow series, and track your library.

Expand subgenre taxonomy and implement CLASSIFY pipeline stage (#36)

- Add 8 new subgenres to taxonomy: tower-climbing, system-apocalypse,
  base-building, time-loop, academy, crafting, monster-mc, wuxia
- Move wuxia from cultivation patterns to its own subgenre
- Change defaultSubgenre from "progression" to null (no fallback)
- Create classifiers/subgenre.ts with multi-signal detection:
  text analysis (title/subtitle/description), Hardcover tag mapping,
  and series inheritance for unclassified books
- Implement CLASSIFY pipeline stage that runs classification on all
  books and logs subgenre distribution stats
- Add setBookSubgenresWithMeta() and getAllBooks() to db helpers
- Expand Hardcover TAG_MAP with mappings for all new subgenres
- Update frontend Subgenre type, labels, and colors for 13 subgenres
- Update config.ts validation to accept null defaultSubgenre
IAiamnbutler authored
f3c0bc2Patch
Parent8be15bb
7 files changed+695-12
StackedSplit
scripts/backend/classifiers/subgenre.ts+278 โˆ’0
scripts/backend/config.ts+6 โˆ’4
scripts/backend/config/subgenres.json+34 โˆ’2
scripts/backend/db/index.ts+280 โˆ’0
scripts/backend/fetchers/hardcover.ts+25 โˆ’1
scripts/backend/pipeline.ts+40 โˆ’2
src/lib/types.ts+32 โˆ’3