1.0.0 • Published 11 months ago

@languagevocab/swadesh-lists v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Swadesh Lists

Easily incorporate Swadesh vocabulary lists for each language into your project.

Vocabulary has been copied from the Swadesh lists by language on Wiktionary. Just over 40% of languages listed there have been added to this project so far.

Usage

import {
  getLanguageList,
  getWordDetails,
  getWordProperties,
  Language,
  WordDetails,
  WORD_LIST_SIZE,
} from "@languagevocab/swadesh-lists";

const spanishList = getLanguageList(Language.SPANISH);

const firstJapaneseWordDetails = getWordDetails(Language.JAPANESE, 0);

const lastFrenchWordDetails = getWordDetails(
  Language.FRENCH,
  WORD_LIST_SIZE - 1
);