Skip to main content
Home
This package has been archived, and as such it is read-only.

latest
Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Publisheda year ago (0.0.1)

A set of tools for doing conjugation transformations in various languages

function conjugate
conjugate(
chars: string,
options: Options,
): string[]

Given a word and options, return an array of all valid conjugation results.

Examples

Example 1

import conjugate, { ConjugationType, PartOfSpeech } from '@bpev/conjugation/ja'
const result = conjugate('あう', {
  affirmative: true,
  polite: false,
  type: ConjugationType.Past,
  pos: PartOfSpeech.VerbGodan
})
assert(result, ['あった']) // true

Parameters

chars: string
options: Options

Return Type

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";
or

Import directly with a jsr specifier

import conjugate from "jsr:@bpev/conjugation/ja";

Add Package

pnpm i jsr:@bpev/conjugation
or (using pnpm 10.8 or older)
pnpm dlx jsr add @bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";

Add Package

yarn add jsr:@bpev/conjugation
or (using Yarn 4.8 or older)
yarn dlx jsr add @bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";

Add Package

vlt install jsr:@bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";

Add Package

npx jsr add @bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";

Add Package

bunx jsr add @bpev/conjugation

Import symbol

import conjugate from "@bpev/conjugation/ja";