scor
Calculate scores for numeric values or items, and get the "total score" (aka arithmetic mean or weighted arithmetic mean) from multiple scores.
Concept and vision
Imagine you
- have a long list of items to work on, and you want to prioritize them
- want to show the most relevant items to a user before showing more
For example, let's look at npm packages. Possible criteria are:
- number of maintainers
- number of dependencies (direct/transient)
- time since last published version
- version (major < 1?) / dist-tags
- weekly downloads
- source code repo attributes (e.g. GitHub stars/forks)
- quality?
- ...?
The different relevant values come in very different "shapes". Once all the data is gathered per package, depending on the use case the different values are more or less relevant.
I experienced that such a "rating system", or "weighted average score", is not so easy to get completely right from scratch alongside collecting the…