How does EDITED work out which category to put products in?

We use a data science model based on machine learning, which has learned keywords relating to each of our unique categories. It can scan the product descriptions and use this information to place each product into the most relevant category by the terminology found.