/**
 * Function to check if a word should be included or excluded based on a blacklist.
 *
 * @param word The word to be checked.
 * @param blacklist A list of words that should be excluded.
 * @return True if the word should be included, False otherwise.
 */
fun checkWord(word: String, blacklist: List<String>): Boolean {

    for (badWord in blacklist) {
        if (badWord in word) {
            return false
        }
    }
    return true
}
/**
 * Function to check if a word should be included or excluded based on a blacklist.
 *
 * @param word The word to be checked.
 * @param blacklist A list of words that should be excluded.
 * @return True if the word should be included, False otherwise.
 */
fun checkWord(word: String, blacklist: List<String>): Boolean {
/**
 * Function to check if a word should be included or excluded based on a blacklist.
 *
 * @param word The word to be checked.
 * @param blacklist A list of words that should be excluded.
 * @return True if the word should be included, False otherwise.
 */
fun checkWord(word: String, blacklist: List<String>): Boolean {

    for (badWord in blacklist) {
        if (badWord in word) {
            return false
        }
    }
    return true
}