Closed Glitchy-Tozier closed 2 years ago
This is not a bug. Modifier splitting takes an n-gram with "higher-layer" symbols and generates multiple new ones with symbols solely on the base layer. The sum of their weights is not necessarily equal to the "starting weight".
Splitting of ngrams changes number of found ngrams
This for example forced https://github.com/dariogoetz/keyboard_layout_optimizer/pull/31/commits/276d0d4e55cc337c8459f1c704839e1cdc1cf23b to be necessary.
Example: (the first number is the count before splitting, the second number is after the splitting.)
Edit: Actually, it might make sense this way. I'm slightly confused.