public static String morpha(String text,boolean tags){
  if (text.isEmpty()) {
    return "";
  }
  String[] textParts=whitespace.split(text);
  StringBuilder result=new StringBuilder();
  try {
    for (    String textPart : textParts) {
      Morpha morpha=new Morpha(new StringReader(textPart),tags);
      if (result.length() != 0) {
        result.append(" ");
      }
      result.append(morpha.next());
    }
  }
 catch (  Error e) {
    return text;
  }
catch (  java.io.IOException e) {
    return text;
  }
  return result.toString();
}

public static String morpha ( String text , boolean tags ) { if ( text . isEmpty ( ) ) { return "" ; } String [ ] textParts = whitespace . split ( text ) ; StringBuilder result = new StringBuilder ( ) ; try { for ( String textPart : textParts ) { Morpha morpha = new Morpha ( new StringReader ( textPart ) , tags ) ; if ( result . length ( ) != 0 ) { result . append ( " " ) ; } result . append ( morpha . next ( ) ) ; } } catch ( Error e ) { return text ; } catch ( java . io . IOException e ) { return text ; } return result . toString ( ) ; }
run the morpha algorithm on the specified string .
