npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

thousand-most-common-words

v1.0.1

Published

Collection of 1000 most common words of a lot of languages

Downloads

9

Readme

thousand-most-common-words

1000 most common words in a lot of languages.

Usage

getAllLanguageCodes()

Returns array of available language codes (ISO 639).

// import library
const MostCommonWords = require('thousand-most-common-words');

// load all available language codes
const allCodes = MostCommonWords.getAllLanguageCodes();

console.log(allCodes); // ['en', 'es', 'fr', 'de']

getAllLanguageNames()

Returns array of available language names (english).

// import library
const MostCommonWords = require('thousand-most-common-words');

// load all available language names
const allNames = MostCommonWords.getAllLanguageNames();

console.log(allNames); // ['English', 'Spanish', 'French', 'German']

getAllLanguageNativeNames()

Returns array of available native language names.

// import library
const MostCommonWords = require('thousand-most-common-words');

// load all available language names
const allNativeNames = MostCommonWords.getAllLanguageNativeNames();

console.log(allNativeNames); // ['English', 'Español', 'Français', 'Deutsch']

getWordsByLanguageCode( code )

Returns ranked word objects ({ rank, targetWord, englishWord }) by ISO 639 language code.

Returns an empty array if language is not available.

// import library
const MostCommonWords = require('thousand-most-common-words');

// load word objects
const words = MostCommonWords.getWordsByLanguageCode('es');

console.log(words);
/*
[
  {
    "rank": 1,
    "targetWord": "como",
    "englishWord": "as"
  },
  {
    "rank": 2,
    "targetWord": "I",
    "englishWord": "I"
  },
  ...
]
*/

getWordsByLanguageName( name )

Returns ranked word objects ({ rank, targetWord, englishWord }) by language name (english).

Returns an empty array if language is not available.

// import library
const MostCommonWords = require('thousand-most-common-words');

// load word objects
const words = MostCommonWords.getWordsByLanguageName('Spanish');

console.log(words);
/*
[
  {
    "rank": 1,
    "targetWord": "como",
    "englishWord": "as"
  },
  {
    "rank": 2,
    "targetWord": "I",
    "englishWord": "I"
  },
  ...
]
*/

getWordsByLanguageNativeName( nativeName )

Returns ranked word objects ({ rank, targetWord, englishWord }) by language native name.

Returns an empty array if language is not available.

// import library
const MostCommonWords = require('thousand-most-common-words');

// load word objects
const words = MostCommonWords.getWordsByLanguageNativeName('Español');

console.log(words);
/*
[
  {
    "rank": 1,
    "targetWord": "como",
    "englishWord": "as"
  },
  {
    "rank": 2,
    "targetWord": "I",
    "englishWord": "I"
  },
  ...
]
*/

Available Languages (98)

| Language Code | Language Name | Language Native Name | Word File | | ------------- | ------------------ | -------------------- | ----------------------- | | af | Afrikaans | Afrikaans | Words | | ar | Arabic | اللغة العربية | Words | | az | Azerbaijani | azərbaycan dili | Words | | be | Belarusian | беларуская мова | Words | | bg | Bulgarian | български език | Words | | bn | Bengali | বাংলা | Words | | bs | Bosnian | bosanski jezik | Words | | ca | Catalan | català | Words | | ceb | Cebuano | Cebuano | Words | | co | Corsican | corsu | Words | | cs | Czech | čeština | Words | | cy | Welsh | Cymraeg | Words | | da | Danish | dansk | Words | | de | German | Deutsch | Words | | el | Greek | Ελληνικά | Words | | en | English | English | Words | | eo | Esperanto | Esperanto | Words | | es | Spanish | Español | Words | | et | Estonian | eesti | Words | | eu | Basque | euskara | Words | | fa | Persian | فارسی | Words | | fi | Finnish | suomi | Words | | fr | French | Français | Words | | fry | Frisian | Frysk | Words | | ga | Irish | Gaeilge | Words | | gl | Galician | galego | Words | | gu | Gujarati | ગુજરાતી | Words | | ha | Hausa | هَوُسَ | Words | | haw | Hawaiian | Ōlelo Hawaiʻi | Words | | he | Hebrew | עברית | Words | | hi | Hindi | हिन्दी | Words | | hr | Croatian | hrvatski jezik | Words | | ht | Haitian | Kreyòl ayisyen | Words | | hu | Hungarian | magyar | Words | | hy | Armenian | Հայերեն | Words | | id | Indonesian | Indonesian | Words | | ig | Igbo | Asụsụ Igbo | Words | | is | Icelandic | Íslenska | Words | | it | Italian | Italiano | Words | | ja | Japanese | 日本語 | Words | | jv | Javanese | basa Jawa | Words | | ka | Georgian | ქართული | Words | | kk | Kazakh | қазақ тілі | Words | | km | Khmer | ខេមរភាសា | Words | | kn | Kannada | ಕನ್ನಡ | Words | | ko | Korean | 한국어 | Words | | ku | Kurdish | Kurdî | Words | | ky | Kyrgyz | Кыргызча | Words | | la | Latin | latine | Words | | lb | Luxembourgish | Lëtzebuergesch | Words | | lo | Lao | ພາສາ | Words | | lt | Lithuanian | lietuvių kalba | Words | | lv | Latvian | latviešu valoda | Words | | mg | Malagasy | fiteny malagasy | Words | | mi | Maori | Māori | Words | | mk | Macedonian | македонски јазик | Words | | ml | Malayalam | മലയാളം | Words | | mn | Mongolian | Монгол хэл | Words | | mr | Marathi | मराठी | Words | | mt | Maltese | Malti | Words | | mww | Hmong | 川黔滇苗语第一土语 | Words | | my | Myanmar (Burmese) | ျမန္​မာဘာသာ | Words | | ne | Nepali | नेपाली | Words | | nl | Dutch | Nederlands | Words | | no | Norwegian | Norsk | Words | | ny | Chichewa | chiCheŵa | Words | | pa | Punjabi | ਪੰਜਾਬੀ | Words | | pl | Polish | język polski | Words | | ps | Pashto | پښتو | Words | | pt | Portuguese | Português | Words | | ro | Romanian | Română | Words | | ru | Russian | Русский | Words | | si | Sinhala | සිංහල | Words | | sk | Slovak | slovenčina | Words | | sl | Slovenian | slovenščina | Words | | so | Somali | Soomaaliga | Words | | sq | Albanian | Shqip | Words | | sr | Serbian | српски језик | Words | | st | Sesotho | Sesotho | Words | | su | Sundanese | Basa Sunda | Words | | sv | Swedish | svenska | Words | | sw | Swahili | Kiswahili | Words | | ta | Tamil | தமிழ் | Words | | te | Telugu | తెలుగు | Words | | tg | Tajik | тоҷикӣ | Words | | th | Thai | ไทย | Words | | tl | Tagalog (Filipino) | Wikang Tagalog | Words | | tr | Turkish | Türkçe | Words | | uk | Ukrainian | Українська | Words | | ur | Urdu | اردو | Words | | uz | Uzbek | Ўзбек | Words | | vi | Vietnamese | Tiếng Việt | Words | | xh | Xhosa | isiXhosa | Words | | yi | Yiddish | ייִדיש | Words | | yo | Yoruba | Yorùbá | Words | | zh | Chinese | 中文 | Words | | zsm | Malaysian | bahasa Malaysia | Words | | zu | Zulu | isiZulu | Words |

Sources