Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 7, 2023
1 parent 2f8cda2 commit 12a2d1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ function important(node) {
return Boolean(
node &&
node.data &&
'partOfSpeech' in node.data &&
typeof node.data.partOfSpeech === 'string' &&
(node.data.partOfSpeech.indexOf('N') === 0 ||
(node.data.partOfSpeech === 'JJ' &&
Expand Down

0 comments on commit 12a2d1b

Please sign in to comment.