code: public synchronized String getHyphenationPattern(String word) {
          requireValidHandle();
          if (!isValidInput(word)) {
              // return string of spaces
              StringBuilder sb = new StringBuilder();
              for (int i = 0; i < word.length(); i++) {
                  sb.append(" ");
              }
              return sb.toString();
          }
          ByteArray cPattern = getLib().voikkoHyphenateCstr(handle, s2n(word));
          String pattern = cPattern.toString();
          getLib().voikkoFreeCstr(cPattern);
          return pattern;
      }
docs: Return a character pattern that describes the hyphenation of given word.
  ' ' = no hyphenation at this character,
  '-' = hyphenation point (character at this position
  is preserved in the hyphenated form),
  '=' = hyphentation point (character at this position
  is replaced by the hyphen.)
  @param word
  @return hyphenation pattern