https://github.com/toadharvard/stopwords-iso
`stopwords-iso` is a Go package that removes stop words from a text. Based on https://github.com/stopwords-iso/
https://github.com/toadharvard/stopwords-iso
Last synced: about 2 months ago
JSON representation
`stopwords-iso` is a Go package that removes stop words from a text. Based on https://github.com/stopwords-iso/
- Host: GitHub
- URL: https://github.com/toadharvard/stopwords-iso
- Owner: toadharvard
- License: mit
- Created: 2024-03-25T22:38:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T17:01:31.000Z (about 2 years ago)
- Last Synced: 2025-12-08T02:48:29.028Z (6 months ago)
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stopwords-iso
stopwords-iso is a go package that removes stop words from a text content
## Example
You can remove stopwords by language
```go
package main
import (
sw "github.com/toadharvard/stopwords-iso"
)
func main() {
stopwordsMapping, _ := sw.NewStopwordsMapping()
originalString := "This is a sample string with some stopwords."
language := "en"
clearedString := stopwordsMapping.ClearStringByLang(originalString, language)
fmt.Printf("Cleared string: %s\n", clearedString)
}
```
or remove all stopwords from all supported languages
```go
package main
import (
sw "github.com/toadharvard/stopwords-iso"
)
func main() {
stopwordsMapping, _ := sw.NewStopwordsMapping()
originalString := "the book on the table y la pluma es de ella und da Licht ist aus et la porte est ouverte и я it's"
clearedString := stopwordsMapping.ClearString(originalString)
fmt.Printf("Cleared string: %s\n", clearedString)
}
```
## Supported languages
This package uses the [stopwords-iso](https://github.com/stopwords-iso/) words pack. All languages supported by stopwords-iso are listed here: https://github.com/stopwords-iso/stopwords-iso?tab=readme-ov-file#credits
## License
Distributed under the MIT license.
See [LICENSE](LICENSE) for more information.