Skip to main content

Collection of stopwords for multiple languages. Using ISO 639-1 language code.

Project description

stopwordsiso

Collection of stopwords for multiple languages, using ISO 639-1 language code.

This Python package is based on Stopwords ISO project by Gene Diaz. You can see the full list of stopwords in every languages available there. Contribution to the word lists should also happen there.

Comparable packages also published on npm and bower.

Installation

$ pip install stopwordsiso

Usage

import stopwordsiso

stopwordsiso.has_lang("th")  # check if there is a stopwords for Thai language
stopwordsiso.langs()  # return a set of all the supported languages
from stopwordsiso import stopwords

stopwords("en")  # English stopwords
stopwords(["de", "id", "zh"])  # German, Indonesian, and Chinese stopwords
stopwords("xxx")  # an empty set will be returned for unknown language

Stopwords Data

The entire collection is in JSON format and can be found at stopwords-iso.json in your stopwordsiso/ Python package directory. You are free to use this collection any way you like.

Stopwords for each language is a list value with a key of respective language in ISO 639-1 language code, like this:

{
    "af": [ "aan", "af", "al", "as", ],
    "ar": [ "آض", "آمينَ", "آه", "آهاً", ],
}

If you wish to add, remove, or update some of the stopwords, please go to Stopwords ISO project at https://github.com/stopwords-iso.

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stopwordsiso-0.6.1.tar.gz (75.6 kB view details)

Uploaded Source

Built Distribution

stopwordsiso-0.6.1-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file stopwordsiso-0.6.1.tar.gz.

File metadata

  • Download URL: stopwordsiso-0.6.1.tar.gz
  • Upload date:
  • Size: 75.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for stopwordsiso-0.6.1.tar.gz
Algorithm Hash digest
SHA256 5be2b4f25afc296fca4f626710b98168949057f81a655e2dbdf670ddfce2af50
MD5 56c0dc9cca6e89973abe20bad68d20eb
BLAKE2b-256 b87ad61b449f4193c6286ae11fead5eb1411e6e7d9362c0ff341bd18442825c4

See more details on using hashes here.

File details

Details for the file stopwordsiso-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: stopwordsiso-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 73.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for stopwordsiso-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9bff4ed5fdddbfb56998c99d5b11460c2fea0134403e0c4104f63b7c665fffc
MD5 6c1f7d4e483ad1277d9b590264b7f625
BLAKE2b-256 3e034c5f24b654bb9459f81aa5c1b60b094b804286b99dca9f2e116c9eb01ac8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page