class UnicodeLanguageDetector {

  private static final int MAX_CHECK_LENGTH = 100;

  protected abstract boolean isInAlphabet(int numericValue);

  boolean isThisLanguage(String str) {<FILL_FUNCTION_BODY>}

}

    int maxCheckLength = Math.min(str.length(), MAX_CHECK_LENGTH);
    for (int i = 0; i < maxCheckLength; i++) {
      int numericValue = str.charAt(i);
      if (isInAlphabet(numericValue)) {
        return true;
      }
    }
    return false;
  
<no_super_class>