5.3.0 • Published 7 months ago

italian-adjectives v5.3.0

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

italian-adjectives

Agreement of Italian adjectives, based on the gender and number of the word.

Manages irregular adjectives (bello buono grande santo) when placed before the noun.

Use italian-adjectives-dict as linguistic resource.

Installation

npm install italian-adjectives

Usage

const ItalianAdjectives = require('italian-adjectives');
const ItalianAdjectivesList = require('italian-adjectives-dict/dist/adjectives.json');

// azzurre
console.log(ItalianAdjectives.agreeItalianAdjective(null, ItalianAdjectivesList, 'azzurro', 'F', 'P'));

// Sant'
console.log(ItalianAdjectives.agreeItalianAdjective(null, ItalianAdjectivesList, 'Santo', 'F', 'S', 'Anna', true));

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

  • exception data that overrides adjective data (usually just put null)
  • adjective data (linguistic resource), see italian-adjectives-dict
  • adjective: the adjective to agree; it must be the lemma, not the agreed form (i.e. azzurro not azzurre); when participe put the masculine singular (educato MP => educati)
  • gender gender of the word; M F or N
  • number: number of the word; S or P
  • noun: if isBeforeNoun is true and the adjective is irregular, you must indicate the noun
  • isBeforeNoun: put true if the adjective is meant to be placed before the noun; default is false

getAdjectiveInfo to get raw data about an adjective.

Possessive articles (mio tio etc.) are supported (and you do not need to put isBeforeNoun to true).

5.3.0

7 months ago

5.2.2

9 months ago

5.2.1

9 months ago

5.2.0

10 months ago

4.4.0

1 year ago

5.0.0

1 year ago

5.1.0

1 year ago

4.3.1

1 year ago

4.3.0

1 year ago

4.2.6

2 years ago

4.2.3

2 years ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.2

2 years ago

4.2.1

2 years ago

4.0.4

2 years ago

4.0.3

2 years ago

4.2.0

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.9

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.20.2

3 years ago

2.20.1

3 years ago

2.20.0

3 years ago

2.19.0

4 years ago

2.18.1

4 years ago

2.18.0

4 years ago

2.17.2

4 years ago

2.17.1

4 years ago

2.17.0

4 years ago

2.16.10

4 years ago

2.16.9

4 years ago

2.16.7

4 years ago

2.16.8

4 years ago

2.16.6

4 years ago

2.16.5

4 years ago

2.16.4

4 years ago

2.16.3

4 years ago

2.16.2

4 years ago

2.16.1

4 years ago

2.16.0

4 years ago

2.15.4

4 years ago

2.15.3

4 years ago

2.15.2

4 years ago

2.15.1

4 years ago

2.15.0

4 years ago

2.14.3

4 years ago

2.14.2

4 years ago

2.14.1

4 years ago

2.14.0

4 years ago

2.13.0

4 years ago

2.12.3

4 years ago

2.12.2

4 years ago

2.12.0

4 years ago

2.12.1

4 years ago

2.11.0

4 years ago

2.10.2

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.3

4 years ago

2.8.2

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

2.6.2

4 years ago

2.6.0

4 years ago

2.5.8

4 years ago

2.5.7

4 years ago

2.5.6

4 years ago

2.5.5

4 years ago

2.5.4

4 years ago

2.5.3

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.6

5 years ago