1.0.4 • Published 4 years ago

yasashii v1.0.4

Weekly downloads
8
License
MIT
Repository
-
Last release
4 years ago

Yasashii

A package for Japanese conjugations!

This package uses unofficial-jisho-api under the hood to determine what type of conjugation to perform.

Installation

In a Node.js project:

npm install yasashii

Usage

const { conjugate } = require('yasashii');

const getConjugation = async (verb) => {
    const response = await conjugate(verb);
    console.log(response);
};

getConjugation('見る');

This outputs the following:

{
  found: true,
  conjugations: {
    polite: { affirmative: [Object], negative: [Object] },
    casual: { affirmative: [Object], negative: [Object] },
    te: { affirmative: '見て', negative: '見なくて' },
    potential: { affirmative: '見られる', negative: '見られない' },
    passive: { affirmative: '見られる', negative: '見られない' },
    causative: { affirmative: '見させる', negative: '見させない' },
    causativePassive: { affirmative: '見させられる', negative: '見させられない' },
    imperative: { affirmative: '見ろ', negative: '見るな' }
  }
}

Adjective conjugation coming soon !

Mady by Zyleaf with 💖

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago