Calculus 'floor((N - 15) / 10))' defines an index to choose parameter 'p' from set '{0.8 0.7 0.65 0.6}'.
Letter value is defined by 'min(floor(1 + 9 ceil(r^p) * 100), 10)'
+This algorithm was designed empiricaly; it's more an engineer solution than a mathematically proven one. I've done some tests with small bags (like italian or greek with less than 23 letters) and large bags (like czech or slovakian with around 60 letters). I found that I can split them into 4 groups (without using any machine learning algorithm ;) ). For each group I tried various factor before choosing the p parameter. Then I found a polynomial formula to define values from 1 to 10 linked to letter statistics.
+
By default, optimized bags are not presented in the bag selector. To activate
this functionality, OPTIMIZED_LANGUAGE_BAG must be set to true in configuration
file.