Skip to content

openderock/lemmas-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All Words Forms Of Top 5000 Lemmas

Extracted from https://www.wordfrequency.info/

Features

  • More than 4600 lemmas
  • More than 10,000 word froms
  • Provided in JS, JSON, CSV & SQL formats
  • Unique words
  • Cleaned words & lemmas

Install

npm i "@derock.ir/lemmas-forms"

Usage

// eslint-disable-next-line @typescript-eslint/no-var-requires
const lemmasForms = require('@derock.ir/lemmas-forms/dist/5000-lemmas-forms.json');

export const lexicon = new Map<
  string,
  {
    rank: number;
    lemma: string;
    pos: string;
    lemFreq: number;
    wordFreq: number;
  }
>();

lemmasForms.forEach(([rank, lemma, pos, lemFreq, wordFreq, word]) =>
  lexicon.set(word, { rank, pos, lemFreq, wordFreq, lemma }),
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published