Loosely based on Gustave Flaubert’s Bouvard et Pécuchet.