citp / news-disinformation-study

A research project on how web users consume, are exposed to, and share news online.
8 stars 2 forks source link

Document or find replacement for Ngrams.js #85

Closed akohlbre closed 3 years ago

akohlbre commented 3 years ago
jonathanmayer commented 3 years ago

Per @benjaminhkaiser, this code is from the simplengrams package.

https://www.npmjs.com/package/simplengrams https://github.com/phughesmcr/SimpleNGrams

Looks like version 2.0.x; there are breaking API changes in 3.x.

As a first step, we should replace Ngrams.js with an NPM package dependency. We should eventually migrate to the current version of a more actively maintained toolkit, like natural.

https://www.npmjs.com/package/natural https://github.com/NaturalNode/natural/blob/master/lib/natural/classifiers/classifier.js

jonathanmayer commented 3 years ago

Closing here, reopening on the web-science repo.