public static boolean isWordChar(char c, char[] charsToAllow) {
		if (charsToAllow != null) {
			for (char element : charsToAllow) {
				if (c == element) {
					return true;
				}
			}
		}

		// the code, before refactoring, was using the 'c language' check for 'wordness'  Keep
		// that for now, change it if you like
		return isValidCLanguageChar(c);
	}
Loosely defined as a character that we would expected to be an normal ascii content meant for
consumption by a human. Also, provided allows chars will pass the test.

@param c the char to check
@param charsToAllow characters that will cause this method to return true
@return true if it is a 'word char'
Ghidra/Framework/Generic/src/main/java/ghidra/util/StringUtilities.java