Improved Jeopardy curation.
This commit is contained in:
@@ -17,8 +17,11 @@ async function init() {
|
||||
return {
|
||||
...question,
|
||||
question: question.question.replace(/^'|'$/g, ''),
|
||||
answer: question.answer.replace(/^((the|an|a)\b(?!-)|\(.*\))\s*|\(.*\)$|"|\\/gi, ''),
|
||||
fullAnswer: question.answer,
|
||||
answer: question.answer
|
||||
.replace(/"|\\/g, '') // strip off quotes and backslashes first, to make sure they don't get in the way of stripping off articles from the beginning of a string
|
||||
.replace(/^(the|an|a)\b(?!-)\s*|\(.*\)\s*/gi, '')
|
||||
.trim(),
|
||||
fullAnswer: question.answer.replace(/\\/g, ''),
|
||||
};
|
||||
}));
|
||||
|
||||
|
||||
19694
assets/jeopardy.json
19694
assets/jeopardy.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user