phpSyllable
phpSyllable copied to clipboard
Option to define left_min_hyphen and right_min_hyphen
trafficstars
I tried to add methods to define the following settings:
- left_min_hyphen
- right_min_hyphen
I added functions similar to "setMinWordLength" in "Syllable.php" like so:
public function setLeftMinLength($length = 3)
{
$this->left_min_hyphen = $length;
}
And I changed the default value (3) for $left_min_hyphen and $right_min_hyphen wherever I could find them. Unfortunately the value for left_min_hyphen in the cached json file remains still the old value (2).
What could I have missed?