Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kockarevicivan/vocative
NPM package repository for name-case switching JS algorithm.
https://github.com/kockarevicivan/vocative
js npm vocative vocative-case vokativ
Last synced: about 1 month ago
JSON representation
NPM package repository for name-case switching JS algorithm.
- Host: GitHub
- URL: https://github.com/kockarevicivan/vocative
- Owner: kockarevicivan
- License: mit
- Created: 2019-12-23T10:43:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T11:47:37.000Z (about 5 years ago)
- Last Synced: 2024-11-09T08:42:59.630Z (2 months ago)
- Topics: js, npm, vocative, vocative-case, vokativ
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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"
```