Skip to content

adamrdrew/stopwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stopwords

A multi-language stopword removal library for Crystal based on world lists from the Stopwords ISO project.

Installation

Add this to your application's shard.yml:

dependencies:
  stopwords:
    github: adamrdrew/stopwords

Usage

require "stopwords"

filter = Stopwords.new("en")
test = "This is a test string with the types of words that should get removed"
filter.filter source.split
# => ["This", "string", "types", "removed"]

This library suports many languages thanks to Stopwords ISO. Simply specify a valid ISO 639-1 language code when creating a Stopwords instance.

fr = Stopwords.new("fr")

About

A multi-language stopword removal library for Crystal based on the Stopwords ISO lists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published