greek-name-declension
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

greek-name-declension

npm

No longer refer to greek users with the wrong name declension. Greet your users with 🇬🇷 filotimo , 🇬🇷 meraki and their correct name form.

Do you wish your scammy emails were more convincing? Then stop misusing your users' names!

BAD
Καλησπέρα Απόστολος!

GOOD
Καλησπέρα Απόστολε!

const { getDeclension } = require( "greek-name-declension");


console.log(getDeclension("Φωφώ"));

/*
{
  nominative: 'Φωφώ',
  possesive: 'Φωφώς',
  accusative: 'Φωφώ',
  vocative: 'Φωφώ'
}
*/

Installation

npm i greek-name-declension

0 DEPS? 0 DEBTS!

Supports

Capitalization 👌

console.log(getDeclension("Αγαμέμνων"));
/*
{
  nominative: "Αγαμέμνων",
  possesive: "Αγαμέμνονος",
  accusative: "Αγαμέμνονα",
  vocative: "Αγαμέμνων",
}
*/

lowercase 👍

console.log(getDeclension("κούλα"));
/*
{
  nominative: "κούλα",
  possesive: "κούλας",
  accusative: "κούλα",
  vocative: "κούλα",
}
*/

UPPERCASE 🤏

console.log(getDeclension("ΒΑΓΓΕΛΑΣ"));
/*
{
  nominative: "ΒΑΓΓΕΛΑΣ",
  possesive: "ΒΑΓΓΕΛΑ",
  accusative: "ΒΑΓΓΕΛΑ",
  vocative: "ΒΑΓΓΕΛΑ",
}
*/

WITHOUT INTONATION ✌️

console.log(getDeclension("Δημητρης"));
/*
{
  nominative: "Δημητρης",
  possesive: "Δημητρη",
  accusative: "Δημητρη",
  vocative: "Δημητρη",
}
*/

ΝΟ DECLENSION? NO PROBLEM 👐

console.log(getDeclension("Δαβίδ"));
/*
{
  nominative: "Δαβίδ",
  possesive: "Δαβίδ",
  accusative: "Δαβίδ",
  vocative: "Δαβίδ",
}
*/

Package Sidebar

Install

npm i greek-name-declension

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

27.6 kB

Total Files

15

Last publish

Collaborators

  • kalovelo