/**
 * This function searches for the given keywords in a legal document and returns true if all keywords are found,
 * otherwise it returns false.
 *
 * @param document The legal document to search for keywords.
 * @param keywords A list of keywords to search for in the document.
 * @return true if all keywords are found, false otherwise.
 */
fun findKeywords(document: String, keywords: List<String>): Boolean {

    // Iterate through each keyword in the list
    for (keyword in keywords) {
        // Check if the keyword is present in the document
        if (!document.toLowerCase().contains(keyword.toLowerCase())) {
            // If the keyword is not found, return false
            return false
        }
    }
    // If all keywords are found, return true
    return true
}
/**
 * This function searches for the given keywords in a legal document and returns true if all keywords are found,
 * otherwise it returns false.
 *
 * @param document The legal document to search for keywords.
 * @param keywords A list of keywords to search for in the document.
 * @return true if all keywords are found, false otherwise.
 */
fun findKeywords(document: String, keywords: List<String>): Boolean {
/**
 * This function searches for the given keywords in a legal document and returns true if all keywords are found,
 * otherwise it returns false.
 *
 * @param document The legal document to search for keywords.
 * @param keywords A list of keywords to search for in the document.
 * @return true if all keywords are found, false otherwise.
 */
fun findKeywords(document: String, keywords: List<String>): Boolean {

    // Iterate through each keyword in the list
    for (keyword in keywords) {
        // Check if the keyword is present in the document
        if (!document.toLowerCase().contains(keyword.toLowerCase())) {
            // If the keyword is not found, return false
            return false
        }
    }
    // If all keywords are found, return true
    return true
}