This seems like a task an A.I. would be really good at or even just a standard algorithm.