src/Hyphenator.php
public function addFilter($filter)
    {
        if (! $filter instanceof \Org\Heigl\Hyphenator\Filter\Filter) {
            $filter = '\\Org\\Heigl\\Hyphenator\\Filter\\' . ucfirst($filter) . 'Filter';
            $filter = new $filter();
        }
        $filter->setOptions($this->getOptions());
        $this->filters->add($filter);

        return $this;
    }
public function addFilter($filter)
    {
        if (! $filter instanceof \Org\Heigl\Hyphenator\Filter\Filter) {
            $filter = '\\Org\\Heigl\\Hyphenator\\Filter\\' . ucfirst($filter) . 'Filter';
            $filter = new $filter();
        }
        $filter->setOptions($this->getOptions());
        $this->filters->add($filter);

        return $this;
    }
Add a Filter to the Hyphenator

@param \Org\Heigl\Hyphenator\Filter\Filter|string $filter The Filter with
non-standard-hyphenation-patterns

@link http://hunspell.sourceforge.net/tb87nemeth.pdf
@return Org\Heigl\Hyphenator\Hyphenator