Skip to content

Add Hindi stopwords list - #264

Open
Sarthak-builds wants to merge 1 commit into
nltk:gh-pagesfrom
Sarthak-builds:add-hindi-stopwords
Open

Add Hindi stopwords list#264
Sarthak-builds wants to merge 1 commit into
nltk:gh-pagesfrom
Sarthak-builds:add-hindi-stopwords

Conversation

@Sarthak-builds

Copy link
Copy Markdown

Summary

This PR adds a Hindi stopwords file (stopwords/hindi) to the stopwords corpus, making it accessible via:

from nltk.corpus import stopwords
stopwords.words('hindi')

Source

The stopword list (229 words in Devanagari script) is sourced from:

This is the same dual source cited by spaCy's Hindi stop words, making it a well-established reference list for the Hindi NLP community.

Format

Follows the exact same conventions as existing files in stopwords/:

  • Filename: lowercase language name, no extension (hindi)
  • Encoding: UTF-8 (Devanagari script)
  • One stopword per line
  • No header, no comments, no blank lines
  • Unix LF line endings with a trailing newline

Related Issues

  • Relates to Hinglish and Hindi stop-words #120 ("Hinglish and Hindi stop-words") -- that issue was resolved by adding the hinglish (transliterated) list; this PR adds the Devanagari script Hindi list which was the other half of the original request.
  • Related: Hindi and Hinglish stop-words nltk#2087 ("Hindi and Hinglish stop-words") -- the upstream issue that spawned the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant