Hi, unless I'm reading the source wrong it seems that max_leading_letter_penalty should be set as the penalty if the initial penalty is greater than the max.
The current implementation acts like a minimum penalty.
// Apply leading letter penalty
int penalty = leading_letter_penalty * matches[0];
if (penalty < max_leading_letter_penalty)
penalty = max_leading_letter_penalty;
Hi, unless I'm reading the source wrong it seems that
max_leading_letter_penalty
should be set as the penalty if the initial penalty is greater than the max.The current implementation acts like a minimum penalty.