Crates.io | deinflect |
lib.rs | deinflect |
version | 0.1.4 |
source | src |
created_at | 2023-11-07 23:43:05.284903 |
updated_at | 2023-11-08 05:26:33.619718 |
description | japanese deinflection |
homepage | |
repository | https://github.com/chronicl/deinflect |
max_upload_size | |
id | 1028556 |
size | 259,801 |
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.