Skip to content

Simple iOS/macOS library for cyrillic names declension written in swift

License

Notifications You must be signed in to change notification settings

sdanny/petrovich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Petrovich

Simple iOS/macOS library for russian names declension written in swift. Original idea and many features was taken from popular Ruby repository.

#Installation Petrovich is available through CocoaPods. Just add in your podfile:

	pod 'petrovich'

and import the module in .swift-file:

	import petrovich

#Usage

    let petrovich = Petrovich.shared
    let firstname = petrovich.firstname("Иван", gender: .male, declension: .dative) // Ивану
    let lastname = petrovich.lastname("Григорьев-Апполонов", gender: .male: declension: .instrumental) // Григорьевым-Апполоновым

Maintainers

License

Petrovich is available under the MIT license. See the LICENSE file for more info.

About

Simple iOS/macOS library for cyrillic names declension written in swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published