3.3.0 • Published 2 years ago

spanish-adjectives v3.3.0

Weekly downloads
144
License
Apache-2.0
Repository
-
Last release
2 years 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

2 years ago

3.2.2

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

2.4.0

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.3.1

2 years ago

3.1.0

2 years ago

2.2.6

3 years ago

2.2.3

3 years ago

2.2.5

3 years ago

2.2.4

3 years ago

2.2.1

3 years ago

2.2.2

3 years ago

2.1.2

4 years ago

2.0.3

4 years ago

2.2.0

3 years ago

2.1.1

4 years ago

2.0.4

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.7

5 years ago

0.2.8

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago