This function suggests the closest matching book name based on the input string.
It uses approximate string matching to find similar book names from the provided list.
Usage
suggest_closest_book(book, book_list)
Arguments
- book
A character vector of book names to check.
- book_list
A character vector of valid book names to match against.
Value
A character vector of suggested book names or NA if no close match is found.