Skip to main content

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

Project description

stopwordsiso

PyPI - Version GitHub License DOI

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 language 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")  # True if there are stopwords for Thai
stopwordsiso.langs()  # frozenset of all supported ISO 639-1 language codes
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.7.1.tar.gz (73.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stopwordsiso-0.7.1-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stopwordsiso-0.7.1.tar.gz
  • Upload date:
  • Size: 73.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stopwordsiso-0.7.1.tar.gz
Algorithm Hash digest
SHA256 10c1cf5df1c31646175178b0b13f0bd2e622384f4a3554986ed3acf85d73c9f0
MD5 ae327e54b9b26bd57efe944b1a139ff6
BLAKE2b-256 66f619709db9bff8c20a8d2c99dd657dbd51efcd76a2d43608c468307d503eea

See more details on using hashes here.

Provenance

The following attestation bundles were made for stopwordsiso-0.7.1.tar.gz:

Publisher: pypi-publish.yml on bact/stopwords-iso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: stopwordsiso-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 74.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stopwordsiso-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e23edcffca952f98cd26f54a5c56f93b2fa435c88d3ee60f3beffb4c44279380
MD5 5d0934b8dbcfb3ddd8d61408e0dc27be
BLAKE2b-256 975f2d2a6013c7afe7c06d39e208749cc669dd404ed521f7f603265e13758b04

See more details on using hashes here.

Provenance

The following attestation bundles were made for stopwordsiso-0.7.1-py3-none-any.whl:

Publisher: pypi-publish.yml on bact/stopwords-iso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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