This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

tasye-language-tools

0.0.1 • Public • Published

tasye-languages-tools

Intro

In some languages like french (idk if others languages have same patterns) before a voyel and a muted "h" you should use an "élision".

That's why instead of getting

"Le chat de Adriana"

We write:

"Le chat d'Adriana"

Why use this ?

Using short-long

How-to install it ?

git clone https://github.com/Tasye24/tasye-languages-tools ./tasye-tools/languages

Usage

  • Example #1
    const prefix = "Le vélo"
    const pretext = {
        long:  prefix + "de", // Le vélo de
        short: prefix + "d'"  // Le vélo d'
    }
    const names = ["John", "Andrea"]
    
    // 1st name (John)
    full_text = take_long_or_short(pretext, names[0])
    // > full_text = "Le vélo de John"
    
    // 2nd name (Andrea)
    full_text = take_long_or_short(pretext, names[1])
    // > full_text = "Le vélo d'Andrea"

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tasye-language-tools

      Weekly Downloads

      0

      Version

      0.0.1

      License

      ISC

      Unpacked Size

      3.85 kB

      Total Files

      6

      Last publish

      Collaborators

      • tasye24