Skip to main content

Punjabi Stopwords Library

The punjabi_stopwords library is a Python package providing a collection of stopwords in the Punjabi language. Stopwords are words which are filtered out before processing natural language data. They are typically words that are very common in the language and do not contribute much to the meaning of a sentence, especially when performing tasks like text analysis or natural language processing.

Main Features

The punjabi_stopwords package offers several functionalities, including:

  1. Identifying Punjabi stopwords in text.
  2. Removing Punjabi stopwords from text.
  3. Adding custom stopwords to the existing list.

Install the Package

You can install punjabi_stopwords directly from PyPI

Installation

Install punjabi_stopwords using pip:

pip install punjabi_stopwords

Usage

Here's how to use the punjabi_stopwords library in your Python projects:

Check if a word is a stopword

from punjabi_stopwords import is_stopword

word = 'ਇਸ'
print(is_stopword(word))  # Returns: True if the word is a stopword, False otherwise

Output

True

Remove stopwords from text

from punjabi_stopwords import remove_stopwords

sample_text = 'ਇਹ ਇੱਕ ਉਦਾਹਰਣ ਵਾਕ ਹੈ।'
filtered_text = remove_stopwords(sample_text)
print(filtered_text)

Output

ਉਦਾਹਰਣ ਵਾਕ

Add additional stopwords

from punjabi_stopwords import add_stopwords

additional_stopwords = ['ਨਵਾਂਸਟਾਪਵਰਡ1', 'ਨਵਾਂਸਟਾਪਵਰਡ2']
add_stopwords(additional_stopwords)

Contributing

Contributions to punjabi_stopwords are welcome! If you have suggestions for additional stopwords, or improvements to the existing list, please feel free to contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for punjabi-stopwords 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for punjabi-stopwords 1.0.0
File Size Uploaded
punjabi_stopwords-1.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for punjabi-stopwords 1.0.0
File Interpreter ABI Platform
punjabi_stopwords-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / punjabi_stopwords-1.0.0.tar.gz

Download URL punjabi_stopwords-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
db8e868505b1480a11027652c4bb007f910aebcf6ed55e889f272b9ebb24620f
BLAKE2b-256 checksum
How to use checksums
e1f542f3f05b957471559c7078ce3c070841a9534803478202806180b25b0e44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / punjabi_stopwords-1.0.0-py3-none-any.whl

Download URL punjabi_stopwords-1.0.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96b40554a73b4d6bf7fabb89eba0f5d094d9b84dafa56216cc9f594380f54b13
BLAKE2b-256 checksum
How to use checksums
ef7234f85b5855615c6bcbd5d03250bf33f9aedb289f5485c90e6d67a941a8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page