Imported from https://github.com/castorini/honkling