/**
 * Given a list of articles, filter out the articles with a word count greater than 1000.
 *
 * @param articles A list of dictionaries representing articles, with each dictionary having keys
 *                 'title' (String) and 'word_count' (Int).
 * @return filteredArticles A list of dictionaries representing filtered articles, with each dictionary having keys
 *                         'title' (String) and 'word_count' (Int).
 */
fun filterArticles(articles: List<Map<String, Any>>): List<Map<String, Any>> {

    val filteredArticles = articles.filter { it["word_count"] as Int > 1000 }
    return filteredArticles
}

// Sample Input
val articles = listOf(
    mapOf("title" to "Article 1", "word_count" to 500),
    mapOf("title" to "Article 2", "word_count" to 1200),
    mapOf("title" to "Article 3", "word_count" to 800),
    mapOf("title" to "Article 4", "word_count" to 1500),
    mapOf("title" to "Article 5", "word_count" to 600)
)

// Expected Output
// [{'title': 'Article 2', 'word_count': 1200}, {'title': 'Article 4', 'word_count': 1500}]
/**
 * Given a list of articles, filter out the articles with a word count greater than 1000.
 *
 * @param articles A list of dictionaries representing articles, with each dictionary having keys
 *                 'title' (String) and 'word_count' (Int).
 * @return filteredArticles A list of dictionaries representing filtered articles, with each dictionary having keys
 *                         'title' (String) and 'word_count' (Int).
 */
fun filterArticles(articles: List<Map<String, Any>>): List<Map<String, Any>> {
/**
 * Given a list of articles, filter out the articles with a word count greater than 1000.
 *
 * @param articles A list of dictionaries representing articles, with each dictionary having keys
 *                 'title' (String) and 'word_count' (Int).
 * @return filteredArticles A list of dictionaries representing filtered articles, with each dictionary having keys
 *                         'title' (String) and 'word_count' (Int).
 */
fun filterArticles(articles: List<Map<String, Any>>): List<Map<String, Any>> {

    val filteredArticles = articles.filter { it["word_count"] as Int > 1000 }
    return filteredArticles
}

// Sample Input
val articles = listOf(
    mapOf("title" to "Article 1", "word_count" to 500),
    mapOf("title" to "Article 2", "word_count" to 1200),
    mapOf("title" to "Article 3", "word_count" to 800),
    mapOf("title" to "Article 4", "word_count" to 1500),
    mapOf("title" to "Article 5", "word_count" to 600)
)

// Expected Output
// [{'title': 'Article 2', 'word_count': 1200}, {'title': 'Article 4', 'word_count': 1500}]