She was among five girls in Japan believed to have beaten a boy so severely that he required hospital treatment. Yet her most pressing concern was how much money the group should demand from him. To find an answer, she turned to artificial intelligence.