A court in Japan has ordered Google to delink words in its autocomplete function to prevent the search engine suggesting criminal acts when users type one man's name. Monday's ruling by the Tokyo District Court was the first time a court in Japan has ordered the search giant to alter this aspect of its algorithm, said Hiroyuki Tomita, a lawyer for the plaintiff. The court also ordered US-based Google to pay 300,000 yen (HK$24,000) for the mental anguish experienced by the man, whose identity was withheld. The plaintiff claimed that when users begin typing his name, the search engine automatically suggests what they might be looking for. Clicking through these results takes users to websites that defame the unidentified man, his case said. Because Google's search functions are not based in Japan, the Japanese court cannot compel it to make the change. Google told local media it was studying the ruling. Last year, the same court approved a petition by the same man to have his name delinked from autocomplete suggestions, and issued a temporary injunction, which Google ignored. The ruling is permanent - although it can be appealed - and is attached to a defamation case that attracts damages.