class UkrainianMultiwordChunker extends MultiWordChunker2 {
  UkrainianMultiwordChunker(String filename, boolean allowFirstCapitalized) {
    super(filename, allowFirstCapitalized);
  }

  protected boolean matches(String matchText, AnalyzedTokenReadings inputTokens) {<FILL_FUNCTION_BODY>}
}

    if( ! matchText.startsWith("/") )
      return super.matches(matchText, inputTokens);
    
    // TODO: this is a bit slow - we recompile regex every time, need better solution
    // possible more flexibility in MultiWordChunker2
    return PosTagHelper.hasPosTag(inputTokens, Pattern.compile(matchText.substring(1)));
  
<methods>public void <init>(java.lang.String) ,public void <init>(java.lang.String, boolean) ,public org.languagetool.AnalyzedSentence disambiguate(org.languagetool.AnalyzedSentence) ,public void setRemoveOtherReadings(boolean) ,public void setWrapTag(boolean) <variables>private static final java.lang.String WRAP_TAG,private final non-sealed boolean allowFirstCapitalized,private final non-sealed java.lang.String filename,private boolean removeOtherReadings,private java.lang.String tagFormat,private Map<java.lang.String,List<org.languagetool.tagging.disambiguation.MultiWordChunker2.MultiWordEntry>> tokenToPosTagMap