Skip to content

Commit

Permalink
feat(parse-comment): add missing audio words (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkmann18 committed Jun 22, 2020
1 parent 3764495 commit 90a84f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tasks/processIssueComment/utils/parse-comment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const nlp = require('compromise')
// Types that are valid (multi words must all be lower case)
const validContributionTypes = [
'a11y',
'audio',
'blog',
'bug',
'business',
Expand Down Expand Up @@ -52,6 +53,7 @@ const contributionTypeMappings = {
dataset: 'data',
datasets: 'data',
designing: 'design',
// TODO Fix this
desigs: 'design',
doc: 'doc',
docs: 'doc',
Expand All @@ -67,13 +69,15 @@ const contributionTypeMappings = {
maintaining: 'maintenance',
management: 'projectManagement',
managing: 'projectManagement',
music: 'audio',
platforms: 'platform',
plugins: 'plugin',
project: 'projectManagement',
projectManaging: 'projectManagement',
questions: 'question',
reviews: 'review',
securing: 'security',
sound: 'audio',
talks: 'talk',
tests: 'test',
testing: 'test',
Expand All @@ -88,6 +92,9 @@ const contributionTypeMappings = {

// Additional terms to match to types (plurals, aliases etc) that are multi word
const contributionTypeMultiWordMapping = {
'audio production': 'audio',
'audio recording': 'audio',
'music production': 'audio',
'data collection': 'data',
'data collections': 'data',
'data set': 'data',
Expand Down

0 comments on commit 90a84f8

Please sign in to comment.