Metadata-Version: 2.1
Name: stopwordsiso
Version: 0.6.1
Summary: Collection of stopwords for multiple languages. Using ISO 639-1 language code.
Home-page: https://github.com/bact/stopwords-iso
Author: Arthit Suriyawongkul
Author-email: arthit@gmail.com
License: MIT
Keywords: stopwords language
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Text Processing :: Linguistic
Description-Content-Type: text/markdown

stopwordsiso
=======

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

This Python package is based on [Stopwords ISO](https://github.com/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](https://www.npmjs.com/stopwords-iso) and [bower](https://bower.io).

## Installation

```sh
$ pip install stopwordsiso
```

## Usage

```python
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
```

```python
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`](https://raw.githubusercontent.com/stopwords-iso/stopwords-iso/master/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:

```json
{
    "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 here](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
