japanese_word_tokenizer 0.0.3 copy "japanese_word_tokenizer: ^0.0.3" to clipboard
japanese_word_tokenizer: ^0.0.3 copied to clipboard

A lightweight Japanese word tokenizer library for Dart and Flutter based on wakachigaki

Japanese Word Tokenizer #

A lightweight Japanese word tokenizer library for Dart and Flutter based on wakachigaki.

Features #

  • Tokenizes Japanese text into individual words
  • Lightweight and fast
  • Easy to use and integrate into Dart and Flutter projects
  • Based on the wakachigaki tokenizer algorithm by Yushak Inoue

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  japanese_word_tokenizer: ^0.0.3

copied to clipboard

Sample usage

Import the package in your Dart code:

import 'package:japanese_word_tokenizer/japanese_word_tokenizer.dart';
copied to clipboard

In your main.dart

void main() {
  String text = 'ここでテキストを分かち書きします';
  List<dynamic> tokens = tokenize(text);
  print(tokens);
}
copied to clipboard

Sample output

[ここで, テキスト, を, 分か, ち, 書き, します]
copied to clipboard
8
likes
150
points
50
downloads

Publisher

verified publisheradora-app.com

Weekly Downloads

2024.09.23 - 2025.04.07

A lightweight Japanese word tokenizer library for Dart and Flutter based on wakachigaki

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on japanese_word_tokenizer