deinflect

Crates.iodeinflect
lib.rsdeinflect
version0.1.4
sourcesrc
created_at2023-11-07 23:43:05.284903
updated_at2023-11-08 05:26:33.619718
descriptionjapanese deinflection
homepage
repositoryhttps://github.com/chronicl/deinflect
max_upload_size
id1028556
size259,801
Lennard (chronicl)

documentation

README

Fast japanese deinflection.

use deinflect::Deinflections;

fn main() {
    let deinflections = Deinflections::from_word("聞かれました");
    // iterate over all possible deinflections
    for deinflection in deinflections.iter() {
        // get the deinflected word as a string
        let deinflected = deinflections.to_string(deinflection);
        println!("{}", deinflected);
    }
}

This library is based on the yomichan japanese deinflector.

Commit count: 10

cargo fmt