This function serves as the main entry point for getting
nutrient profiling model scores. It takes a value (or vector of values) and a type
using the type it determines which scoring function to use based on constant thresholds.
Adjustments to the value passed are also performed for all types except fvn
.
These adjustments take into account the adjusted_weight of the product (specific gravity transformations)
and calculate a new value which is applied to the scoring thresholds.
...
is provided to allow the passing of additional arguments for adjuster functions.
This code is based off the logic within https://github.com/Leeds-CDRC/NPM-Calculator/blob/main/server.R