spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java
public boolean containsExplicitChar(final @NonNull CharSequence input) {
        if (!TextUtils.isEmpty(input)) {
            for (int i = 0; i < input.length(); i++) {
                char c = input.charAt(i);
                if (isExplicitChar(c)) {
                    return true;
                }
            }
        }
        return false;
    }
public boolean containsExplicitChar(final @NonNull CharSequence input) {
        if (!TextUtils.isEmpty(input)) {
            for (int i = 0; i < input.length(); i++) {
                char c = input.charAt(i);
                if (isExplicitChar(c)) {
                    return true;
                }
            }
        }
        return false;
    }
Returns true if the input string contains an explicit character.

@param input a {@link CharSequence} to test

@return true if input contains an explicit character