vocative-cz
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Vocalization library for czech vocative case

Names, surnames and both of them together

Can do the hard ones czech names like ""Řehoř" -> "Řehoři" and names consisting of two first name like "Jaroslav Jan" -> "Jaroslave Jane".

Library also support surnames like "Klaus" -> "Klausi".

And both of them together like "Petr Klaus" -> "Petře Klausi".

Installation

You can install the package via pnpm:

pnpm install vocative-cz

or if you are still using npm:

npm install vocative-cz

Usage

import { vocative } from "vocative-cz";

console.log(vocative("Řehoř")); // Řehoři
console.log(vocative("Eva")); // Evo
console.log(vocative("Petr Klaus")); // Petře Klausi
console.log(vocative("Jaroslav Jan")); // Jaroslave Jane

Readme

Keywords

Package Sidebar

Install

npm i vocative-cz

Weekly Downloads

4

Version

1.0.5

License

MIT

Unpacked Size

24.9 kB

Total Files

7

Last publish

Collaborators

  • gaboe