Petrovich.NET is .NET implementation library of Petrovich ruby gem, which inflects Russian names to given grammatical case.
Reference Petrovich.NET dll in your project.
You also need to copy rules.yml
to folder with Petrovich.NET dll.
Use Visual Studio 2012 or newer to build solution.
Allow NuGet to download missing packages
should be turned on in package manager.
var p = new Petrovich();
Console.WriteLine(p.Lastname("Иванов", CASES.Dative));
Console.WriteLine(p.Firstname("Иван", CASES.Dative));
Console.WriteLine(p.Middlename("Иванович", CASES.Dative))
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
You can also support project by reporting issues or suggesting new features and improvements.