vocative

1.0.1 • Public • Published

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"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    6
  • 1.0.0
    0

Package Sidebar

Install

npm i vocative

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

10.2 kB

Total Files

4

Last publish

Collaborators

  • kockarevicivan