rust-stop-words
Library Featured
Common stop words in many languages
- Downloads
- 2,153,034
- Dependents
- 25
- Stars
- 26
- Forks
- 5
- Contributors
- 2
- Commits
- 132
- Latest release
- 0.10.1 ·
About
About
Stop words are words that don't carry much meaning, and are typically removed as a preprocessing step before text analysis or natural language processing. This crate contains common stop words for a variety of languages. This crate uses stop word lists from Stopwords ISO and also from NLTK.
Usage
Use a language enum or its lookup code:
use stop_words::lookup;
if let Some(words) = lookup("en") {
assert!(words.contains(&"the"));
}
// Unknown or disabled languages return None.
assert!(lookup("not-a-language").is_none());
lookup accepts a Language, a language code such as "en", or a borrowed String. It returns a static slice without allocating. Codes are matched exactly, without case or whitespace normalization.
With the iso or nltk feature enabled, lookup(stop_words::Language::English) returns the same list as lookup("en").
Read the full README
Language is the preferred language enum; the original LANGUAGE enum is deprecated since 0.10.1 and remains available for compatibility, including direct variant imports. Replace LANGUAGE with Language to migrate. They are distinct types accepted by both lookup functions. The existing get function is retained and panics for unknown or disabled languages. Call available_languages() to discover the codes enabled in a particular build.
For ISO languages, a lookup code is usually a two-letter ISO 639-1 code. Fictional constructed languages use three-letter codes (dot, dov, nav, qya, sjn, tlh, val), and NLTK-specific hinglish is supported when the nltk feature is enabled.
You can find a complete example of reading a text file and removing stop words here.
Features
| Feature | Default | Contents |
|---|---|---|
iso | yes | Stopwords ISO lists |
nltk | no | NLTK lists, including NLTK-only languages |
constructed | no | Experimental fictional-language lists |
all | no | iso, nltk, and constructed together |
Features are additive. Enabling constructed, for example, does not remove ISO or NLTK enum variants.
When both iso and nltk provide a language, the NLTK list takes precedence, preserving the crate's existing behavior.
The crate continues to use the Rust 2021 edition.
Membership and customization
The crate returns static slices without allocating. For repeated membership checks or domain-specific changes, collect the slice into the set type your application needs:
use std::collections::HashSet;
use stop_words::lookup;
let Some(english) = lookup("en") else {
return;
};
let mut words: HashSet<&str> = english.iter().copied().collect();
words.remove("computer"); // Preserve a meaningful domain term.
words.insert("project"); // Add an application-specific stop word.
assert!(!words.contains("computer"));
assert!(words.contains("project"));
Entries are returned as supplied by their source dataset. Normalize input and list entries consistently for case-insensitive matching; the crate does not impose language-dependent normalization.
Natural Language Availability
This crate supports all languages from Stopwords ISO and also from NLTK. Expand the table below to see a comprehensive description.
Language Coverage Table
| ISO 639-1 Code | Language | Stopwords ISO | NLTK |
|---|---|---|---|
| aa | Afar | ||
| ab | Abkhazian | ||
| af | Afrikaans | ✓ | |
| ak | Akan | ||
| sq | Albanian | ✓ | |
| am | Amharic | ||
| ar | Arabic | ✓ | ✓ |
| an | Aragonese | ||
| hy | Armenian | ✓ | |
| as | Assamese | ||
| av | Avaric | ||
| ae | Avestan | ||
| ay | Aymara | ||
| az | Azerbaijani | ✓ | |
| ba | Bashkir | ||
| bm | Bambara | ||
| eu | Basque | ✓ | ✓ |
| be | Belarusian | ✓ | |
| bn | Bengali | ✓ | ✓ |
| bh | Bihari languages | ||
| bi | Bislama | ||
| bo | Tibetan | ||
| bs | Bosnian | ||
| br | Breton | ✓ | |
| bg | Bulgarian | ✓ | |
| my | Burmese | ||
| ca | Catalan; Valencian | ✓ | ✓ |
| cs | Czech | ✓ | |
| ch | Chamorro | ||
| ce | Chechen | ||
| zh | Chinese | ✓ | ✓ |
| cu | Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic | ||
| cv | Chuvash | ||
| kw | Cornish | ||
| co | Corsican | ||
| cr | Cree | ||
| cy | Welsh | ||
| da | Danish | ✓ | ✓ |
| de | German | ✓ | ✓ |
| dv | Divehi; Dhivehi; Maldivian | ||
| nl | Dutch; Flemish | ✓ | ✓ |
| dz | Dzongkha | ||
| el | Greek, Modern (1453-) | ✓ | ✓ |
| en | English | ✓ | ✓ |
| eo | Esperanto | ✓ | |
| et | Estonian | ✓ | |
| ee | Ewe | ||
| fo | Faroese | ||
| fa | Persian | ✓ | |
| fj | Fijian | ||
| fi | Finnish | ✓ | ✓ |
| fr | French | ✓ | ✓ |
| fy | Western Frisian | ||
| ff | Fulah | ||
| ka | Georgian | ||
| gd | Gaelic; Scottish Gaelic | ||
| ga | Irish | ✓ | |
| gl | Galician | ✓ | |
| gv | Manx | ||
| gn | Guarani | ||
| gu | Gujarati | ✓ | |
| ht | Haitian; Haitian Creole | ||
| ha | Hausa | ✓ | |
| he | Hebrew | ✓ | ✓ |
| hz | Herero | ||
| hi | Hindi | ✓ | |
| ho | Hiri Motu | ||
| hr | Croatian | ✓ | |
| hu | Hungarian | ✓ | ✓ |
| ig | Igbo | ||
| is | Icelandic | ||
| io | Ido | ||
| ii | Sichuan Yi; Nuosu | ||
| iu | Inuktitut | ||
| ie | Interlingue; Occidental | ||
| ia | Interlingua (International Auxiliary Language Association) | ||
| id | Indonesian | ✓ | ✓ |
| ik | Inupiaq | ||
| it | Italian | ✓ | ✓ |
| jv | Javanese | ||
| ja | Japanese | ✓ | |
| kl | Kalaallisut; Greenlandic | ||
| kn | Kannada | ||
| ks | Kashmiri | ||
| kr | Kanuri | ||
| kk | Kazakh | ✓ | |
| km | Central Khmer | ||
| ki | Kikuyu; Gikuyu | ||
| rw | Kinyarwanda | ||
| ky | Kirghiz; Kyrgyz | ||
| kv | Komi | ||
| kg | Kongo | ||
| ko | Korean | ✓ | |
| kj | Kuanyama; Kwanyama | ||
| ku | Kurdish | ✓ | |
| lo | Lao | ||
| la | Latin | ✓ | |
| lv | Latvian | ✓ | |
| li | Limburgan; Limburger; Limburgish | ||
| ln | Lingala | ||
| lt | Lithuanian | ✓ | |
| lb | Luxembourgish; Letzeburgesch | ||
| lu | Luba-Katanga | ||
| lg | Ganda | ||
| mk | Macedonian | ||
| mh | Marshallese | ||
| ml | Malayalam | ||
| mi | Maori | ||
| mr | Marathi | ✓ | |
| ms | Malay | ✓ | |
| mg | Malagasy | ||
| mt | Maltese | ||
| mn | Mongolian | ||
| na | Nauru | ||
| nv | Navajo; Navaho | ||
| nr | Ndebele, South; South Ndebele | ||
| nd | Ndebele, North; North Ndebele | ||
| ng | Ndonga | ||
| ne | Nepali | ✓ | |
| nn | Norwegian Nynorsk; Nynorsk, Norwegian | ||
| nb | Bokmål, Norwegian; Norwegian Bokmål | ||
| no | Norwegian | ✓ | ✓ |
| ny | Chichewa; Chewa; Nyanja | ||
| oc | Occitan (post 1500) | ||
| oj | Ojibwa | ||
| or | Oriya | ||
| om | Oromo | ||
| os | Ossetian; Ossetic | ||
| pa | Panjabi; Punjabi | ||
| pi | Pali | ||
| pl | Polish | ✓ | |
| pt | Portuguese | ✓ | ✓ |
| ps | Pushto; Pashto | ||
| qu | Quechua | ||
| rm | Romansh | ||
| ro | Romanian; Moldavian; Moldovan | ✓ | ✓ |
| rn | Rundi | ||
| ru | Russian | ✓ | ✓ |
| sg | Sango | ||
| sa | Sanskrit | ||
| si | Sinhala; Sinhalese | ||
| sk | Slovak | ✓ | |
| sl | Slovenian | ✓ | ✓ |
| se | Northern Sami | ||
| sm | Samoan | ||
| sn | Shona | ||
| sd | Sindhi | ||
| so | Somali | ✓ | |
| st | Sotho, Southern | ✓ | |
| es | Spanish; Castilian | ✓ | ✓ |
| sc | Sardinian | ||
| sr | Serbian | ||
| ss | Swati | ||
| su | Sundanese | ||
| sw | Swahili | ✓ | |
| sv | Swedish | ✓ | ✓ |
| ty | Tahitian | ||
| ta | Tamil | ✓ | |
| tt | Tatar | ||
| te | Telugu | ||
| tg | Tajik | ✓ | |
| tl | Tagalog | ✓ | |
| th | Thai | ✓ | |
| ti | Tigrinya | ||
| to | Tonga (Tonga Islands) | ||
| tn | Tswana | ||
| ts | Tsonga | ||
| tk | Turkmen | ||
| tr | Turkish | ✓ | ✓ |
| tw | Twi | ||
| ug | Uighur; Uyghur | ||
| uk | Ukrainian | ✓ | |
| ur | Urdu | ✓ | |
| uz | Uzbek | ✓ | |
| ve | Venda | ||
| vi | Vietnamese | ✓ | |
| vo | Volapük | ||
| wa | Walloon | ||
| wo | Wolof | ||
| xh | Xhosa | ||
| yi | Yiddish | ||
| yo | Yoruba | ✓ | |
| za | Zhuang; Chuang | ||
| zu | Zulu | ✓ |
NLTK also includes a non-ISO list for hinglish (lookup key: "hinglish") when the nltk feature is enabled.
Fictional Constructed Language Availability
The optional constructed feature provides small experimental lists for seven fictional languages. These lists were initially generated with ChatGPT in March 2023 rather than derived from authoritative corpora. Treat them as approximate starting points, not linguistically validated datasets. Source-backed corrections and corpus-derived replacements are welcome.
Language Coverage Table
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0 OR MIT
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
Common stop words in many languages |
2,153,034 downloads over 30 days | 25 | 26 | 0.10.1 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
tokenizers Featured
Fastest implementation of the most used tokenizers in AI. |
7,490,451 downloads over 30 days | 1,021 | 11,230 | 0.23.2 | GPU support unknown | Binds native code: tikv-jemalloc-sys, onig_sys (feature default) | Apache-2.0 |
|
tiktoken-rs Featured
Library for encoding and decoding with the tiktoken library in Rust |
3,939,182 downloads over 30 days | 449 | 410 | 0.12.1 | GPU support unknown | No native code found | MIT |
|
jieba-rs Featured
Jieba Chinese Word Segmentation in Rust |
947,384 downloads over 30 days | 60 | 992 | 0.11.0 | GPU support unknown | No native code found | MIT |
|
snowball Listed
Rust implementation of Snowball stemming algorithms for 33 languages |
21,654 downloads over 30 days | 3 | 891 | 0.1.0 | GPU support unknown | No native code found | BSD-3-Clause |
|
splintr Listed
Tokenizer for Rust and Python: pure Rust by default, with 18 bundled vocabularies and four backends covering BPE, SentencePiece and WordPiece. Its output matches Hugging Face tokenizers id for id on 14 model families, including GPT-2, Qwen, Whisper, T5 and BERT. Python bindings |
8,204 downloads over 30 days | 7 | 63 | 0.22.2 | GPU support unknown | Binds native code: pcre2-sys (feature pcre2) | MIT |
|
xberg New
High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 107 formats and 371 programming languages via tree-sitter code intelligence with async/sync APIs. |
26,095 downloads over 30 days | 2 | 9,565 | 1.3.10 | CUDA, Metal | Binds native code: libheif-sys, libz-sys, xberg_libwpd, xberg_tesseract, clipper-sys and 4 more. Build uses a native toolchain: cc, bindgen (feature bindings), cmake (feature build-tesseract), pkg-config (feature dynamic-linking), vcpkg (feature dynamic-linking) | MIT |
Why FeaturedIt passes every Featured gate.
What it meets
- It has 18 active dependents and 17 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days.
- Active dependents are at 100% of their peak. Featured needs at least 50%.
- Docs are present. The release commit or a manifest ties the crate to the repository.
- No vulnerability advisory stays unpatched past the grace window. At least one version is neither a prerelease nor 0.0.x.
- The last activity is on 19 Sep 2026, 51 days ago. The rules expect an update within 1200 days. Dormancy rule
Exact rules: Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.10.1 base 300, doubled for 2153034 downloads per month, doubled for 18 active users: E = 1200 daysdormancy: last activity 2026-09-19, 51 days ago, E = 1200: activefeatured: featured: active_users 18, new_adopters 17, former_glory 1
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption18 active dependents, 17 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 18 | crates.io database dump | Yes | |
| New dependents (365 days) | 17 | crates.io database dump | Yes | |
| Peak active dependents | 17.5 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 51 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-09-19 | GitHub repository | Yes | |
| Latest release | 2026-09-19 | crates.io database dump | Yes | |
| First release | 2020-08-22 | crates.io database dump | Yes | |
| Latest version | 0.10.1 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 0 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 0 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution25 releases, 2,153,034 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 25 | crates.io database dump | Yes | |
| Downloads over 30 days | 2153034 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository26 stars, 5 forks, 2 contributors, 132 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 26 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 5 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 2 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 132 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 OR MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 25 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.