Skip to content

Commit

Permalink
Merge pull request #123 from NatLibFi/EKIR-206-Missing-Bisac-rules
Browse files Browse the repository at this point in the history
EKIR-206 Add rules for missing Bisac subjects
  • Loading branch information
natlibfi-kaisa authored Jan 17, 2025
2 parents 80c1ec5 + aef09f2 commit b95c948
Show file tree
Hide file tree
Showing 2 changed files with 958 additions and 0 deletions.
71 changes: 71 additions & 0 deletions core/classifier/bisac.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ class BISACClassifier(Classifier):
m(Horror, fiction, "Vampires"),
m(Horror, fiction, "Werewolves & Shifters"),
m(Horror, fiction, "Zombies"),
m(Humorous_Fiction, fiction, "Absurdist"),
m(Humorous_Fiction, fiction, "Humorous Stories"),
m(Humorous_Nonfiction, "Young Adult Nonfiction", "Humor"),
m(Law, nonfiction, "Law & Crime"),
Expand Down Expand Up @@ -597,6 +598,76 @@ class BISACClassifier(Classifier):
# well for now.
# For nonfiction, "Social Topics" covers both Juvenile and YA.
m(Life_Strategies, nonfiction, social_topics),
m(General_Fiction, fiction, "Adaptations & Pastiche"),
m(General_Fiction, fiction, "African American & Black"),
m(General_Fiction, fiction, "Amish & Mennonite"),
m(General_Fiction, fiction, "Animals"),
m(General_Fiction, fiction, "Asian American & Pacific Islander"),
m(General_Fiction, fiction, "Biographical"),
m(General_Fiction, fiction, "Buddhist"),
m(Urban_Fiction, fiction, "City Life"),
m(General_Fiction, fiction, "Coming of Age"),
m(Folklore, fiction, "Cultural Heritage"),
m(General_Fiction, fiction, "Disabilities"),
m(General_Fiction, fiction, "Disaster"),
m(General_Fiction, fiction, "Diversity & Multicultural"),
m(General_Fiction, fiction, "Epistolary"),
m(General_Fiction, fiction, "Family Life"),
m(General_Fiction, fiction, "Feminist"),
m(General_Fiction, fiction, "Friendship"),
m(Urban_Fiction, fiction, "Hispanic & Latino", "Urban & Street Lit"),
m(General_Fiction, fiction, "Hispanic & Latino"),
m(General_Fiction, fiction, "Holidays"),
m(General_Fiction, fiction, "Immigration"),
m(Urban_Fiction, fiction, "Indigenous", "City Life"),
m(Science_Fiction, fiction, "Indigenous", "Indigenous Futurism"),
m(Folklore, fiction, "Indigenous", "Oral Storytelling & Teachings"),
m(General_Fiction, fiction, "Indigenous"),
m(General_Fiction, fiction, "Indigenous Peoples of Turtle Island"),
m(General_Fiction, fiction, "Legal"),
m(General_Fiction, fiction, "Mashups"),
m(General_Fiction, fiction, "Media Tie-In"),
m(General_Fiction, fiction, "Medical"),
m(General_Fiction, fiction, "Middle Eastern & Arab American"),
m(General_Fiction, fiction, "Multiple Timelines"),
m(General_Fiction, fiction, "Muslim"),
m(General_Fiction, fiction, "Native American"),
m(General_Fiction, fiction, "Nature & the Environment"),
m(General_Fiction, fiction, "Neurodiversity"),
m(General_Fiction, fiction, "Own Voices"),
m(General_Fiction, fiction, "Performing Arts"),
m(General_Fiction, fiction, "Political"),
m(General_Fiction, fiction, "Psychological"),
m(General_Fiction, fiction, "Small Town & Rural"),
m(General_Fiction, fiction, "Southern"),
m(General_Fiction, fiction, "Sports"),
m(General_Fiction, fiction, "Suburban"),
m(Urban_Fiction, fiction, "Urban & Street Lit"),
m(General_Fiction, fiction, "Women"),
m(
Historical_Fiction,
fiction,
"World Literature",
something,
"Colonial & Revolutionary Periods",
),
m(
Historical_Fiction,
fiction,
"World Literature",
something,
"Colonial & 19th Century",
),
m(
Historical_Fiction,
fiction,
"World Literature",
something,
"16th & 17th Century",
),
m(Historical_Fiction, fiction, "World Literature", something, "18th Century"),
m(Historical_Fiction, fiction, "World Literature", something, "19th Century"),
m(General_Fiction, fiction, "World Literature"),
]

@classmethod
Expand Down
Loading

0 comments on commit b95c948

Please sign in to comment.