Crate petrovich [−] [src]
Petrovich is inflects Russian names to given grammatical case. It supports first names, last names and middle names inflections.
Usage
This crate is on crates.io and can be
used by adding petrovich
to the dependencies in your project's Cargo.toml
.
[dependencies]
petrovich = "0.1"
and this to your crate root:
extern crate petrovich;
Examples
extern crate petrovich; use petrovich::*; fn main() { let subject = Petrovich::new(); subject.firstname(Gender::Male, "Саша", Case::Dative).unwrap(); // Саше }
Structs
Petrovich |
Initializes, Stores and applies Rules |
Enums
Case |
Возможные Падежи |
Gender |
Возможные Полы |