Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
toadharvard committed Apr 5, 2024
1 parent 0f3c5dc commit cad4440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stopwords-iso.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ func (m *StopwordsMapping) ClearString(str string) string {
// isStopword checks if the given word is a stopword for the specified language.
// It takes a word string and a language ISOCode639_1 as parameters and returns a boolean.
func (m *StopwordsMapping) IsStopword(word string, language ISOCode639_1) bool {
return !slices.Contains((*m)[language], strings.ToLower(word))
return slices.Contains((*m)[language], strings.ToLower(word))
}

0 comments on commit cad4440

Please sign in to comment.