/**
 * This function takes an article and a set of keywords as input, and it returns a list of all the common words found.
 */
fun findCommonWords(article: String, keywordsSet: Set<String>): List<String> {

    // Initialize an empty list to store the common words
    val commonWords = mutableListOf<String>()

    // Loop through each word in the article
    article.split(" ").forEach { word ->
        // Check if the word is included in the keywords set
        if (word.toLowerCase() in keywordsSet) {
            // Add the word to the commonWords list if it's in the keywords set
            commonWords.add(word)
        }
    }

    return commonWords
}
/**
 * This function takes an article and a set of keywords as input, and it returns a list of all the common words found.
 */
fun findCommonWords(article: String, keywordsSet: Set<String>): List<String> {
/**
 * This function takes an article and a set of keywords as input, and it returns a list of all the common words found.
 */
fun findCommonWords(article: String, keywordsSet: Set<String>): List<String> {

    // Initialize an empty list to store the common words
    val commonWords = mutableListOf<String>()

    // Loop through each word in the article
    article.split(" ").forEach { word ->
        // Check if the word is included in the keywords set
        if (word.toLowerCase() in keywordsSet) {
            // Add the word to the commonWords list if it's in the keywords set
            commonWords.add(word)
        }
    }

    return commonWords
}