3.3.0 • Published 7 months ago

spanish-adjectives v3.3.0

Weekly downloads
144
License
Apache-2.0
Repository
-
Last release
7 months ago

spanish-adjectives

Agreement of Spanish adjectives, based on the gender and number.

Manages a lot of special cases:

  • extensive list of nationalities: francés becomes francesas FP
  • invariable: esmeralda, macho
  • exceptions: joven becomes jóvenes MP
  • apocopes (bueno becomes buen when placed before a M S word)

Installation

npm install spanish-adjectives

Usage

const SpanishAdjectives = require('spanish-adjectives');

// negras
console.log(SpanishAdjectives.agreeAdjective('negro', 'F', 'P'));

// daneses
console.log(SpanishAdjectives.agreeAdjective('danés', 'M', 'P'));

One main function agreeAdjective that takes multiple parameters and return the agreed adjective:

  • adjective: the adjective to agree; it must be the lemma, not the agreed form
  • gender gender of the word; M F
  • number: number of the word; S or P
  • precedesNoun: put true if the adjective will precede the noun; default false; used for apocopes
3.3.0

7 months ago

3.2.2

9 months ago

3.2.1

9 months ago

3.2.0

10 months ago

2.4.0

1 year ago

3.0.0

1 year ago

2.3.0

1 year ago

2.3.1

1 year ago

3.1.0

1 year ago

2.2.6

2 years ago

2.2.3

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.1

2 years ago

2.2.2

2 years ago

2.1.2

2 years ago

2.0.3

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.0.4

2 years ago

2.1.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago