{"_id":"@charlescoeder/react-native-kuromoji","_rev":"1-11d99b0d9ccf8314358ce2c653ee2918","name":"@charlescoeder/react-native-kuromoji","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@charlescoeder/react-native-kuromoji","description":"A React Native supported JavaScript implementation of Japanese morphological analyzer","version":"0.2.0","author":{"name":"Takuya Asano","email":"takuya.a@gmail.com"},"contributors":[{"name":"CharlesCoeder","email":"croederdev@gmail.com"}],"browser":{"./src/loader/NodeDictionaryLoader.js":"./src/loader/BrowserDictionaryLoader.js"},"bugs":{"url":"https://github.com/CharlesCoeder/react-native-kuromoji/issues"},"dependencies":{"async":"^2.0.1","doublearray":"0.0.2","expo-file-system":"^15.6.0","react-zlib-js":"^1.0.5","zlibjs":"^0.3.1"},"devDependencies":{"browserify":"^16.1.1","chai":"^4.1.2","coveralls":"^3.0.0","del":"^3.0.0","event-stream":"^3.3.4","gulp":"^3.8.10","gulp-bower":"0.0.14","gulp-bump":"^3.1.0","gulp-conventional-changelog":"^1.1.0","gulp-gh-pages-will":"^0.5.5","gulp-git":"^2.5.2","gulp-gzip":"^1.2.0","gulp-istanbul":"^1.0.0","gulp-jsdoc3":"^1.0.1","gulp-jshint":"^2.1.0","gulp-mocha":"^5.0.0","gulp-webserver":"^0.9.1","jshint":"^2.9.5","mecab-ipadic-seed":"0.0.2","minimist":"^1.2.0","mocha-lcov-reporter":"^1.2.0","run-sequence":"^2.2.1","vinyl-source-stream":"^2.0.0"},"homepage":"https://github.com/CharlesCoeder/react-native-kuromoji","keywords":["japanese","morphological analyzer","nlp","pos","pos tagger","tokenizer"],"license":"Apache-2.0","main":"./src/kuromoji.js","repository":{"type":"git","url":"git+https://github.com/CharlesCoeder/react-native-kuromoji.git"},"scripts":{"build":"gulp build","build-demo":"gulp build-demo","build-dict":"gulp build-dict","clean":"gulp clean","coverage":"gulp coverage","deploy":"gulp deploy","jsdoc":"gulp jsdoc","lint":"gulp lint","release":"gulp release","test":"gulp test","version":"gulp version","watch":"gulp watch","webserver":"gulp webserver"},"_id":"@charlescoeder/react-native-kuromoji@0.2.0","gitHead":"8accce543b977c962e4cf58ad220752b42be67d2","_nodeVersion":"21.4.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-RtDwEgvV2aO7rcVhjYI/Wj0xYrmbp36xI6baKOmUzAZpVDnY1z0RNnHCRB4l5yzVFHd4YTvVSMwyU0pkTzRA/w==","shasum":"7e8c2b69a99b075561c2e9fa628d887ef2512848","tarball":"https://registry.npmjs.org/@charlescoeder/react-native-kuromoji/-/react-native-kuromoji-0.2.0.tgz","fileCount":64,"unpackedSize":41265789,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG50vh+YPDRoU/X6LAF/XMlkqlcLhP08mm48g3z9kBbAIgaW0RPDvOrZSEBf9QPaesI+ZUsq/o6B1SEudQ69+nfEk="}]},"_npmUser":{"name":"charlescoeder","email":"croederdev@gmail.com"},"directories":{},"maintainers":[{"name":"charlescoeder","email":"croederdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-kuromoji_0.2.0_1704696537714_0.3303129081379581"},"_hasShrinkwrap":false},"0.2.1":{"name":"@charlescoeder/react-native-kuromoji","description":"A React Native supported JavaScript implementation of Japanese morphological analyzer","version":"0.2.1","author":{"name":"Takuya Asano","email":"takuya.a@gmail.com"},"contributors":[{"name":"CharlesCoeder","email":"croederdev@gmail.com"}],"browser":{"./src/loader/NodeDictionaryLoader.js":"./src/loader/BrowserDictionaryLoader.js"},"bugs":{"url":"https://github.com/CharlesCoeder/react-native-kuromoji/issues"},"dependencies":{"async":"^2.0.1","doublearray":"0.0.2","expo-file-system":"^15.6.0","pako":"^2.1.0","zlibjs":"^0.3.1"},"devDependencies":{"browserify":"^16.1.1","chai":"^4.1.2","coveralls":"^3.0.0","del":"^3.0.0","event-stream":"^3.3.4","gulp":"^3.8.10","gulp-bower":"0.0.14","gulp-bump":"^3.1.0","gulp-conventional-changelog":"^1.1.0","gulp-gh-pages-will":"^0.5.5","gulp-git":"^2.5.2","gulp-gzip":"^1.2.0","gulp-istanbul":"^1.0.0","gulp-jsdoc3":"^1.0.1","gulp-jshint":"^2.1.0","gulp-mocha":"^5.0.0","gulp-webserver":"^0.9.1","jshint":"^2.9.5","mecab-ipadic-seed":"0.0.2","minimist":"^1.2.0","mocha-lcov-reporter":"^1.2.0","run-sequence":"^2.2.1","vinyl-source-stream":"^2.0.0"},"homepage":"https://github.com/CharlesCoeder/react-native-kuromoji","keywords":["japanese","morphological analyzer","nlp","pos","pos tagger","tokenizer"],"license":"Apache-2.0","main":"./src/kuromoji.js","repository":{"type":"git","url":"git+https://github.com/CharlesCoeder/react-native-kuromoji.git"},"scripts":{"build":"gulp build","build-demo":"gulp build-demo","build-dict":"gulp build-dict","clean":"gulp clean","coverage":"gulp coverage","deploy":"gulp deploy","jsdoc":"gulp jsdoc","lint":"gulp lint","release":"gulp release","test":"gulp test","version":"gulp version","watch":"gulp watch","webserver":"gulp webserver"},"_id":"@charlescoeder/react-native-kuromoji@0.2.1","gitHead":"5d9be0e24813f89bc26a838c98b403e31907c300","_nodeVersion":"21.4.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-a0SDPdvoWYnimn0daCCYU2HrrkAn0nIgM7rl8s76NBCxngUwBlnu8cik4i0RodC8i/qLq3pQNbdfCIHytWvhkA==","shasum":"c6ffb25cb83dbfa2e2a991c6dabe83665a1e8b54","tarball":"https://registry.npmjs.org/@charlescoeder/react-native-kuromoji/-/react-native-kuromoji-0.2.1.tgz","fileCount":64,"unpackedSize":41265629,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIY+ordAH2Ru0BbP8Ky0t4wZGy+3OtK3/G5m2Lay5sYQIgGoScOYAqq0lmR1LfJ1WmAbyPBLPtZFafyehYD+Uvy9k="}]},"_npmUser":{"name":"charlescoeder","email":"croederdev@gmail.com"},"directories":{},"maintainers":[{"name":"charlescoeder","email":"croederdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-kuromoji_0.2.1_1704736320448_0.6047051935982843"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-08T06:48:57.614Z","0.2.0":"2024-01-08T06:48:58.145Z","modified":"2024-01-08T17:52:01.028Z","0.2.1":"2024-01-08T17:52:00.870Z"},"maintainers":[{"name":"charlescoeder","email":"croederdev@gmail.com"}],"description":"A React Native supported JavaScript implementation of Japanese morphological analyzer","homepage":"https://github.com/CharlesCoeder/react-native-kuromoji","keywords":["japanese","morphological analyzer","nlp","pos","pos tagger","tokenizer"],"repository":{"type":"git","url":"git+https://github.com/CharlesCoeder/react-native-kuromoji.git"},"contributors":[{"name":"CharlesCoeder","email":"croederdev@gmail.com"}],"author":{"name":"Takuya Asano","email":"takuya.a@gmail.com"},"bugs":{"url":"https://github.com/CharlesCoeder/react-native-kuromoji/issues"},"license":"Apache-2.0","readme":"kuromoji.js\n===========\n\n[![Build Status](https://travis-ci.org/takuyaa/kuromoji.js.svg?branch=master)](https://travis-ci.org/takuyaa/kuromoji.js)\n[![Coverage Status](https://coveralls.io/repos/github/takuyaa/kuromoji.js/badge.svg?branch=master)](https://coveralls.io/github/takuyaa/kuromoji.js?branch=master)\n[![npm version](https://badge.fury.io/js/kuromoji.svg)](https://badge.fury.io/js/kuromoji)\n[![dependencies](https://david-dm.org/takuyaa/kuromoji.js.svg)](https://david-dm.org/takuyaa/kuromoji.js)\n[![Code Climate](https://codeclimate.com/github/takuyaa/kuromoji.js/badges/gpa.svg)](https://codeclimate.com/github/takuyaa/kuromoji.js)\n[![Downloads](https://img.shields.io/npm/dm/kuromoji.svg)](https://www.npmjs.com/package/kuromoji)\n\nJavaScript implementation of Japanese morphological analyzer.\nThis is a pure JavaScript porting of [Kuromoji](https://www.atilika.com/ja/kuromoji/).\n\nYou can see how kuromoji.js works in [demo site](https://takuyaa.github.io/kuromoji.js/demo/tokenize.html).\n\n\nDirectory\n---------\n\nDirectory tree is as follows:\n\n    build/\n      kuromoji.js -- JavaScript file for browser (Browserified)\n    demo/         -- Demo\n    dict/         -- Dictionaries for tokenizer (gzipped)\n    example/      -- Examples to use in Node.js\n    src/          -- JavaScript source\n    test/         -- Unit test\n\n\nUsage\n-----\n\nYou can tokenize sentences with only 5 lines of code.\nIf you need working examples, you can see the files under the demo or example directory.\n\n\n### Node.js\n\nInstall with npm package manager:\n\n    npm install kuromoji\n\nLoad this library as follows:\n\n    var kuromoji = require(\"kuromoji\");\n\nYou can prepare tokenizer like this:\n\n    kuromoji.builder({ dicPath: \"path/to/dictionary/dir/\" }).build(function (err, tokenizer) {\n        // tokenizer is ready\n        var path = tokenizer.tokenize(\"すもももももももものうち\");\n        console.log(path);\n    });\n\n\n\n### Browser\n\nYou only need the build/kuromoji.js and dict/*.dat.gz files\n\nInstall with Bower package manager:\n\n    bower install kuromoji\n\nOr you can use the kuromoji.js file and dictionary files from the GitHub repository.\n\nIn your HTML:\n\n    <script src=\"url/to/kuromoji.js\"></script>\n\nIn your JavaScript:\n\n    kuromoji.builder({ dicPath: \"/url/to/dictionary/dir/\" }).build(function (err, tokenizer) {\n        // tokenizer is ready\n        var path = tokenizer.tokenize(\"すもももももももものうち\");\n        console.log(path);\n    });\n\n\nAPI\n---\n\nThe function tokenize() returns an JSON array like this:\n\n    [ {\n        word_id: 509800,          // 辞書内での単語ID\n        word_type: 'KNOWN',       // 単語タイプ(辞書に登録されている単語ならKNOWN, 未知語ならUNKNOWN)\n        word_position: 1,         // 単語の開始位置\n        surface_form: '黒文字',    // 表層形\n        pos: '名詞',               // 品詞\n        pos_detail_1: '一般',      // 品詞細分類1\n        pos_detail_2: '*',        // 品詞細分類2\n        pos_detail_3: '*',        // 品詞細分類3\n        conjugated_type: '*',     // 活用型\n        conjugated_form: '*',     // 活用形\n        basic_form: '黒文字',      // 基本形\n        reading: 'クロモジ',       // 読み\n        pronunciation: 'クロモジ'  // 発音\n      } ]\n\n(This is defined in src/util/IpadicFormatter.js)\n\nSee also [JSDoc page](https://takuyaa.github.io/kuromoji.js/jsdoc/) in details.\n","readmeFilename":"README.md"}