Closed spherulitic closed 1 year ago
Part of this will be connecting to the mongodb database and rewriting the query for mongodb.
I'm not sure there's a good reason to do this. These numbers only change when the lexicon updates. Calculating them anew every time this is queried is dumb.
in getCardboxStats, the coverage metric requires alphagram counts in the whole lexicon for the denominator. This should come from the lexicon service.
As a stopgap for now, these values are hard coded into the getCardboxStats function (for CSW21)