3.0.0 • Published 9 days ago

@umatch/pluralize-ptbr v3.0.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
9 days ago

Pluralize-ptbr

Get the plural form of portuguese words (forked from https://www.npmjs.com/package/pluralize-ptbr)

$ npm install @umatch/pluralize-ptbr
const plural = require("./index");

console.log(plural('mão'));      // 'mãos'
console.log(plural('MaMão', 3)); // '3 MaMões'
console.log(plural('bola', 0))   // '0 bolas'
console.log(plural('bola', 0.5)) // '0.5 bola'
console.log(plural('bola', 1))   // '1 bola'

Partially implemented rules

  • Rules that depend on the stress of the syllables (e.g. for paroxytone words).
  • Rules for compound nouns (e.g. cana-de-açúcar => canas-de-açúcar).

Pending rules

  • Rules for words ending in 'ão'
3.0.0

9 days ago

2.1.0

10 months ago

2.0.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago