Researchers have devised a new method to rank hotels more accurately.