@tasye24/tasye-language-tools
TypeScript icon, indicating that this package has built-in type declarations

0.1.1-0 • Public • Published

tasye-languages-tools

logo

GitHub Workflow Status GitHub top language GitHub package.json version GitHub release (latest by date) GitHub tag (latest by date) licence repo size

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 A driana"

We write:

"Le chat d'A driana"

Why use this ?

Using tasye-language-tools is efficient for prevent elisions.

Which languages available for now ?

language pack locale version ready to up ?
French ./pack/fr-FR.yaml fr-FR 0.0.1 🔸 not sure
Italian ./pack/it-IT.yaml it-IT 0.0.1 🔸 not sure

How-to install it ?

  • Unsing unpkg
<script src="https://www.unpkg.com/tasye-language-tools@0.0.1/short-long.min.js"></script>
  • Install-it by cloning with github
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"

Thanks to all Contributors ❤️

Contributors

/@tasye24/tasye-language-tools/

    Package Sidebar

    Install

    npm i @tasye24/tasye-language-tools

    Weekly Downloads

    3

    Version

    0.1.1-0

    License

    ISC

    Unpacked Size

    536 kB

    Total Files

    26

    Last publish

    Collaborators

    • tasye24