5.3.0 • Published 7 months ago

lefff-helper v5.3.0

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

lefff-helper

The Lefff (Lexique des Formes Fléchies du Français) is a large-scale morphological and syntactic lexicon for French, distributed under the free LGPL-LR licence (Lesser General Public License For Linguistic Resources).

lefff-helper very simple Node.js module that contains:

  • json files derived from Lefff
  • a helper class to get data from these json files

The derived json files remains under LGPLLR.

Installation

npm install lefff-helper

Usage

var LefffHelper = require('lefff-helper').LefffHelper;

var lh = new LefffHelper();

// oeil
console.log( lh.getNoun("yeux") );

// beau
console.log( lh.getAdj("bel") );

The json files are created from the Lefff via the createDb script.

Current helpers:

  • getAdj takes a flex form (string) of an adjective and returns its root. bel => beau. null when not found. When the adjective is a past participle like embarrassée, the returned root is not the real lemma of the leff (would be embarrasser) but the masculine singular form (here embarrassé).
  • getNoun takes a flex form (string) of a noun and returns its root. yeux => oeil. null when not found.

Todo

Manage exceptions, as the Lefff often contain many roots for one plural, like:

chevaux	nc	cheval	mp
chevaux	nc	chevau	mp
chevaux	nc	chevaux	mp

The best choice is cheval / chevaux, but there is no clear information in the Lefff about the most frequent alternative.

dependencies and licences

Derived json files content under LGPLLR.

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

4.3.1

1 year ago

4.3.0

1 year ago

5.1.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.0

4 years ago

2.12.1

4 years ago

2.12.2

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

5 years ago