Skip to content

Kalovelo/greek-name-declension.js

Repository files navigation

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: "Δαβίδ",
}
*/

About

Refer to greek users with meraki, filotimo and the correct declension.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published