/**
 * This function removes the stopwords from the given article.
 *
 * @param article The article which contains stopwords.
 * @param stopwords The list of stopwords to be removed.
 * @return The article with stopwords removed.
 */
fun removeStopwords(article: String, stopwords: List<String>): String {

    // Split the article into a list of words
    val words = article.split(" ")

    // Remove stopwords from the article
    val processedWords = words.filter { it.toLowerCase() !in stopwords }

    // Join the processed words back into a string
    val processedArticle = processedWords.joinToString(" ")

    return processedArticle
}
/**
 * This function removes the stopwords from the given article.
 *
 * @param article The article which contains stopwords.
 * @param stopwords The list of stopwords to be removed.
 * @return The article with stopwords removed.
 */
fun removeStopwords(article: String, stopwords: List<String>): String {
/**
 * This function removes the stopwords from the given article.
 *
 * @param article The article which contains stopwords.
 * @param stopwords The list of stopwords to be removed.
 * @return The article with stopwords removed.
 */
fun removeStopwords(article: String, stopwords: List<String>): String {

    // Split the article into a list of words
    val words = article.split(" ")

    // Remove stopwords from the article
    val processedWords = words.filter { it.toLowerCase() !in stopwords }

    // Join the processed words back into a string
    val processedArticle = processedWords.joinToString(" ")

    return processedArticle
}