@kuzulabz/react-native-nitro-mecab
v0.1.0
Published
A Mecab React Native library built with Nitro!
Maintainers
Readme
react-native-nitro-mecab
A Mecab react native package built with Nitro for Android and iOS.
Web support soon?
Requirements
- React Native v0.76.0 or higher
- Node 18.0.0 or higher
Installation
bun add @kuzulabz/react-native-nitro-mecab react-native-nitro-modulesUsage
Checkout the documentation site for the full API.
import { Mecab } from '@kuzulabz/react-native-nitro-mecab';
// 1. Initialize
await Mecab.initialize('file:///path/to/dict/directory', 'ipadic');
// 2. Parse!
// Tokenize
const tokens = Mecab.tokenize(text);
tokens[0].surface
// Segment
const words = Mecab.wakati(text);Credits
Using shogo82148's fork of Mecab.
Bootstrapped with create-nitro-module.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
