1.0.1 • Published 4 years ago

vocative v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vocative

NPM package repository for name-case switching JS algorithm.

Usage

First, import necessary case switching methods:

import { getGenitive, getVocative } from 'vocative'

Then, when needed, call the necessary method and pass the name in nominative:

let vocativeOfTheName = getVocative("Ivan"); // Will return "Ivane"

There are six available methods, all with the same interface:

getGenitive("Ivan"); // Will return "Ivana"
getDative("Ivan"); // Will return "Ivanu"
getAccusative("Ivan"); // Will return "Ivana"
getVocative("Ivan"); // Will return "Ivane"
getInstrumental("Ivan"); // Will return "Ivanom"
getLocative("Ivan"); // Will return "Ivanu"
1.0.1

4 years ago

1.0.0

4 years ago

2.0.0

10 years ago