get stemming unknown keywords by using kuromoji.js(ja)
npm install stemming-x-keywordsGet stemming unknown keywords.
kuromoji.jsを使い形態素解析された単語から、
未知の単語をキーワードとして抽出します。
短い技術文章からキーワードらしいものを抽出する目的で実装されています。
技術用語など専門分野の単語は辞書にはないため、word_type: UNKNOWNとなることを利用してそれをキーワードとして取り出します。
npm install stemming-x-keywords
``jsESLintのルールを拡張する仕組みについて解説しています。
import {getKeywords} from "gstemming-x-keywords";
let text =
ESLintではJavaScriptのコードをパースして作成されたASTを元にコードのLintを行います。
実際にESLintのルールを解釈できる小さな実装を作りながらプラグインの仕組みについて学びます。;`
getKeywords(text).then(keywords => {
console.log(keywords);
// [ 'ESLint', 'JavaScript', 'AST', 'Lint', 'プラグインアーキテクチャ' ]
});
npm test
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT