node-unfluff icon indicating copy to clipboard operation
node-unfluff copied to clipboard

Added ability to use library in webbrowser with requiring stopwords files

Open ageitgey opened this issue 7 years ago • 2 comments

This is a PR of a commit from @cjanietz

@cjanietz are you ok with me pulling this in?

ageitgey avatar Apr 04 '18 19:04 ageitgey

Go ahead, fine for me

cjanietz avatar Jun 16 '18 05:06 cjanietz

Maybe drop fs entirely and convert the stop word files to code:

# en.coffee
module.exports = [
  "a's",
  "able",
  # ... etc.
]
stopwords = require(language)

justinmchase avatar Nov 27 '21 23:11 justinmchase