From 12a2d1bd065e9d8b7f118761f46a6459fc1e21a0 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 7 Sep 2023 15:08:37 +0200 Subject: [PATCH] Fix types --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index ba6563e..c29de9a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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' &&