Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Name Flection in Polish language: genitive helper

License

Notifications You must be signed in to change notification settings

taurit/Taurit.Libraries.PolishNameFlection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name Flection in Polish language

Usage example

IPolishNameFlectionHelper helper = new PolishNameFlectionHelper();

string nameInGenitive1 = helper.GetFirstName("Wiktoria Weronika", Case.Genitive);
// -> Wiktorii Weroniki

string nameInGenitive2 = helper.GetFirstName("Hugo", Case.Genitive);
// -> Hugona

string secondNameInGenitive1 = helper.GetFamilyName("Lewandowska", Gender.Female, Case.Genitive);
// -> Lewandowskiej

string secondNameInGenitive2 = helper.GetFamilyName("Lewandowski", Gender.Male, Case.Genitive);
// -> Lewandowskiego

Please note, that the only currently supported transformation is from nominative form to genitive form.

About this project

This project consists of:

  • a helper class to change a nominative form of someone's full name to a different grammar case
  • a set of tests in xunit to cover a lot of regular cases and grammar exceptions
  • a database of grammar exceptions to support library

Target platforms

This project is distributed as a cross-platform class library written in .NET. You can find ready-to-use builds in NuGet repositories.

It attempts to have as little dependencies as possible and run on platforms compatible with .NET Standard 1.0 contract set. .NET Framework 4.0 and .NET Framework 3.5 are also supported.

About

Name Flection in Polish language: genitive helper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages