icetemple / npm-rusn

Portable from python package small library for getting russian text with singular and plural forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rusn

ci Coverage Status

Small library without deps for getting russian text with singular and plural forms

Installation

npm install rusn

Usage

import { rusPluralize } from "rusn";

const appleForms = ["яблоко", "яблока", "яблок"];

console.log(rusPluralize(1, appleForms)); // яблоко

console.log(rusPluralize(10, appleForms)); // яблок

About

Portable from python package small library for getting russian text with singular and plural forms

License:MIT License


Languages

Language:JavaScript 88.0%Language:Makefile 12.0%