Gathering detailed insights and metrics for node-lefff
Gathering detailed insights and metrics for node-lefff
Gathering detailed insights and metrics for node-lefff
Gathering detailed insights and metrics for node-lefff
npm install node-lefff
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
LGPL-3.0 License
23 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on May 06, 2021
Latest Version
0.3.1
Package Id
node-lefff@0.3.1
Unpacked Size
15.07 MB
Size
2.81 MB
File Count
10
NPM Version
7.11.1
Node Version
14.15.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
Pure JavaScript implementation of LEFFF lemmatizer.
Part of this readme come from the Python implementation https://github.com/ClaudeCoulombe/FrenchLefffLemmatizer
A French Lemmatizer in JavaScript based on the LEFFF (Lexique des Formes Fléchies du Français / Lexicon of French inflected forms) is a large-scale morphological and syntactic lexicon for French. A lemmatizer returns the lemma or more simply the dictionary entry of a word, In French, the lemmatization of a verb returns this verb to the infinitive and for the other words, the lemmatization returns this word to the masculine singular.
Sagot (2010). The Lefff, a freely available and large-coverage morphological and syntactic lexicon for French. In Proceedings of the 7th international conference on Language Resources and Evaluation (LREC 2010), Istanbul, Turkey. Retrieved from Benoît Sagot Webpage about LEFFF
In this project, we use the morphological lexicon only:
.mlex file which has a simple format in CSV (4 fields separated by \t
)
Tagset format FRMG - from the ALPAGE project since 2004
npm i node-lefff
const nodeLefff = require('node-lefff');
const nl = await nodeLefff.load();
nl.lem('action') // action
nl.lem('acteur') // acteur
nl.lem('actrices') // acteur
nl.lem('Dleyton') // Dleyton
const nodeLefff = require('node-lefff');
const nl = await nodeLefff.load();
const Stemmer = require('natural/lib/natural/stemmers/stemmer_fr');
const LefffLemmer = new Stemmer();
LefffLemmer.stem = nl.lem;
LefffLemmer.tokenizeAndStem('Mes mémés m\'aimaient mais pas papa'); // ['mémé', 'aimer', 'papa']
<String>
: Word<String>
: Lemmatized word, or word itself, if no lemma is known<String>
: WordArray<Object>
: [{
type: String
lemma: String // Lemmatized word
mode: String
}, ...]
Learn more about mode and type here:
String
: mode string returned by nl.infos
Object
: {
indicatif: Bool,
conditionnel: Bool,
impératif: Bool,
subjonctif: Bool,
participe: Bool,
infinitif: Bool,
présent: Bool,
futur: Bool,
imparfait: Bool,
passéSimple: Bool,
passé: Bool,
premièrePersonne: Bool,
deuxièmePersonne: Bool,
troisièmePersonne: Bool,
masculin: Bool,
féminin: Bool,
singulier: Bool,
pluriel: Bool,
}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More