3.3.0 • Published 7 months ago

french-words v3.3.0

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

french-words

Gender of French words: autoroute is feminine, déjeuner is masculine, etc. Use french-words-gender-lefff to add real linguistic resources.

Wrapper over rosaenlg-pluralize-fr to get plurals.

Installation

npm install french-words

Usage

const FrenchWordsLib = require('french-words');
const FrenchWordsLefff = require('french-words-gender-lefff/dist/words.json');

// M
console.log(FrenchWordsLib.getGender(null, FrenchWordsLefff, 'déjeuner'));

// F
console.log(FrenchWordsLib.getGender(null, FrenchWordsLefff, 'Console'));

// genoux
console.log(FrenchWordsLib.getPlural(null, 'genou'));

getGender, with the following parameters:

  • embedded word list: map where key is the word, and has a gender key: {'bague': { gender: 'F' }}
  • OR word list typically french-words-gender-lefff ({'bague':'F', 'blablabla':'F', ...})
  • word at its root form (will find autoroute but not autoroutes)

Case matters: DEA, DESS, DEUG etc.

getNumber, with the following parameters:

  • embedded word list: map where key is the word, and has a plural key: {'bague': { plural: 'bagues' }}; will use rosaenlg-pluralize-fr if not provided
  • word at its root form
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.1

1 year ago

3.1.0

1 year ago

2.3.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.2

2 years ago

2.2.1

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.2.10

4 years ago

0.3.0

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