-
Notifications
You must be signed in to change notification settings - Fork 2.1k
lastgenre: Genre spelling normalization (aliases) #6466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a78c94c
Changelog for #6466 genre aliases
JOJ0 4b9fa31
lastgenre: Genre aliases; Refactoring
JOJ0 e356827
lastgenre: Sync instance var naming
JOJ0 1674b5e
lastgenre: Tests for genre alias normalization
JOJ0 3ce8c9b
lastgenre: Tests for _filter_valid helper,
JOJ0 fda3fef
lastgenre: Genre aliases docs; Tools chapter, More
JOJ0 c51f575
lastgenre: Whitelist/Tree fixes; Default aliases
JOJ0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Ampersands / Delimiters | ||
| drum and bass: | ||
| - d(rum)?[ &n/]*b(ass)? | ||
| r&b: | ||
| - r(hythm)?[ &n/]*b(lues)? | ||
| rock and roll: | ||
| - rock[- ‐'&n/]*roll | ||
|
|
||
| # Hyphenation | ||
| \1-\2: | ||
| - ([ckj])[- ]*(pop) | ||
| - (j)[- ]*(rock) | ||
| - (post)[- ]*(\w+) | ||
| - (g?lo)[- ]*(fi) | ||
| - ([pg])[- ]*(funk) | ||
| - (synth)[- ]*(pop) | ||
| avant-garde: | ||
| - avant[- ]*(garde?)? | ||
|
|
||
| # Adding space | ||
| \1 \2: | ||
| - (nu)[ -]*(disco|jazz|metal|soul) | ||
| - (dark)[ -]*(wave) | ||
| - (blues|folk|indie|gothic|progressive|alternative|punk)[ -]*(rock) | ||
| - (ska)[ -]*(jazz) | ||
| - (synth)[- ]*(funk) | ||
| - (glitch|hip|trip)y?(?:[ -]*hip)?[ -]*(hop) | ||
|
|
||
| # Removing delimiters | ||
| \1\2: | ||
| - (synth)[- ]*(wave) | ||
| - (psy)[ -]*(trance) | ||
| - (chill)[ -]*(out) | ||
|
|
||
| # Old School spellings: old-school death metal, oldschool hip-hop, old-skool-jungle/-hardcore | ||
| old school death metal: | ||
| - old[ -]*(?:school|skool)[ -]+death[ -]*metal | ||
| old school hip hop: | ||
| - old[ -]*(?:school|skool)[ -]+hip[ -]*hop | ||
| old school \1: | ||
| - old[ -]*(?:school|skool)[ -]+(\w+) | ||
|
snejus marked this conversation as resolved.
|
||
|
|
||
| # Terminology / Synonyms | ||
| electronic: | ||
| - electronic music | ||
| world music: | ||
| - world | ||
| downtempo: | ||
| - down[ -]*beat | ||
| shoegaze: | ||
| - shoegaz(e?r?|ing) | ||
| footwork: | ||
| - (chicago )?footwork( music)? | ||
| juke: | ||
| - (chicago )?juke( music| house)? | ||
|
|
||
| # Compound genres | ||
| alternative rock: | ||
| - alt[ -]*rock | ||
| # negative lookahead avoids matching 'gothic metal' | ||
| gothic rock: | ||
| - goth(?!ic)([ -]*rock)? | ||
| # avoids matching 'progressive metal' | ||
| progressive rock: | ||
| - prog([ -]*rock)? | ||
| punk rock: | ||
| - punk | ||
| # psy folk, psych-pop, psychedelic-rock, psychedelic soul, but not psychedelic (standalone) | ||
| psychedelic \1: | ||
| - psy(?:ch(?:edelic)?)?[ -]*(folk|pop|rock|soul) | ||
| dixieland: | ||
| - dixieland[ -]*jazz | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.