0.2.2 • Published 1 year ago

@cityssm/text-to-search-terms v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

text-to-search-terms

npm (scoped) DeepSource Maintainability codecov

Reduces large strings of text into distinct search terms.

import {
  textToSearchTermsString,
  OPTIONS_ALL
} from '@cityssm/text-to-search-terms'

console.log(
  textToSearchTerms("Hop to the shop! There's a sale on a mop!", OPTIONS_ALL)
)
// "mop on sale shop there's to"

Options

OptionDefault
removeCasetrue
removePunctuationtrue
removeDiacriticsfalse
removeWordsWithoutLettersOrNumbersfalse
sortAlphabeticallyfalse
removeDuplicateWordstrue
removeDuplicatePartialWordsfalse
0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago