src/Dictionary/DictionaryRegistry.php
public function getHyphenationPattterns($word)
    {
        $pattern = array();
        foreach ($this as $dictionary) {
            $pattern = array_merge($pattern, $dictionary->getPatternsForWord($word));
        }

        return $pattern;
    }
public function getHyphenationPattterns($word)
    {
        $pattern = array();
        foreach ($this as $dictionary) {
            $pattern = array_merge($pattern, $dictionary->getPatternsForWord($word));
        }

        return $pattern;
    }
Get an array of hyphenation-patterns for a given word.

@param string $word The word to get the patterns for.

@return array