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 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
- Gene Diaz, stopwords compilation, npm and bower packages
- Arthit Suriyawongkul, Python utility and pip package (was originally at https://github.com/wisesight/stopwords-iso)
- All stopwords sources are listed at https://github.com/stopwords-iso/stopwords-iso/blob/master/CREDITS.md.
- Get the latest list of stopwords at https://github.com/stopwords-iso/stopwords-iso.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stopwordsiso-0.7.0.tar.gz.
File metadata
- Download URL: stopwordsiso-0.7.0.tar.gz
- Upload date:
- Size: 73.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc3fd2ca524fa02f24609a133eb2a27afe803fe86fa2761cdb7b0b4bced53b4c
|
|
| MD5 |
cf6ca01c9b21a7b0e68dcabeebffc2db
|
|
| BLAKE2b-256 |
9074503aa9a5d8384e40c4bfe06a144a3f43f65d59231ffa60164b015b341c02
|
Provenance
The following attestation bundles were made for stopwordsiso-0.7.0.tar.gz:
Publisher:
pypi-publish.yml on bact/stopwords-iso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stopwordsiso-0.7.0.tar.gz -
Subject digest:
cc3fd2ca524fa02f24609a133eb2a27afe803fe86fa2761cdb7b0b4bced53b4c - Sigstore transparency entry: 1542217750
- Sigstore integration time:
-
Permalink:
bact/stopwords-iso@140902442b9e6a367b9ae64dc63440a2279e3179 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/bact
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@140902442b9e6a367b9ae64dc63440a2279e3179 -
Trigger Event:
release
-
Statement type:
File details
Details for the file stopwordsiso-0.7.0-py3-none-any.whl.
File metadata
- Download URL: stopwordsiso-0.7.0-py3-none-any.whl
- Upload date:
- Size: 73.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99025477be8082ae872ccafcad0ca9020801e7bbc00d35728423f5c057723a7a
|
|
| MD5 |
b4d283e5d76e3496e475f21c6722cd68
|
|
| BLAKE2b-256 |
6a2596994809c74125f00421c9deea47fd33c29bbc04ebe0e1db0f4d18d71f8f
|
Provenance
The following attestation bundles were made for stopwordsiso-0.7.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on bact/stopwords-iso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stopwordsiso-0.7.0-py3-none-any.whl -
Subject digest:
99025477be8082ae872ccafcad0ca9020801e7bbc00d35728423f5c057723a7a - Sigstore transparency entry: 1542217863
- Sigstore integration time:
-
Permalink:
bact/stopwords-iso@140902442b9e6a367b9ae64dc63440a2279e3179 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/bact
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@140902442b9e6a367b9ae64dc63440a2279e3179 -
Trigger Event:
release
-
Statement type: