Skip to content

Commit 9c5b1fe

Browse files
A fix for "Do"
1 parent 4df0178 commit 9c5b1fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

static/js/pos-core-analyzer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,14 @@ const posAnalyzer = {
9090
return;
9191
}
9292

93-
if (tags.includes('QuestionWord') || this.questionWords.pronouns.includes(word) || this.questionWords.adverbs.includes(word)) {
93+
if (tags.includes('QuestionWord')) {
9494
if (this.questionWords.pronouns.includes(word)) {
9595
addToCategory('pronoun', word);
96+
return;
9697
} else if (this.questionWords.adverbs.includes(word)) {
9798
addToCategory('adverb', word);
99+
return;
98100
}
99-
return;
100101
}
101102

102103
if (tags.some(tag => [

0 commit comments

Comments
 (0)