By golly 53% accuracy in 3.4 sec isn't too bad

quit
exit
end
git
working file, correctly determines all books in ~6 sec.