{"id":19119603,"url":"https://github.com/hexenq/kuroshiro-analyzer-mecab","last_synced_at":"2025-10-23T23:59:05.479Z","repository":{"id":93944224,"uuid":"138361520","full_name":"hexenq/kuroshiro-analyzer-mecab","owner":"hexenq","description":"Mecab morphological analyzer for kuroshiro.","archived":false,"fork":false,"pushed_at":"2018-08-15T07:01:07.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T10:08:22.230Z","etag":null,"topics":["analyzer","hiragana","japanese","kanji","katakana","kuroshiro","language","mecab","morphology","romaji"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexenq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-23T01:21:02.000Z","updated_at":"2025-01-10T06:05:12.000Z","dependencies_parsed_at":"2023-05-05T23:45:19.972Z","dependency_job_id":null,"html_url":"https://github.com/hexenq/kuroshiro-analyzer-mecab","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"a8d038812ef96699c0b0965de8de483b749bb554"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexenq%2Fkuroshiro-analyzer-mecab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexenq%2Fkuroshiro-analyzer-mecab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexenq%2Fkuroshiro-analyzer-mecab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexenq%2Fkuroshiro-analyzer-mecab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexenq","download_url":"https://codeload.github.com/hexenq/kuroshiro-analyzer-mecab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252516096,"owners_count":21760725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyzer","hiragana","japanese","kanji","katakana","kuroshiro","language","mecab","morphology","romaji"],"created_at":"2024-11-09T05:10:06.170Z","updated_at":"2025-10-23T23:59:05.379Z","avatar_url":"https://github.com/hexenq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kuroshiro-analyzer-mecab\n \n[![Build Status](https://travis-ci.com/hexenq/kuroshiro-analyzer-mecab.svg?branch=master)](https://travis-ci.org/hexenq/kuroshiro-analyzer-mecab)\n[![npm version](https://badge.fury.io/js/kuroshiro-analyzer-mecab.svg)](http://badge.fury.io/js/kuroshiro-analyzer-mecab)\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003ePackage\u003c/td\u003e\n        \u003ctd colspan=2\u003ekuroshiro-analyzer-mecab\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eDescription\u003c/td\u003e\n        \u003ctd colspan=2\u003emecab morphological analyzer for \u003ca href=\"https://github.com/hexenq/kuroshiro\"\u003ekuroshiro\u003c/a\u003e.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd rowspan=2\u003eCompatibility\u003c/td\u003e\n        \u003ctd\u003eNode\u003c/td\u003e\n        \u003ctd\u003e✓ (\u003e=6)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eBrowser\u003c/td\u003e\n        \u003ctd\u003e✗\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Pre-requisite\nYou should have `mecab` and corresponding dictionary installed in your environment. And make sure that your have added `mecab` command to your `$PATH` environment variable. This analyzer will invoke `mecab` from command line when parsing.\n\nFor install instructions of `mecab`, you could check the official website of mecab from [here](http://taku910.github.io/mecab/#install).\n\n## Install\n```sh\n$ npm install kuroshiro-analyzer-mecab\n```\n\n## Usage with kuroshiro\n### Configure analyzer\nThis analyzer utilizes [mecab](http://taku910.github.io/mecab/) morphological analyzer. \n\nThe [mecab-ipadic-neologd](https://github.com/neologd/mecab-ipadic-neologd) dictionary is recommanded which includes many neologisms (new word) and periodically updated.\n\n```js\nimport MecabAnalyzer from \"kuroshiro-analyzer-mecab\";\n\nconst analyzer = new MecabAnalyzer();\n\nawait kuroshiro.init(analyzer);\n```\n\n### Initialization Parameters\n__Example:__\n```js\nconst analyzer = new MecabAnalyzer({\n    dictPath: \"/usr/lib/mecab/dic/mecab-ipadic-neologd/\",\n    execOptions: {\n        maxBuffer: 200 * 1024,\n        timeout: 0\n    }\n});\n```\n- `command`: *Optional* mecab command (may have arguments). If set, the param `dictPath` is ignored\n- `dictPath`: *Optional* Path of the dictionary mecab used\n- `execOptions`: *Optional* The exec options to run mecab command. Example as below:\n```js\n{\n    // Largest amount of data in bytes allowed on stdout or stderr. see https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback.\n    maxBuffer: 200 * 1024,\n\n    // Timeout. see https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback.\n    timeout: 0\n}\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexenq%2Fkuroshiro-analyzer-mecab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexenq%2Fkuroshiro-analyzer-mecab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexenq%2Fkuroshiro-analyzer-mecab/lists"}