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) // Григорьевым-Апполоновым
Petrovich is available under the MIT license. See the LICENSE file for more info.