Git Product home page Git Product logo

greek-name-declension.js's Introduction

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

greek-name-declension.js's People

Contributors

kalovelo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.