spherulitic / xerafin3

Xerafin Word Study System
1 stars 0 forks source link

get alphagram counts from lexicon service #51

Closed spherulitic closed 1 year ago

spherulitic commented 2 years ago

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)

spherulitic commented 1 year ago

Part of this will be connecting to the mongodb database and rewriting the query for mongodb.

spherulitic commented 1 year ago

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.