This combines the old handlebars code with the new handlebars code (and extends it a bit) by introducing a few new options:
opt-no-freq-default-value: Default value when no frequencies are found.
opt-freq-sorting-method: Whether it gets the minimum frequency, first frequency available, arithmetic mean or harmonic mean. Note that the geometric mean wasn't implemented, since it can very easily cause overflow without access to functions like ln and exp.
opt-keep-freqs-past-first-regex: Regex value to list out dictionaries that should have all frequencies considered in the sorting method (instead of just the first one)
Some other smaller changes:
Introduced a version number for {freq}. For simplicity, it just refers to the date since maintaining something that holds more info like semver seems unnecessary.
Added a freq changelog section in the regular changelog.md
Only takes the first frequency of any dictionary into consideration for the sorting algorithm (even for min!)
This combines the old handlebars code with the new handlebars code (and extends it a bit) by introducing a few new options:
opt-no-freq-default-value
: Default value when no frequencies are found.opt-freq-sorting-method
: Whether it gets the minimum frequency, first frequency available, arithmetic mean or harmonic mean. Note that the geometric mean wasn't implemented, since it can very easily cause overflow without access to functions like ln and exp.opt-keep-freqs-past-first-regex
: Regex value to list out dictionaries that should have all frequencies considered in the sorting method (instead of just the first one)Some other smaller changes:
{freq}
. For simplicity, it just refers to the date since maintaining something that holds more info like semver seems unnecessary.freq changelog
section in the regularchangelog.md
min
!)ignored-freq-dict-regex
->opt-ignored-freq-dict-regex
set
statements by moving the value insidemin-freq
internal variable toresult-freq
to represent its purpose betterI'll do some additional testing and a proof-read before marking this PR as ready.