bunpo

Crates.iobunpo
lib.rsbunpo
version0.1.1
created_at2025-10-24 11:33:51.726663+00
updated_at2025-10-24 11:33:51.726663+00
descriptionLightweight Japanese conjugation reversal (deinflection) system
homepagehttps://github.com/theGlenn/jmdict-fst
repositoryhttps://github.com/theGlenn/jmdict-fst
max_upload_size
id1898317
size122,221
Glenn Sonna (theGlenn)

documentation

https://docs.rs/bunpo

README

bunpo

Lightweight Japanese conjugation reversal (deinflection) system.

Note: This crate is part of the jmdict-fst monorepo but can be used independently.

Features

  • Fast rule-based deinflection
  • Supports verbs, adjectives, and copula
  • No external dependencies
  • Pure Rust implementation

Example

use bunpo::deinflector::Deinflector;

let deinflector = Deinflector::new();
let results = deinflector.deinflect("食べます");

for candidate in results {
    println!("{}: {}", candidate.word, candidate.reason);
}

Installation

[dependencies]
bunpo = "0.1.1"

Documentation

See DEINFLECTOR.md for detailed usage and rules.

License

MIT

Commit count: 0

cargo fmt