ageitgey / node-unfluff

Automatically extract body content (and other cool stuff) from an html document
Apache License 2.0
2.15k stars 221 forks source link

Added ability to use library in webbrowser with requiring stopwords files #84

Open ageitgey opened 6 years ago

ageitgey commented 6 years ago

This is a PR of a commit from @cjanietz

@cjanietz are you ok with me pulling this in?

cjanietz commented 6 years ago

Go ahead, fine for me

justinmchase commented 2 years ago

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

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