Open-source JavaScript library for declension of Ukrainian personal names
Grammatical Case | Family Name (Last Name) | Given Name (First Name) | Patronymic Name | |
---|---|---|---|---|
Nominative | Шевченко | Тарас | Григорович | |
Genitive | Шевченка | Тараса | Григоровича | |
Dative | Шевченку | Тарасу | Григоровичу | |
Accusative | Шевченка | Тараса | Григоровича | |
Ablative | Шевченком | Тарасом | Григоровичем | |
Locative | Шевченкові | Тарасові | Григоровичу | |
Vocative | Шевченку | Тарасе | Григоровичу |
npm install --save shevchenko
const shevchenko = require("shevchenko");
<script type="text/javascript" src="https://unpkg.com/shevchenko"></script>
const shevchenko = require('shevchenko'); async function main() { const input = { gender: 'masculine', givenName: 'Тарас', patronymicName: 'Григорович', familyName: 'Шевченко' }; const output = await shevchenko.inVocative(input); console.log(output); // { givenName: "Тарасе", patronymicName: "Григоровичу", familyName: "Шевченку" } } main().catch((error) => console.error(error));