sudashi-synonyms-parser
Sudachi's synonyms dictionary parser.
Features
- Sudachi's synonyms dictionary to JSON
Install
Install with npm:
npm install sudashi-synonyms-parser
Usage
declare ;declare ;/** * synonyms.txtのコンテンツ(空改行区切りのCSV)からSudachiSynonymsGroupの配列を返します * @param text */declare ;/** * グループのCSVからSudachiSynonymsGroupを返します。。 * csv format * 0 : グループ番号 * 1 : 体言/用言フラグ (省略可) * 2 : 展開制御フラグ (省略可) * 3 : グループ内の語彙番号 (省略可) * 4 : 同一語彙内での語形種別 (省略可) * 5 : 同じ語形の語の中での略語情報 (省略可) * 6 : 同じ語形の語の中での表記揺れ情報 (省略可) * 7 : 分野情報 (省略可) * 8 : 見出し * 9 : 予約 * 10 : 予約 * @param csv * @return SudachiSynonyms[] */declare ;
Example
;const content = fs;const groups = ;assert;
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu
This repository include synonyms.txt that is Apache License.
Copyright (c) 2017 Works Applications Co., Ltd. https://github.com/WorksApplications/SudachiDict/blob/develop/LICENSE-2.0.txt