/**
 * This function identifies the keywords present in a given search string.
 *
 * @param keywordList A list of keywords to search for.
 * @param searchString The string in which to search for the keywords.
 * @return A list of keywords found in the search string.
 */
fun findKeywords(keywordList: List<String>, searchString: String): List<String> {

    // Convert the search string to lowercase for case-insensitive matching
    val searchStringLower = searchString.toLowerCase()

    // Initialize an empty list to store the matched keywords
    val matchedKeywords = mutableListOf<String>()

    // Loop through each keyword in the keyword list
    for (keyword in keywordList) {
        // Check if the keyword is present in the search string
        if (keyword.toLowerCase() in searchStringLower) {
            matchedKeywords.add(keyword)
        }
    }

    return matchedKeywords
}
/**
 * This function identifies the keywords present in a given search string.
 *
 * @param keywordList A list of keywords to search for.
 * @param searchString The string in which to search for the keywords.
 * @return A list of keywords found in the search string.
 */
fun findKeywords(keywordList: List<String>, searchString: String): List<String> {
/**
 * This function identifies the keywords present in a given search string.
 *
 * @param keywordList A list of keywords to search for.
 * @param searchString The string in which to search for the keywords.
 * @return A list of keywords found in the search string.
 */
fun findKeywords(keywordList: List<String>, searchString: String): List<String> {

    // Convert the search string to lowercase for case-insensitive matching
    val searchStringLower = searchString.toLowerCase()

    // Initialize an empty list to store the matched keywords
    val matchedKeywords = mutableListOf<String>()

    // Loop through each keyword in the keyword list
    for (keyword in keywordList) {
        // Check if the keyword is present in the search string
        if (keyword.toLowerCase() in searchStringLower) {
            matchedKeywords.add(keyword)
        }
    }

    return matchedKeywords
}