A book publisher known for its “For Dummies” titles is getting a double-digit boost to its stock price Thursday after revealing it’s teaching artificial-intelligence programs to do a better job.