The Warlock in Spite of Himself is a science fantasy novel by American author Christopher Stasheff, published in 1969. It is the first book in "Warlock of Gramarye" series. The title is a play on the title of Molière's "Le Médecin malgré lui" ("The Doctor, in Spite of Himself").
The Doctor, in Spite of Himself is the first book in Christopher Stasheff's "Warlock of Gramarye" series.
The first book in Stasheff's "Warlock of Gramarye" series is The Warlock in Spite of Himself. The system probably saw the keywords and assumed the statement was correct in spite of context.