This function checks if the provided book names exist in a given list and suggests the closest match if not.
Usage
validate_book(book, book_list)
Arguments
- book
A character vector, list, or data frame containing book names.
- book_list
A character vector of valid book names.
Value
A character vector of validated or suggested book names.