5 个版本
0.1.4 | 2023 年 11 月 8 日 |
---|---|
0.1.3 | 2023 年 11 月 7 日 |
0.1.2 | 2023 年 11 月 7 日 |
0.1.1 | 2023 年 11 月 7 日 |
0.1.0 | 2023 年 11 月 7 日 |
#81 在 国际化 (i18n)
220KB
6K SLoC
快速日语去词尾变化。
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);
}
}
这个库基于 yomichan 日语去词尾变化器。
lib.rs
:
快速日语去词尾变化。
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);
}
}
这个库基于 yomichan 的日语去词尾变化器。
依赖项
~110–330KB