5 releases

0.1.4 Nov 8, 2023
0.1.3 Nov 7, 2023
0.1.2 Nov 7, 2023
0.1.1 Nov 7, 2023
0.1.0 Nov 7, 2023

#124 in Internationalization (i18n)

GPL-3.0 license

220KB
6K SLoC

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.


lib.rs:

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 yomichan's japanese deinflector.

Dependencies

~105–325KB