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 as stopwords

stopwords.has_lang("th")  # check if there is a stopwords for the language
stopwords.langs()  # return a set of all the supported languages
stopwords.stopwords("en")  # English stopwords
stopwords.stopwords(["de", "id", "zh"])  # German, Indonesian, and Chinese stopwords
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.tar.gz (80.8 kB view details)

Uploaded Source

Built Distribution

stopwordsiso-0.6-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stopwordsiso-0.6.tar.gz
  • Upload date:
  • Size: 80.8 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.tar.gz
Algorithm Hash digest
SHA256 cac5c7dab72d64474a4c365df8b8901a871efff2efe189253e2426c01746e75e
MD5 c6a432fc28bab79a80de187c4b4379fd
BLAKE2b-256 555ff3543cb14b64fa55fcf59c29e361f2ad832c7ff484f3ccf5bb98c089b43f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stopwordsiso-0.6-py3-none-any.whl
  • Upload date:
  • Size: 72.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-py3-none-any.whl
Algorithm Hash digest
SHA256 687c6e8bd5b9d47fea295d555f975a92944ff366887db20b674078bc1f10aa1c
MD5 6a2440b64384abb5df990d7fcd5389f2
BLAKE2b-256 7dbc307c1f625022bf6f0b719b6c1d14bcfed8105b50a01fb983e6ff2518e336

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