From 60718dce48a9855c499fb05e4221877db8e9dab1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 13 Aug 2018 18:20:01 +0900 Subject: [PATCH] :v: --- src/modules/keyword/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/keyword/index.ts b/src/modules/keyword/index.ts index f0859c6..8c0fd78 100644 --- a/src/modules/keyword/index.ts +++ b/src/modules/keyword/index.ts @@ -29,7 +29,7 @@ export default class KeywordModule implements IModule { await Promise.all(interestedNotes.map(note => new Promise((res, rej) => { this.tokenizer.parse(note.text, (err, tokens) => { - const keywordsInThisNote = tokens.filter(token => token[2] == '固有名詞'); + const keywordsInThisNote = tokens.filter(token => token[2] == '固有名詞' && keyword[8] != null); keywords = keywords.concat(keywordsInThisNote); res(); });