src/Hyphenator.php
public function getHyphenationPattern(Tokenizer\TokenRegistry $registry)
    {
        $minWordLength = $this->getOptions()->getMinWordLength();
        foreach ($registry as $token) {
            if (! $token instanceof \Org\Heigl\Hyphenator\Tokenizer\WordToken) {
                continue;
            }
            if ($minWordLength > $token->length()) {
                continue;
            }
            $this->getPatternForToken($token);
        }

        return $registry;
    }
public function getHyphenationPattern(Tokenizer\TokenRegistry $registry)
    {
        $minWordLength = $this->getOptions()->getMinWordLength();
        foreach ($registry as $token) {
            if (! $token instanceof \Org\Heigl\Hyphenator\Tokenizer\WordToken) {
                continue;
            }
            if ($minWordLength > $token->length()) {
                continue;
            }
            $this->getPatternForToken($token);
        }

        return $registry;
    }
Get the hyphenation pattern for the contained tokens

Use the dictionaties and options of the given Hyphenator-Object

@param Tokenizer\TokenRegistry $registry The Hyphenator object containing the
dictionaries and options

@return Tokenizer\TokenRegistry