bunpo 0.1.1

Lightweight Japanese conjugation reversal (deinflection) system
Documentation
  • Coverage
  • 22.37%
    17 out of 76 items documented0 out of 13 items with examples
  • Size
  • Source code size: 121.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • theGlenn/jmdict-fst
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • theGlenn

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